#[non_exhaustive]pub struct IntegrationCreate {
pub guild_id: GuildId,
pub integration: Integration,
}Expand description
The data of the Integration Create
dispatch event (the integration has no user).
discord.js counterpart: the integration data behind GuildIntegrationsUpdate.
Dereferences to the contained Integration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.guild_id: GuildIdThe guild.
integration: IntegrationThe created integration.
Trait Implementations§
Source§impl Clone for IntegrationCreate
impl Clone for IntegrationCreate
Source§impl Debug for IntegrationCreate
impl Debug for IntegrationCreate
Source§impl Deref for IntegrationCreate
impl Deref for IntegrationCreate
Source§type Target = Integration
type Target = Integration
The resulting type after dereferencing.
Source§fn deref(&self) -> &Integration
fn deref(&self) -> &Integration
Dereferences the value.
Source§impl DerefMut for IntegrationCreate
impl DerefMut for IntegrationCreate
Source§fn deref_mut(&mut self) -> &mut Integration
fn deref_mut(&mut self) -> &mut Integration
Mutably dereferences the value.
Source§impl<'de> Deserialize<'de> for IntegrationCreate
impl<'de> Deserialize<'de> for IntegrationCreate
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 IntegrationCreate
impl PartialEq for IntegrationCreate
Source§impl Serialize for IntegrationCreate
impl Serialize for IntegrationCreate
impl StructuralPartialEq for IntegrationCreate
Auto Trait Implementations§
impl Forget for IntegrationCreate
impl Freeze for IntegrationCreate
impl Move for IntegrationCreate
impl RefUnwindSafe for IntegrationCreate
impl Send for IntegrationCreate
impl Sync for IntegrationCreate
impl Unpin for IntegrationCreate
impl UnsafeUnpin for IntegrationCreate
impl UnwindSafe for IntegrationCreate
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