Struct twilight_model::guild::Guild[][src]

pub struct Guild {
Show fields pub afk_channel_id: Option<ChannelId>, pub afk_timeout: u64, pub application_id: Option<ApplicationId>, pub approximate_member_count: Option<u64>, pub approximate_presence_count: Option<u64>, pub banner: Option<String>, pub channels: Vec<GuildChannel>, pub default_message_notifications: DefaultMessageNotificationLevel, pub description: Option<String>, pub discovery_splash: Option<String>, pub emojis: Vec<Emoji>, pub explicit_content_filter: ExplicitContentFilter, pub features: Vec<String>, pub icon: Option<String>, pub id: GuildId, pub joined_at: Option<String>, pub large: bool, pub max_members: Option<u64>, pub max_presences: Option<u64>, pub max_video_channel_users: Option<u64>, pub member_count: Option<u64>, pub members: Vec<Member>, pub mfa_level: MfaLevel, pub name: String, pub nsfw: bool, pub owner_id: UserId, pub owner: Option<bool>, pub permissions: Option<Permissions>, pub preferred_locale: String, pub premium_subscription_count: Option<u64>, pub premium_tier: PremiumTier, pub presences: Vec<Presence>, pub region: String, pub roles: Vec<Role>, pub rules_channel_id: Option<ChannelId>, pub splash: Option<String>, pub system_channel_flags: SystemChannelFlags, pub system_channel_id: Option<ChannelId>, pub unavailable: bool, pub vanity_url_code: Option<String>, pub verification_level: VerificationLevel, pub voice_states: Vec<VoiceState>, pub widget_channel_id: Option<ChannelId>, pub widget_enabled: Option<bool>,
}

Fields

afk_channel_id: Option<ChannelId>afk_timeout: u64application_id: Option<ApplicationId>approximate_member_count: Option<u64>approximate_presence_count: Option<u64>banner: Option<String>channels: Vec<GuildChannel>default_message_notifications: DefaultMessageNotificationLeveldescription: Option<String>discovery_splash: Option<String>emojis: Vec<Emoji>explicit_content_filter: ExplicitContentFilterfeatures: Vec<String>icon: Option<String>id: GuildIdjoined_at: Option<String>large: boolmax_members: Option<u64>max_presences: Option<u64>max_video_channel_users: Option<u64>member_count: Option<u64>members: Vec<Member>mfa_level: MfaLevelname: Stringnsfw: boolowner_id: UserIdowner: Option<bool>permissions: Option<Permissions>preferred_locale: Stringpremium_subscription_count: Option<u64>premium_tier: PremiumTierpresences: Vec<Presence>region: Stringroles: Vec<Role>rules_channel_id: Option<ChannelId>splash: Option<String>system_channel_flags: SystemChannelFlagssystem_channel_id: Option<ChannelId>unavailable: boolvanity_url_code: Option<String>verification_level: VerificationLevelvoice_states: Vec<VoiceState>widget_channel_id: Option<ChannelId>widget_enabled: Option<bool>

Trait Implementations

impl Clone for Guild[src]

fn clone(&self) -> Guild[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Guild[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<Guild> for Guild[src]

fn eq(&self, other: &Guild) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Guild) -> bool[src]

This method tests for !=.

impl Serialize for Guild[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl Eq for Guild[src]

impl StructuralEq for Guild[src]

impl StructuralPartialEq 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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

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

fn in_current_span(self) -> Instrumented<Self>[src]

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

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V

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