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
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 Clone for GuildContainer
[src]
impl Clone for GuildContainer
fn clone(&self) -> GuildContainer
[src]
fn clone(&self) -> GuildContainer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GuildContainer
[src]
impl Debug for GuildContainer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<PartialGuild> for GuildContainer
[src]
impl From<PartialGuild> for GuildContainer
fn from(guild: PartialGuild) -> GuildContainer
[src]
fn from(guild: PartialGuild) -> GuildContainer
Performs the conversion.
impl From<GuildId> for GuildContainer
[src]
impl From<GuildId> for GuildContainer
fn from(guild_id: GuildId) -> GuildContainer
[src]
fn from(guild_id: GuildId) -> GuildContainer
Performs the conversion.
impl From<u64> for GuildContainer
[src]
impl From<u64> for GuildContainer
fn from(id: u64) -> GuildContainer
[src]
fn from(id: u64) -> GuildContainer
Performs the conversion.
Auto Trait Implementations
impl Send for GuildContainer
impl Send for GuildContainer
impl Sync for GuildContainer
impl Sync for GuildContainer