Jonas Platte
96ca638474
Change most usages of String to Box<str>
2020-05-30 18:31:08 +02:00
Timo Kösters
4d09416cd1
Add alt_aliases to CanonicalAliasEventContent
2020-05-30 17:51:23 +02:00
Jake Waksbaum
e05fdf84fd
Replace serde/strum renames with rename_all
...
Instead of applying a `#[serde(rename = "foo")]` or `#[strum(serialize =
"foo")]` to each field of a struct or variants of an enum, apply the
appropriate `#[serde(rename_all = "style")]` or `#[strum(serialize_all =
"style")]` to the struct/enum.
In addition, in the places where the `lowercase` style is used and all
the fields/variants are a single word, replace that with `snake_case`,
since that seems to be the default everywhere with multi-word
fields/variants.
2020-05-29 10:59:33 -04:00
Jake Waksbaum
d84de004c8
Replace impl_enum with strum::{EnumString,Display}
...
Replace the impl_enum! macro, which automatically derives instances of
std::fmt::Display and std::string::FromStr, with derive macros from the
strum crate (Display and EnumString resp.).
Closes #90 .
2020-05-29 10:59:33 -04:00
iinuwa
c725288cd0
Use RoomId instead of String for room visibility endpoints
2020-05-27 13:53:28 +02:00
Jonas Platte
d083127297
Update change log, bump versions
2020-05-26 18:45:12 +02:00
Jonas Platte
655e73dcf6
Update macro dependencies
2020-05-26 18:44:52 +02:00
iinuwa
b064daf23d
Add room visibility endpoints
2020-05-26 14:19:10 +02:00
Jonas Platte
a17714669d
Update change log
2020-05-26 10:26:49 +02:00
Jonas Platte
a398be6dd1
Fix test for m.room.create event
2020-05-26 10:25:23 +02:00
Jonas Platte
d3ff2b65a7
Implement Default for PowerLevelsEventContent
2020-05-26 10:24:14 +02:00
Jonas Platte
429e5a5bbe
Update create_room::CreationContent
2020-05-26 10:12:35 +02:00
Jonas Platte
d121192f69
Update change log
2020-05-26 10:11:35 +02:00
Jonas Platte
512496baeb
Add skip_serializing_if to CreateEventContent
2020-05-26 10:04:57 +02:00
Jonas Platte
9643dbc27f
Update type of canonical_alias in PublicRoomsChunk
2020-05-26 09:54:25 +02:00
Isaiah Inuwa
4cf4aa6ef7
Add room information query endpoint.
2020-05-24 22:40:33 -05:00
Jonas Platte
38fec0b0a9
Fix typo
2020-05-24 19:05:17 +02:00
Jonas Platte
bb083b1d19
Add a test for m.room_key serialization
2020-05-24 18:50:19 +02:00
Jonas Platte
114f739d43
Re-add type field serialization for MessageEvent
...
It was removed in b8eafc3f5937589f1c75dac74ceb796041a72b82, probably by
accident
2020-05-24 18:44:06 +02:00
Jonas Platte
5a0935cd6b
Fix message test naming
2020-05-24 18:29:33 +02:00
Jonas Platte
07689ecb8b
Use event_type enum in r0::room::create_room::InitialStateEvent
2020-05-24 15:54:22 +02:00
Jonas Platte
9e198132d0
Make avatar_url in set_avatar_url request optional
2020-05-24 15:53:23 +02:00
Jonas Platte
851ffea6d2
Bump version
2020-05-23 23:51:41 +02:00
Ragotzy.devin
91011be2a0
Add test to verify urlencoded deserializer works with serde attributes
2020-05-23 23:41:49 +02:00
Jonas Platte
18ba86ac27
Update tests/url_deserialize.rs
2020-05-23 21:40:42 +02:00
Jonas Platte
6b60606b30
Update deserialization error messages
2020-05-23 18:58:40 +02:00
Jonas Platte
964aae00ff
Add additional tests to val_or_vec
2020-05-23 18:47:11 +02:00
Alejandro Domínguez
2151711f64
Add NonAuthEndpoint trait
...
This is a way to mark any type implementing `Endpoint` as not
requiring authentication information through the type system.
This is useful for clients that build on top of the ruma crates
to check this condition at compile time, avoiding a runtime error.
2020-05-23 16:20:55 +02:00
Isaiah Inuwa
e4c7a81a7c
Use SystemTime for timestamp fields
2020-05-23 08:02:47 -05:00
Devin R
54fcc36735
remove allow clippy::identity_conversion
2020-05-23 13:31:14 +02:00
Isaiah Inuwa
250da9281a
Restructure modules.
2020-05-22 23:50:41 -05:00
iinuwa
26307b6894
Add endpoints for joining rooms
2020-05-23 00:23:01 +02:00
Jonas Platte
d42852e1a3
Update dependencies, bump version
2020-05-22 18:07:25 +02:00
Jonas Platte
fa8a45ed9f
Update changelog, bump version
2020-05-22 17:59:30 +02:00
Jonas Platte
5ad4fd11c9
Improve Display implementation for Error
2020-05-22 17:58:31 +02:00
Jonas Platte
326e705468
Fix hello_world example
2020-05-22 17:58:25 +02:00
Guillem Nieto
866885bb38
Update changelog
2020-05-22 16:29:27 +02:00
Guillem Nieto
fe80737c58
Change Device fields according to the spec
...
Fields `ip` and `last_seen` should be named `last_seen_ip` and
`last_seen_ts` according to the spec.
https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-devices
2020-05-22 16:29:27 +02:00
Guillem Nieto
195bff8c05
Fix build
...
- Add required documentation to `devices` field
- Import `UserId` on `sync_events`
2020-05-22 15:12:49 +02:00
Jonas Platte
b5fa684dfc
Update sync_events::DeviceLists field types
2020-05-21 23:36:07 +02:00
Jonas Platte
6d93ec1d1a
Fix accidentally-private field
2020-05-21 23:29:56 +02:00
Jonas Platte
b5f436d511
Expand explanation comment for unsafe code
2020-05-19 22:22:44 +02:00
Jonas Platte
af0a304594
Fix building on 1.36.0
2020-05-19 22:22:19 +02:00
Timo Kösters
3a3ccabbf2
Fix get_content_thumbnail response
2020-05-19 18:45:38 +02:00
Jonas Platte
a42b335bfe
Update dependencies
2020-05-19 12:37:03 +02:00
Jonas Platte
88ca0cf4f8
Bump dependencies, version
2020-05-19 12:33:36 +02:00
Jonas Platte
d6cfbaa47d
Bump dependencies, versions
2020-05-19 12:27:57 +02:00
Jonas Platte
e05b30d008
Query string deserialization: Allow multiple values for one key
2020-05-18 01:10:05 +02:00
Jonas Platte
0e627a8ac1
Update url_deserialize tests
2020-05-17 22:02:32 +02:00
Jonas Platte
89dcb5710b
Add another test for sync_events request deserialization
2020-05-17 18:54:35 +02:00