Update serde attrs in room::guest_access
This commit is contained in:
parent
a3f377ec39
commit
24f519ba29
@ -20,13 +20,12 @@ ruma_event! {
|
|||||||
|
|
||||||
/// A policy for guest user access to a room.
|
/// A policy for guest user access to a room.
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
|
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
|
||||||
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum GuestAccess {
|
pub enum GuestAccess {
|
||||||
/// Guests are allowed to join the room.
|
/// Guests are allowed to join the room.
|
||||||
#[serde(rename = "can_join")]
|
|
||||||
CanJoin,
|
CanJoin,
|
||||||
|
|
||||||
/// Guests are not allowed to join the room.
|
/// Guests are not allowed to join the room.
|
||||||
#[serde(rename = "forbidden")]
|
|
||||||
Forbidden,
|
Forbidden,
|
||||||
|
|
||||||
/// Additional variants may be added in the future and will not be considered breaking changes
|
/// Additional variants may be added in the future and will not be considered breaking changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user