pub struct EntitlementUpdate(pub Entitlement);Expand description
The data of the Entitlement Update
dispatch event (for subscriptions: when they end, with ends_at).
discord.js counterpart: the EntitlementUpdate event.
Dereferences to the contained Entitlement.
Tuple Fields§
§0: EntitlementMethods from Deref<Target = Entitlement>§
Trait Implementations§
Source§impl Clone for EntitlementUpdate
impl Clone for EntitlementUpdate
Source§impl Debug for EntitlementUpdate
impl Debug for EntitlementUpdate
Source§impl Deref for EntitlementUpdate
impl Deref for EntitlementUpdate
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 EntitlementUpdate
impl DerefMut for EntitlementUpdate
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 EntitlementUpdate
impl<'de> Deserialize<'de> for EntitlementUpdate
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<EntitlementUpdate> for Entitlement
impl From<EntitlementUpdate> for Entitlement
Source§fn from(event: EntitlementUpdate) -> Self
fn from(event: EntitlementUpdate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntitlementUpdate
impl PartialEq for EntitlementUpdate
Source§impl Serialize for EntitlementUpdate
impl Serialize for EntitlementUpdate
impl StructuralPartialEq for EntitlementUpdate
Auto Trait Implementations§
impl Freeze for EntitlementUpdate
impl RefUnwindSafe for EntitlementUpdate
impl Send for EntitlementUpdate
impl Sync for EntitlementUpdate
impl Unpin for EntitlementUpdate
impl UnsafeUnpin for EntitlementUpdate
impl UnwindSafe for EntitlementUpdate
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