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

BanUser

Fields of BanUser

uid: i64
ReopenUser

Fields of ReopenUser

uid: i64
BanBurrow

Fields of BanBurrow

burrow_id: i64
ReopenBurrow

Fields of ReopenBurrow

burrow_id: i64
BanPost

Fields of BanPost

post_id: i64
ReopenPost

Fields of ReopenPost

post_id: i64
BanReply

Fields of BanReply

post_id: i64reply_id: i32
ReopenReply

Fields of ReopenReply

post_id: i64reply_id: i32
CreateAdmin

Fields of CreateAdmin

uid: i64
DeleteAdmin

Fields of DeleteAdmin

uid: i64
SetAdminRole

Fields of SetAdminRole

uid: i64role: i32
GetUserId

Fields of GetUserId

burrow_id: i64

Trait Implementations

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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