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
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
impl From<PartialGuild> for GuildContainer
[src]
fn from(guild: PartialGuild) -> GuildContainer
[src]
Performs the conversion.
impl From<GuildId> for GuildContainer
[src]
fn from(guild_id: GuildId) -> GuildContainer
[src]
Performs the conversion.
impl From<u64> for GuildContainer
[src]
fn from(id: u64) -> GuildContainer
[src]
Performs the conversion.
impl Clone for GuildContainer
[src]
fn clone(&self) -> GuildContainer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more