Ragotzy.devin
|
ef3a6787a0
|
Remove src/from_raw.rs and ruma-events-macro/src/from_raw.rs
|
2020-06-07 22:21:04 +02:00 |
|
Ragotzy.devin
|
0a91ac5126
|
Remove raw mod and TryFromRaw/FromRaw, derive Deserialize for event content types
|
2020-06-07 01:18:42 +02:00 |
|
Jonas Platte
|
b95b7db0d4
|
Convert remaining state structs from ruma_event! to derive(StateEventContent)
|
2020-06-07 01:18:42 +02:00 |
|
Jonas Platte
|
74f680f8ed
|
Add back all commented-out room events
|
2020-06-07 01:18:42 +02:00 |
|
Jonas Platte
|
d3ff2b65a7
|
Implement Default for PowerLevelsEventContent
|
2020-05-26 10:24:14 +02:00 |
|
Jonas Platte
|
08418daeb2
|
Remove NotificationPowerLevels::is_default
|
2020-05-02 14:16:31 +02:00 |
|
Jonas Platte
|
d7e2411a68
|
Use ruma_event! for room::power_levels
|
2020-05-01 12:14:44 +02:00 |
|
Jonas Platte
|
fd5527da78
|
Reorder derives (std first)
|
2020-04-29 22:22:42 +02:00 |
|
Jonas Platte
|
f783ea6167
|
Fix unsigned field deserialization
|
2020-04-28 00:30:05 +02:00 |
|
Jonas Platte
|
55340d18c8
|
Add struct UnsignedData and update unsigned fields to use it
|
2020-04-28 00:03:48 +02:00 |
|
Jonas Platte
|
2480bb292a
|
Replace HashMap with BTreeMap
|
2020-04-19 17:46:36 +02:00 |
|
Jonas Platte
|
dc0a9f88ba
|
Change timestamp types from UInt to SystemTime
|
2020-04-17 22:43:30 +02:00 |
|
PipsqueakH
|
a9e1a2b0b0
|
Replace all remaining manual implementations by derives
|
2020-04-05 19:37:04 +02:00 |
|
Akshay
|
8915339e56
|
Rewrite tests to use serde_json::json! instead of raw strings
|
2020-03-31 16:07:09 +02:00 |
|
Jonas Platte
|
cba7b161e9
|
Update unsigned field's type from Option<Value> to Map<String, Value>
* it's guaranteed to always be an object
* `Option` isn't needed because the distinction empty object / missing
field is not of interest
|
2020-03-29 15:37:57 +02:00 |
|
Jonas Platte
|
c7d7212b00
|
Clean up previous commit, update tests
|
2019-12-17 11:50:56 +01:00 |
|
Jonas Platte
|
dd16d0f2f0
|
Allow *all* m.room.power_levels fields to be absent
|
2019-12-16 21:10:55 +01:00 |
|
Jonas Platte
|
09b8de5b6e
|
Introduce FromRaw in addition to TryFromRaw
|
2019-10-15 20:26:30 +02:00 |
|
Jonas Platte
|
a6c34596d7
|
Rename EventResultCompatible to TryFromRaw
|
2019-10-15 20:05:46 +02:00 |
|
Jonas Platte
|
c20d79db7d
|
Inline try_from method into EventResultCompatible
|
2019-10-08 21:28:18 +02:00 |
|
Jonas Platte
|
05562a48a3
|
WIP
|
2019-09-29 13:30:51 +02:00 |
|
Jonas Platte
|
297bae4cbb
|
Remove FromStr, TryFrom<&'_ str> implementations
|
2019-09-29 10:56:15 +02:00 |
|
Jimmy Cuadra
|
35e5ed9491
|
impl Deserialize for m.room.power_levels
|
2019-08-06 15:15:33 -07:00 |
|
Jimmy Cuadra
|
de23971ee4
|
Deny and address all warnings.
|
2019-07-19 15:47:14 -07:00 |
|
Jimmy Cuadra
|
b003699048
|
Remove unnecessary crate:: prefixes.
|
2019-07-19 14:59:45 -07:00 |
|
Jimmy Cuadra
|
7d1701ccce
|
Implement FromStr for content types.
|
2019-07-19 14:56:38 -07:00 |
|
Jimmy Cuadra
|
0f55729478
|
Handle both deserialization and validation errors in FromStr impls.
|
2019-07-19 14:54:31 -07:00 |
|
Jimmy Cuadra
|
8b59318629
|
Sort the unsigned field alphabetically in Serialize impls.
|
2019-07-19 14:52:49 -07:00 |
|
Jimmy Cuadra
|
5b505cc501
|
Convert m.room.canonical_alias to the new API. Reorder additional fields
alphabetically. Remove unused serde attributes.
|
2019-07-19 14:49:05 -07:00 |
|
Jimmy Cuadra
|
406a007678
|
Add more tests.
|
2019-07-19 14:47:59 -07:00 |
|
Jimmy Cuadra
|
cc107106f0
|
Continue implementation of m.room.power_levels and add tests.
|
2019-07-19 14:47:01 -07:00 |
|
Jimmy Cuadra
|
090a91f78b
|
Add new macros for implementing event traits. Fix Serialize impl for
NameEventContent. Convert m.room.power_levels to the new API.
|
2019-07-19 14:44:16 -07:00 |
|
Jimmy Cuadra
|
c3f48c5be3
|
Use js_int types for numbers.
Closes #27.
|
2019-06-16 16:16:37 -07:00 |
|
Jimmy Cuadra
|
f4b7204f31
|
Derive PartialEq where possible.
|
2019-06-15 00:03:32 -07:00 |
|
Jimmy Cuadra
|
7530342637
|
Adjust some default values.
|
2019-06-13 16:59:22 -07:00 |
|
Jimmy Cuadra
|
ba2538dda9
|
Update existing events for spec r0.5.0 and add m.fully_read and
m.room.message.feedback.
|
2019-06-12 16:20:10 -07:00 |
|
Jonas Platte
|
7f18e1c32e
|
Replace serde_derive by re-exports in serde
|
2019-02-06 20:12:30 +01:00 |
|
Jonas Platte
|
1b2cd339cb
|
Update to Rust 2018
|
2019-01-16 00:13:10 +01:00 |
|
Jimmy Cuadra
|
3acc5c3a93
|
Run rustfmt.
|
2018-05-18 23:54:13 -07:00 |
|
Andreas Brönnimann
|
0c027fea5e
|
Add default values for various power level attributes.
|
2017-04-27 22:11:01 +02:00 |
|
Jimmy Cuadra
|
f57a1aec48
|
Derive Clone for basically everything. Close #3."
|
2016-10-16 16:20:25 -07:00 |
|
Jimmy Cuadra
|
8392852741
|
Convert Event, RoomEvent and StateEvent into traits.
|
2016-10-02 03:46:16 -07:00 |
|
Jimmy Cuadra
|
5326091981
|
Use ruma-identifiers types for ID values.
|
2016-07-28 03:04:07 -07:00 |
|
Jimmy Cuadra
|
070a6fe633
|
Add second generic parameter to events and add missing docs.
|
2016-07-02 03:33:10 -07:00 |
|
Jimmy Cuadra
|
68265a9387
|
Revert the package name to ruma-events.
|
2016-06-21 21:29:43 -07:00 |
|
Jimmy Cuadra
|
dd1a3979e6
|
Rename package to ruma-common and namespace event types.
|
2016-06-20 22:47:51 -07:00 |
|
Jimmy Cuadra
|
09ecdfa470
|
Derive Debug and {De,}Serialize for all types.
|
2016-06-04 03:09:32 -07:00 |
|
Jimmy Cuadra
|
d525766c99
|
Make all fields public.
|
2016-06-04 02:57:24 -07:00 |
|
Jimmy Cuadra
|
fd03a1e162
|
Make all fields owned values and remove event traits.
|
2016-06-04 02:49:24 -07:00 |
|
Jimmy Cuadra
|
56a3b9cfe0
|
Add PowerLevelsEvent.
|
2015-12-01 06:17:27 -08:00 |
|