Jonas Platte
f6f0b58a1c
Update change log
2020-06-01 00:44:46 +02:00
Jonas Platte
584aab3979
Use ruma-events from git
...
so people using this crate from git don't have breakage in r0::push
2020-05-31 23:31:18 +02:00
Jonas Platte
7395f940a7
Change PushCondition from using newtype variants to struct variants
2020-05-31 23:26:41 +02:00
Jonas Platte
da4abacf69
Use Ruleset type from ruma_events in get_pushrules endpoints
2020-05-31 23:24:37 +02:00
Jonas Platte
80726d0546
Use PushCondition from ruma_events instead of declaring a separate one
2020-05-31 23:23:52 +02:00
Jonas Platte
da7a97d490
Fixup for 16b9557
2020-05-31 22:56:51 +02:00
Jonas Platte
1696c47430
Add CI
2020-05-31 20:43:28 +02:00
Jonas Platte
16b9557d74
Consolidate formatted body fields for message events
2020-05-31 16:10:01 +02:00
Jonas Platte
70b3ff2737
Update Matrix specification links
2020-05-31 15:50:17 +02:00
Jonas Platte
07040a18c8
Fixup for 7b30c2b
...
(forgot RoomVersionId)
2020-05-30 20:04:19 +02:00
Jonas Platte
cf1a1de151
Support room version 6
2020-05-30 20:00:34 +02:00
Jonas Platte
7b30c2bb3e
Update how TryFrom implementation are generated
...
… and remove TryFrom<Cow<'_, str>> implementations
2020-05-30 19:28:06 +02:00
Jonas Platte
5861457f3b
Remove diesel integration
2020-05-30 19:10:21 +02:00
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
fa8a45ed9f
Update changelog, bump version
2020-05-22 17:59:30 +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