pub struct EntitlementCreate(pub Entitlement);Expand description
The data of the Entitlement Create dispatch event.
discord.js counterpart: the EntitlementCreate event.
Dereferences to the contained Entitlement.
Tuple Fields§
§0: EntitlementMethods from Deref<Target = Entitlement>§
Trait Implementations§
Source§impl Clone for EntitlementCreate
impl Clone for EntitlementCreate
Source§impl Debug for EntitlementCreate
impl Debug for EntitlementCreate
Source§impl Deref for EntitlementCreate
impl Deref for EntitlementCreate
Source§type Target = Entitlement
type Target = Entitlement
The resulting type after dereferencing.
Source§fn deref(&self) -> &Entitlement
fn deref(&self) -> &Entitlement
Dereferences the value.
Source§impl DerefMut for EntitlementCreate
impl DerefMut for EntitlementCreate
Source§fn deref_mut(&mut self) -> &mut Entitlement
fn deref_mut(&mut self) -> &mut Entitlement
Mutably dereferences the value.
Source§impl<'de> Deserialize<'de> for EntitlementCreate
impl<'de> Deserialize<'de> for EntitlementCreate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EntitlementCreate> for Entitlement
impl From<EntitlementCreate> for Entitlement
Source§fn from(event: EntitlementCreate) -> Self
fn from(event: EntitlementCreate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntitlementCreate
impl PartialEq for EntitlementCreate
Source§impl Serialize for EntitlementCreate
impl Serialize for EntitlementCreate
impl StructuralPartialEq for EntitlementCreate
Auto Trait Implementations§
impl Forget for EntitlementCreate
impl Freeze for EntitlementCreate
impl Move for EntitlementCreate
impl RefUnwindSafe for EntitlementCreate
impl Send for EntitlementCreate
impl Sync for EntitlementCreate
impl Unpin for EntitlementCreate
impl UnsafeUnpin for EntitlementCreate
impl UnwindSafe for EntitlementCreate
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