Ragotzy.devin
0a91ac5126
Remove raw mod and TryFromRaw/FromRaw, derive Deserialize for event content types
2020-06-07 01:18:42 +02:00
Ragotzy.devin
80ff10ae6a
Move event content collection trait impl's into macro code
...
* Move the EventContent and content marker traits into macro.
* Move the raw AnyStateEventContent enum and RawEventContent trait into macro, generate all of the AnyStateEventContent type and impls needed for raw.
* Factor out raw mod codegen to seperate fn, add docs to codegen enum + variants, remove unused imports
2020-06-07 01:11:15 +02:00
Jonas Platte
eceef3b96d
Declare a few state event content structs without the ruma_event! macro
2020-06-07 01:09:12 +02:00
Ragotzy.devin
ef6e2e7023
Add derive macro for StateEventContent
2020-06-07 01:02:49 +02:00
Ragotzy.devin
f0c94958fa
Move raw
mod into FromRaw derive
2020-06-07 01:02:49 +02:00
Ragotzy.devin
1a9b0f3e8b
Add StateEvent<C> and AnyStateEvent
2020-06-07 01:02:49 +02:00
Jonas Platte
3f74ba3270
Box optional sub-structs in avatar and message events
...
… to heavily decrease the size of some types.
Most importantly: MessageEventContent goes from 640 to 104 bytes in size
2020-06-04 17:48:52 +02:00
Ragotzy.devin
8ea971b082
Derive Serialize in ruma_events!
, use json EventType string for event_type
field
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 14:25:50 +01:00
Jimmy Cuadra
4212c9f619
Convert m.room.{aliases ,avatar ,encryption ,guest_access,
...
history_visibility, join_rules, member, pinned_events,
third_party_invite, tombstone, topic} to the new API.
2019-07-19 14:40:48 -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
add7ef0d8b
Add blank lines to make type definitions easier to read.
2019-06-14 14:02:03 -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
Jonas Platte
4a91932ea8
Fix a bunch more deserialization bugs
2017-08-03 22:16:52 +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
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
149bf66da8
Add AvatarEvent and ImageInfo.
2015-11-29 23:55:12 -08:00
Jimmy Cuadra
787f4d0af2
Move each event into its own module.
2015-11-29 23:38:23 -08:00