Jimmy Cuadra
9ad9776033
Add m.sticker.
2019-06-13 00:59:14 -07:00
Jimmy Cuadra
0fdf51598f
Add m.ignored_user_list.
2019-06-13 00:43:54 -07:00
Jimmy Cuadra
f8e5a80c93
Rename mod.rs files.
2019-06-12 16:22:29 -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
Jimmy Cuadra
9f43f37f41
Clarify the units of origin_server_ts.
2019-06-12 13:31:45 -07:00
Jimmy Cuadra
16347d7209
Add rustfmt and clippy to CI and address clippy warnings.
2019-06-02 18:42:36 -07:00
Jimmy Cuadra
92fcb5181f
Fix typos.
2019-06-02 04:16:25 -07:00
Jimmy Cuadra
ae69e71620
Remove try_from feature.
2019-04-08 17:07:54 -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
Jonas Platte
6f093f70ed
Use nested imports, misc. import changes
...
* Bring imports into a consistent order (std, crates, internal)
* Replace super::super-imports by crate-relative ones
2019-01-16 00:13:10 +01:00
Jonas Platte
af5a8932e3
StrippedStateContent: Add sender field
2019-01-08 19:37:55 +01:00
Victor Berger
e9fc9b03fd
Make room_id optional
...
This field can be absent in some contextes, notably in the responses
to the /sync endpoint, where the events are summarised in the initial
sync of a client.
Fixes #19
2019-01-08 18:27:33 +01:00
Florian Jacob
af3a14e3b4
Apply upcoming spec change to m.presence event representation,
...
making ruma-client more interoperable with synapse.
See https://github.com/matrix-org/matrix-doc/pull/1137 for the details
of the spec change.
Fixes https://github.com/ruma/ruma-client-api/issues/27
2018-09-01 12:22:30 +02:00
Jimmy Cuadra
3acc5c3a93
Run rustfmt.
2018-05-18 23:54:13 -07:00
Konstantinos Sideris
3a62aaf4c7
Add m.room.pinned_events
2017-11-27 17:08:51 +02:00
Konstantinos Sideris
0635fbae53
Add m.direct event
2017-11-16 11:22:08 +02:00
Konstantinos Sideris
a9490dbee8
Update matrix events to their latest version
2017-11-16 11:22:07 +02:00
Jonas Platte
b741ec3028
Use more descriptive names for properties with one-character-names in the spec
2017-08-04 10:35:56 +02:00
Jonas Platte
b852b15134
Fix grammar in doc comments
2017-08-03 22:16:52 +02:00
Jonas Platte
4a91932ea8
Fix a bunch more deserialization bugs
2017-08-03 22:16:52 +02:00
Jonas Platte
5a1ae50eaa
Fix wrong json key in receipt event
2017-08-01 18:37:22 +02:00
Jonas Platte
491188db2b
Make PresenceEventContent::currently_active optional
2017-07-12 18:28:26 +10:00
Andreas Brönnimann
0c027fea5e
Add default values for various power level attributes.
2017-04-27 22:11:01 +02:00
Jimmy Cuadra
c928c9bafc
Remove de/serialize bounds from StrippedStateContent.
...
See https://github.com/serde-rs/serde/issues/890 .
2017-04-23 02:43:34 -07:00
Jimmy Cuadra
edefffe220
Replace try macro with question mark.
2017-04-21 04:05:30 -07:00
Jimmy Cuadra
dee5cc91bc
Update serde to 1.0.
2017-04-21 03:53:11 -07:00
Andreas Brönnimann
2834dd4632
Make the federate field optional
2017-02-26 22:37:48 +01:00
Jimmy Cuadra
4f88b596a7
Update ruma-identifiers to 0.8.
2017-02-03 03:20:52 -08:00
Jimmy Cuadra
f01b722ae2
Update serde to 0.9.
2017-01-26 01:23:38 -08:00
Konstantinos Sideris
968aae4230
Add missing trait implementations for PresenceState
2017-01-05 15:11:10 +02:00
Jimmy Cuadra
dc8bbbb5ac
Provide a better explanation of stripped events.
2016-12-20 23:10:27 -08:00
Konstantinos Sideris
1e9fe32d35
Add missing stripped StateEvents
2016-12-20 21:03:19 +02:00
Jimmy Cuadra
a31de2313b
Add crate-level documentation.
2016-12-13 01:27:15 -08:00
Konstantinos Sideris
85504cd7a7
Derive Clone and Debug for collections
2016-12-13 03:32:22 +02:00
Jimmy Cuadra
9308226de8
use ruma_signatures::Signatures for m.room.member.
2016-12-11 17:20:08 -08:00
Jimmy Cuadra
56457e1bb4
Implement Deserialize and Serialize for collection types.
2016-12-09 18:28:39 -08:00
Jimmy Cuadra
c92ce9eeb1
Add types to support heterogeneous collections of events.
2016-12-08 18:10:19 -08:00
Jimmy Cuadra
c7228fc3b3
Add extra_content method for events.
2016-11-29 05:07:12 -08:00
Jimmy Cuadra
422afdc2f2
TagInfo's order field should be a string. Fixes #4 .
2016-11-24 07:18:59 -08:00
Jimmy Cuadra
ead4e9f294
Restrict Event::Content to Debug + Deserialize + Serialize.
2016-10-21 22:28:21 -07:00
Jimmy Cuadra
f57a1aec48
Derive Clone for basically everything. Close #3."
2016-10-16 16:20:25 -07:00
Jimmy Cuadra
e6c0dd4bdc
Update deps, rustc_macro --> proc_macro.
2016-10-16 16:04:29 -07:00
Jimmy Cuadra
6200bbeca6
Add some of the types for m.room.member's third_party_invite field.
2016-10-02 04:00:49 -07:00
Jimmy Cuadra
8392852741
Convert Event, RoomEvent and StateEvent into traits.
2016-10-02 03:46:16 -07:00
Jimmy Cuadra
f3acdfd141
Reintroduce macro for enum Display and FromStr impls.
2016-10-01 04:25:45 -07:00
Jimmy Cuadra
1fe0436f0e
Use serde_derive instead of serde_macros.
2016-09-29 04:37:01 -07:00
Jimmy Cuadra
0dbcbd49f7
Add type aliases for custom events.
2016-08-18 08:46:07 -07:00
Jimmy Cuadra
2eb07f5abd
Use Serde annotations instead of manual implementation for enums.
2016-08-03 23:43:08 -07:00