[][src]Struct automate::gateway::models::Guild

pub struct Guild {
    pub id: Snowflake,
    pub name: String,
    pub icon: Option<String>,
    pub splash: Option<String>,
    pub discovery_splash: Option<String>,
    pub owner: Option<bool>,
    pub owner_id: Snowflake,
    pub permissions: Option<u32>,
    pub region: String,
    pub afk_channel_id: Option<Snowflake>,
    pub afk_timeout: i32,
    pub embed_enabled: Option<bool>,
    pub embed_channel_id: Option<Option<Snowflake>>,
    pub verification_level: VerificationLevel,
    pub default_message_notifications: MessageNotificationLevel,
    pub explicit_content_filter: ExplicitContentFilterLevel,
    pub roles: HashMap<Snowflake, Role>,
    pub emojis: HashMap<Snowflake, GuildEmoji>,
    pub features: Vec<GuildFeature>,
    pub mfa_level: MFALevel,
    pub application_id: Option<Snowflake>,
    pub widget_enabled: Option<bool>,
    pub widget_channel_id: Option<Option<Snowflake>>,
    pub system_channel_id: Option<Option<Snowflake>>,
    pub joined_at: Option<String>,
    pub large: Option<bool>,
    pub unavailable: Option<bool>,
    pub member_count: Option<i32>,
    pub voice_states: Option<Vec<PartialVoiceState>>,
    pub members: HashMap<Snowflake, GuildMember>,
    pub channels: HashMap<Snowflake, GuildChannel>,
    pub presences: Option<Vec<PartialPresenceUpdate>>,
    pub max_presences: Option<Option<i32>>,
    pub max_members: Option<i32>,
    pub vanity_url_code: Option<String>,
    pub description: Option<String>,
    pub banner: Option<String>,
    pub premium_tier: PremiumTier,
    pub premium_subscription_count: Option<i32>,
    pub preferred_locale: String,
    pub rules_channel_id: Option<Snowflake>,
    pub public_updates_channel_id: Option<Snowflake>,
    pub max_video_channel_users: Option<i32>,
}

Fields

id: Snowflakename: Stringicon: Option<String>splash: Option<String>discovery_splash: Option<String>owner: Option<bool>owner_id: Snowflakepermissions: Option<u32>region: Stringafk_channel_id: Option<Snowflake>afk_timeout: i32embed_enabled: Option<bool>embed_channel_id: Option<Option<Snowflake>>verification_level: VerificationLeveldefault_message_notifications: MessageNotificationLevelexplicit_content_filter: ExplicitContentFilterLevelroles: HashMap<Snowflake, Role>emojis: HashMap<Snowflake, GuildEmoji>features: Vec<GuildFeature>mfa_level: MFALevelapplication_id: Option<Snowflake>widget_enabled: Option<bool>widget_channel_id: Option<Option<Snowflake>>system_channel_id: Option<Option<Snowflake>>joined_at: Option<String>large: Option<bool>unavailable: Option<bool>member_count: Option<i32>voice_states: Option<Vec<PartialVoiceState>>members: HashMap<Snowflake, GuildMember>channels: HashMap<Snowflake, GuildChannel>presences: Option<Vec<PartialPresenceUpdate>>max_presences: Option<Option<i32>>max_members: Option<i32>vanity_url_code: Option<String>description: Option<String>banner: Option<String>premium_tier: PremiumTierpremium_subscription_count: Option<i32>preferred_locale: Stringrules_channel_id: Option<Snowflake>public_updates_channel_id: Option<Snowflake>max_video_channel_users: Option<i32>

Trait Implementations

impl Clone for Guild[src]

impl Debug for Guild[src]

impl<'de> Deserialize<'de> for Guild[src]

impl ExtractSnowflake for Guild[src]

impl<'_> ExtractSnowflake for &'_ Guild[src]

impl Stored for Guild[src]

Auto Trait Implementations

impl RefUnwindSafe for Guild

impl Send for Guild

impl Sync for Guild

impl Unpin for Guild

impl UnwindSafe for Guild

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,