Update serde attrs in room::guest_access

This commit is contained in:
Jonas Platte 2020-05-02 18:49:12 +02:00
parent a3f377ec39
commit 24f519ba29
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -20,13 +20,12 @@ ruma_event! {
/// A policy for guest user access to a room.
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum GuestAccess {
/// Guests are allowed to join the room.
#[serde(rename = "can_join")]
CanJoin,
/// Guests are not allowed to join the room.
#[serde(rename = "forbidden")]
Forbidden,
/// Additional variants may be added in the future and will not be considered breaking changes