Enum backend::models::admin::AdminOperation [−][src]
pub enum AdminOperation {
BanUser {
uid: i64,
},
ReopenUser {
uid: i64,
},
BanBurrow {
burrow_id: i64,
},
ReopenBurrow {
burrow_id: i64,
},
BanPost {
post_id: i64,
},
ReopenPost {
post_id: i64,
},
BanReply {
post_id: i64,
reply_id: i32,
},
ReopenReply {
post_id: i64,
reply_id: i32,
},
CreateAdmin {
uid: i64,
},
DeleteAdmin {
uid: i64,
},
SetAdminRole {
uid: i64,
role: i32,
},
GetUserId {
burrow_id: i64,
},
}
Variants
Fields of BanUser
uid: i64
Fields of ReopenUser
uid: i64
Fields of BanBurrow
burrow_id: i64
Fields of ReopenBurrow
burrow_id: i64
Fields of BanPost
post_id: i64
Fields of ReopenPost
post_id: i64
Fields of CreateAdmin
uid: i64
Fields of DeleteAdmin
uid: i64
Fields of GetUserId
burrow_id: i64
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AdminOperation
impl Send for AdminOperation
impl Sync for AdminOperation
impl Unpin for AdminOperation
impl UnwindSafe for AdminOperation
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more