Struct serenity::model::invite::InviteGuild [−][src]
#[non_exhaustive]pub struct InviteGuild {
pub id: GuildId,
pub icon: Option<String>,
pub name: String,
pub splash: Option<String>,
pub text_channel_count: Option<u64>,
pub voice_channel_count: Option<u64>,
}
Expand description
A minimal amount of information about the guild an invite points to.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: GuildId
icon: Option<String>
name: String
splash: Option<String>
text_channel_count: Option<u64>
voice_channel_count: Option<u64>
Implementations
Returns the formatted URL of the guild’s splash image, if one exists.
Returns the Id of the shard associated with the guild.
When the cache is enabled this will automatically retrieve the total number of shards.
Note: When the cache is enabled, this function unlocks the cache to
retrieve the total number of shards in use. If you already have the
total, consider using utils::shard_id
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Gets the Id of Invite Guild struct.
Gets the Id of Invite Guild struct.
Auto Trait Implementations
impl RefUnwindSafe for InviteGuild
impl Send for InviteGuild
impl Sync for InviteGuild
impl Unpin for InviteGuild
impl UnwindSafe for InviteGuild
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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