pub struct SubscriptionCreate(pub Subscription);Expand description
The data of the Subscription Create dispatch event (use entitlements, not the status, to grant perks).
discord.js counterpart: the SubscriptionCreate event.
Dereferences to the contained Subscription.
Tuple Fields§
§0: SubscriptionTrait Implementations§
Source§impl Clone for SubscriptionCreate
impl Clone for SubscriptionCreate
Source§impl Debug for SubscriptionCreate
impl Debug for SubscriptionCreate
Source§impl Deref for SubscriptionCreate
impl Deref for SubscriptionCreate
Source§type Target = Subscription
type Target = Subscription
The resulting type after dereferencing.
Source§fn deref(&self) -> &Subscription
fn deref(&self) -> &Subscription
Dereferences the value.
Source§impl DerefMut for SubscriptionCreate
impl DerefMut for SubscriptionCreate
Source§fn deref_mut(&mut self) -> &mut Subscription
fn deref_mut(&mut self) -> &mut Subscription
Mutably dereferences the value.
Source§impl<'de> Deserialize<'de> for SubscriptionCreate
impl<'de> Deserialize<'de> for SubscriptionCreate
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<SubscriptionCreate> for Subscription
impl From<SubscriptionCreate> for Subscription
Source§fn from(event: SubscriptionCreate) -> Self
fn from(event: SubscriptionCreate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubscriptionCreate
impl PartialEq for SubscriptionCreate
Source§impl Serialize for SubscriptionCreate
impl Serialize for SubscriptionCreate
impl StructuralPartialEq for SubscriptionCreate
Auto Trait Implementations§
impl Forget for SubscriptionCreate
impl Freeze for SubscriptionCreate
impl Move for SubscriptionCreate
impl RefUnwindSafe for SubscriptionCreate
impl Send for SubscriptionCreate
impl Sync for SubscriptionCreate
impl Unpin for SubscriptionCreate
impl UnsafeUnpin for SubscriptionCreate
impl UnwindSafe for SubscriptionCreate
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