Ragotzy.devin
|
d38e385aab
|
Remove unused imports and fix serde::ser::Error trait not being in scope
|
2020-06-08 14:40:59 +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
|
74f680f8ed
|
Add back all commented-out room events
|
2020-06-07 01:18:42 +02:00 |
|
Ragotzy.devin
|
3d01bfa96d
|
Remove Event, RoomEvent and StateEvent traits
|
2020-06-07 01:02:49 +02:00 |
|
Jonas Platte
|
ca5c65ef10
|
Revise trait implementations
|
2020-05-02 14:15:13 +02:00 |
|
Jonas Platte
|
18a37efcac
|
Update room::name tests
|
2020-05-02 14:08:16 +02:00 |
|
Jonas Platte
|
f23d7414ec
|
Update json literal formatting
|
2020-05-02 11:10:31 +02:00 |
|
Jonas Platte
|
0d305d8f24
|
Update ruma_serde to 0.1.2
|
2020-04-30 18:07:20 +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
|
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 |
|
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 |
|
Lu Fennell
|
9f463bb726
|
Add validation to NameEvent: name should not exceed 255 bytes
|
2019-11-24 21:01:29 +01: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
|
2a2dcf6801
|
impl Deserialize for m.room.name
|
2019-08-06 15:07:38 -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
|
03099b9a8b
|
Add InvalidInput type and convert m.room.name to the new API.
|
2019-07-19 14:43:24 -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
|
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 |
|
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
|
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
|
58d18f70e2
|
Add NameEvent.
|
2015-12-01 06:07:39 -08:00 |
|
Jimmy Cuadra
|
787f4d0af2
|
Move each event into its own module.
|
2015-11-29 23:38:23 -08:00 |
|