#[non_exhaustive]pub enum GuildCreate {
Available(Box<AvailableGuild>),
Unavailable(UnavailableGuild),
}Expand description
The data of the Guild Create
dispatch event: a guild from Ready was loaded, became available again, or
the bot joined a new guild.
discord.js counterpart: the GuildCreate event (and the guilds becoming available).
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.
Available(Box<AvailableGuild>)
The guild with its members, channels, presences, ….
The guild is unavailable due to an outage.
Implementations§
Trait Implementations§
Source§impl Clone for GuildCreate
impl Clone for GuildCreate
Source§impl Debug for GuildCreate
impl Debug for GuildCreate
Source§impl<'de> Deserialize<'de> for GuildCreate
impl<'de> Deserialize<'de> for GuildCreate
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GuildCreate
impl PartialEq for GuildCreate
Source§impl Serialize for GuildCreate
impl Serialize for GuildCreate
impl StructuralPartialEq for GuildCreate
Auto Trait Implementations§
impl Freeze for GuildCreate
impl RefUnwindSafe for GuildCreate
impl Send for GuildCreate
impl Sync for GuildCreate
impl Unpin for GuildCreate
impl UnsafeUnpin for GuildCreate
impl UnwindSafe for GuildCreate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more