pub enum ControlOp {
Grant {
name: String,
role: Role,
until: Option<String>,
},
Pause,
Resume,
Mute {
name: String,
},
Unmute {
name: String,
},
Revoke {
name: String,
},
Hold {
on: bool,
},
Rotated {
new_room_id: String,
},
}Variants§
Grant
Give a member a role. Can expire.
Pause
Kill switch. Nothing moves until resume.
Resume
Mute
Silence one member.
Unmute
Revoke
Cut one key for good. A signed blocklist entry.
Hold
Legal hold. Retention stops deleting.
Rotated
The room was rotated: a new room key. Everyone out.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ControlOp
impl<'de> Deserialize<'de> for ControlOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlOp
impl StructuralPartialEq for ControlOp
Auto Trait Implementations§
impl Freeze for ControlOp
impl RefUnwindSafe for ControlOp
impl Send for ControlOp
impl Sync for ControlOp
impl Unpin for ControlOp
impl UnsafeUnpin for ControlOp
impl UnwindSafe for ControlOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more