Timo Kösters
|
4d09416cd1
|
Add alt_aliases to CanonicalAliasEventContent
|
2020-05-30 17:51:23 +02:00 |
|
Jonas Platte
|
0d305d8f24
|
Update ruma_serde to 0.1.2
|
2020-04-30 18:07:20 +02:00 |
|
Jonas Platte
|
aa42378c3d
|
Use ruma_event! macro for CanonicalAliasEvent
|
2020-04-29 21:31:49 +02:00 |
|
Jonas Platte
|
037a4faa6e
|
Merge serde attributes
|
2020-04-28 00:30:23 +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
|
eb3a3e2163
|
Replace EventResult with EventJson, simplify InvalidEvent
|
2020-04-22 21:24:39 +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 |
|
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
|
665fe4f4f4
|
Move (de)serialization helpers to util module
|
2019-10-22 23:56:03 +02: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
|
db89aad22c
|
impl Deserialize for m.room.canonical_alias
|
2019-08-06 15:19:55 -07:00 |
|
Jimmy Cuadra
|
de23971ee4
|
Deny and address all warnings.
|
2019-07-19 15:47:14 -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
|
0f49c5e7f6
|
Convert m.room.create to the new API.
|
2019-07-19 14:52:05 -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
|
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 |
|
Florian Jacob
|
01156ad661
|
Properly handle CanonicalAliasEvent and NameEvent content being absent, null or empty,
which is allowed by the spec to show those events were deleted:
https://matrix.org/docs/spec/client_server/r0.4.0.html#m-room-canonical-alias
https://matrix.org/docs/spec/client_server/r0.4.0.html#m-room-canonical-alias
|
2019-02-11 13:50:07 +01: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
|
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
|
0270e84a1d
|
Return an EventType from Event::event_type.
|
2015-11-30 00:05:53 -08:00 |
|
Jimmy Cuadra
|
787f4d0af2
|
Move each event into its own module.
|
2015-11-29 23:38:23 -08:00 |
|