Enum serenity::model::guild::GuildContainer[][src]

pub enum GuildContainer {
    Guild(PartialGuild),
    Id(GuildId),
}

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

A guild which can have its contents directly searched.

A guild's id, which can be used to search the cache for a guild.

Trait Implementations

impl Clone for GuildContainer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GuildContainer
[src]

Formats the value using the given formatter. Read more

impl From<PartialGuild> for GuildContainer
[src]

Performs the conversion.

impl From<GuildId> for GuildContainer
[src]

Performs the conversion.

impl From<u64> for GuildContainer
[src]

Performs the conversion.

Auto Trait Implementations