Struct twilight_model::guild::PartialGuild [−][src]
pub struct PartialGuild {Show fields
pub id: GuildId,
pub afk_channel_id: Option<ChannelId>,
pub afk_timeout: u64,
pub application_id: Option<ApplicationId>,
pub banner: Option<String>,
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 max_members: Option<u64>,
pub max_presences: Option<u64>,
pub member_count: Option<u64>,
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 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 verification_level: VerificationLevel,
pub vanity_url_code: Option<String>,
pub widget_channel_id: Option<ChannelId>,
pub widget_enabled: Option<bool>,
}Fields
id: GuildIdafk_channel_id: Option<ChannelId>afk_timeout: u64application_id: Option<ApplicationId>default_message_notifications: DefaultMessageNotificationLeveldescription: Option<String>discovery_splash: Option<String>emojis: Vec<Emoji>explicit_content_filter: ExplicitContentFilterfeatures: Vec<String>icon: Option<String>max_members: Option<u64>max_presences: Option<u64>member_count: Option<u64>mfa_level: MfaLevelname: Stringnsfw: boolowner_id: UserIdowner: Option<bool>permissions: Option<Permissions>preferred_locale: Stringregion: Stringroles: Vec<Role>rules_channel_id: Option<ChannelId>splash: Option<String>system_channel_flags: SystemChannelFlagssystem_channel_id: Option<ChannelId>verification_level: VerificationLevelvanity_url_code: Option<String>widget_channel_id: Option<ChannelId>widget_enabled: Option<bool>Trait Implementations
impl Clone for PartialGuild[src]
impl Clone for PartialGuild[src]fn clone(&self) -> PartialGuild[src]
fn clone(&self) -> PartialGuild[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for PartialGuild[src]
impl Debug for PartialGuild[src]impl<'de> Deserialize<'de> for PartialGuild[src]
impl<'de> Deserialize<'de> for PartialGuild[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<PartialGuild> for PartialGuild[src]
impl PartialEq<PartialGuild> for PartialGuild[src]fn eq(&self, other: &PartialGuild) -> bool[src]
fn eq(&self, other: &PartialGuild) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &PartialGuild) -> bool[src]
fn ne(&self, other: &PartialGuild) -> bool[src]This method tests for !=.
impl Serialize for PartialGuild[src]
impl Serialize for PartialGuild[src]impl Eq for PartialGuild[src]
impl StructuralEq for PartialGuild[src]
impl StructuralPartialEq for PartialGuild[src]
Auto Trait Implementations
impl RefUnwindSafe for PartialGuild
impl Send for PartialGuild
impl Sync for PartialGuild
impl Unpin for PartialGuild
impl UnwindSafe for PartialGuild
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[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]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,