pub enum SponsorshipEvent {
Cancelled(SponsorshipCancelled),
Created(SponsorshipCreated),
Edited(SponsorshipEdited),
PendingCancellation(SponsorshipPendingCancellation),
PendingTierChange(SponsorshipPendingTierChange),
TierChanged(SponsorshipTierChanged),
}
Expand description
SponsorshipEvent
JSON schema
{
"oneOf": [
{
"$ref": "#/definitions/sponsorship$cancelled"
},
{
"$ref": "#/definitions/sponsorship$created"
},
{
"$ref": "#/definitions/sponsorship$edited"
},
{
"$ref": "#/definitions/sponsorship$pending_cancellation"
},
{
"$ref": "#/definitions/sponsorship$pending_tier_change"
},
{
"$ref": "#/definitions/sponsorship$tier_changed"
}
]
}
Variants§
Cancelled(SponsorshipCancelled)
Created(SponsorshipCreated)
Edited(SponsorshipEdited)
PendingCancellation(SponsorshipPendingCancellation)
PendingTierChange(SponsorshipPendingTierChange)
TierChanged(SponsorshipTierChanged)
Trait Implementations§
Source§impl Clone for SponsorshipEvent
impl Clone for SponsorshipEvent
Source§fn clone(&self) -> SponsorshipEvent
fn clone(&self) -> SponsorshipEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SponsorshipEvent
impl Debug for SponsorshipEvent
Source§impl<'de> Deserialize<'de> for SponsorshipEvent
impl<'de> Deserialize<'de> for SponsorshipEvent
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<&SponsorshipEvent> for SponsorshipEvent
impl From<&SponsorshipEvent> for SponsorshipEvent
Source§fn from(value: &SponsorshipEvent) -> Self
fn from(value: &SponsorshipEvent) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipCancelled> for SponsorshipEvent
impl From<SponsorshipCancelled> for SponsorshipEvent
Source§fn from(value: SponsorshipCancelled) -> Self
fn from(value: SponsorshipCancelled) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipCreated> for SponsorshipEvent
impl From<SponsorshipCreated> for SponsorshipEvent
Source§fn from(value: SponsorshipCreated) -> Self
fn from(value: SponsorshipCreated) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipEdited> for SponsorshipEvent
impl From<SponsorshipEdited> for SponsorshipEvent
Source§fn from(value: SponsorshipEdited) -> Self
fn from(value: SponsorshipEdited) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipPendingCancellation> for SponsorshipEvent
impl From<SponsorshipPendingCancellation> for SponsorshipEvent
Source§fn from(value: SponsorshipPendingCancellation) -> Self
fn from(value: SponsorshipPendingCancellation) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipPendingTierChange> for SponsorshipEvent
impl From<SponsorshipPendingTierChange> for SponsorshipEvent
Source§fn from(value: SponsorshipPendingTierChange) -> Self
fn from(value: SponsorshipPendingTierChange) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipTierChanged> for SponsorshipEvent
impl From<SponsorshipTierChanged> for SponsorshipEvent
Source§fn from(value: SponsorshipTierChanged) -> Self
fn from(value: SponsorshipTierChanged) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SponsorshipEvent
impl RefUnwindSafe for SponsorshipEvent
impl Send for SponsorshipEvent
impl Sync for SponsorshipEvent
impl Unpin for SponsorshipEvent
impl UnwindSafe for SponsorshipEvent
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