Struct dasi::model::RichInvite [] [src]

pub struct RichInvite {
    pub code: String,
    pub xkcdpass: Option<String>,
    pub server_id: ServerId,
    pub server_name: String,
    pub server_splash_hash: Option<String>,
    pub channel_type: ChannelType,
    pub channel_id: ChannelId,
    pub channel_name: String,
    pub inviter: User,
    pub created_at: String,
    pub max_age: u64,
    pub max_uses: u64,
    pub revoked: bool,
    pub temporary: bool,
    pub uses: u64,
}

Detailed information about an invite, available to server managers

Fields

code
xkcdpass
server_id
server_name
server_splash_hash
channel_type
channel_id
channel_name
inviter
created_at
max_age
max_uses
revoked
temporary
uses

Methods

impl RichInvite

fn decode(value: Value) -> Result<Self>

Trait Implementations

Derived Implementations

impl Clone for RichInvite

fn clone(&self) -> RichInvite

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for RichInvite

fn fmt(&self, __arg_0: &mut Formatter) -> Result