Enum serenity::model::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 From<PartialGuild> for GuildContainer
[src]

[src]

Performs the conversion.

impl From<GuildId> for GuildContainer
[src]

[src]

Performs the conversion.

impl From<u64> for GuildContainer
[src]

[src]

Performs the conversion.

impl Clone for GuildContainer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GuildContainer
[src]

[src]

Formats the value using the given formatter.