pub enum AdminOperation {
CreateChannel {
channel: String,
settings: ChannelSettings,
},
SetTopic {
channel: String,
topic: String,
},
SetMode {
channel: String,
mode: ChannelMode,
enabled: bool,
},
MemberOperation {
channel: String,
target: String,
operation: MemberOperation,
},
BanOperation {
channel: String,
target: String,
operation: BanOperation,
duration: Option<SystemTime>,
},
KeyOperation {
channel: String,
operation: KeyOperation,
},
}Expand description
Channel administration operations
Variantsยง
CreateChannel
Create a new encrypted channel
SetTopic
Set channel topic
SetMode
Change channel mode
MemberOperation
Manage channel member
BanOperation
Manage channel bans
KeyOperation
Key management operations
Trait Implementationsยง
Sourceยงimpl Clone for AdminOperation
impl Clone for AdminOperation
Sourceยงfn clone(&self) -> AdminOperation
fn clone(&self) -> AdminOperation
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for AdminOperation
impl Debug for AdminOperation
Sourceยงimpl<'de> Deserialize<'de> for AdminOperation
impl<'de> Deserialize<'de> for AdminOperation
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
Auto Trait Implementationsยง
impl Freeze for AdminOperation
impl RefUnwindSafe for AdminOperation
impl Send for AdminOperation
impl Sync for AdminOperation
impl Unpin for AdminOperation
impl UnsafeUnpin for AdminOperation
impl UnwindSafe for AdminOperation
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