Enum serenity::model::guild::GuildContainer [−][src]
#[non_exhaustive] pub enum GuildContainer { Guild(PartialGuild), Id(GuildId), }
Expand description
A container for guilds.
This is used to differentiate whether a guild itself can be used or whether a guild needs to be retrieved from the cache.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Guild(PartialGuild)
A guild which can have its contents directly searched.
Id(GuildId)
A guild’s id, which can be used to search the cache for a guild.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GuildContainer
impl Send for GuildContainer
impl Sync for GuildContainer
impl Unpin for GuildContainer
impl UnwindSafe for GuildContainer
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V