pub struct SponsorshipPendingCancellation {
pub action: SponsorshipPendingCancellationAction,
pub effective_date: Option<String>,
pub sender: User,
pub sponsorship: SponsorshipPendingCancellationSponsorship,
}
Expand description
SponsorshipPendingCancellation
JSON schema
{
"title": "sponsorship pending_cancellation event",
"type": "object",
"required": [
"action",
"sender",
"sponsorship"
],
"properties": {
"action": {
"type": "string",
"enum": [
"pending_cancellation"
]
},
"effective_date": {
"description": "The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.",
"type": "string"
},
"sender": {
"$ref": "#/definitions/user"
},
"sponsorship": {
"type": "object",
"required": [
"created_at",
"node_id",
"privacy_level",
"sponsor",
"sponsorable",
"tier"
],
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"node_id": {
"type": "string"
},
"privacy_level": {
"type": "string"
},
"sponsor": {
"$ref": "#/definitions/user"
},
"sponsorable": {
"$ref": "#/definitions/user"
},
"tier": {
"$ref": "#/definitions/sponsorship-tier"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: SponsorshipPendingCancellationAction
§effective_date: Option<String>
The pending_cancellation
and pending_tier_change
event types will include the date the cancellation or tier change will take effect.
sender: User
§sponsorship: SponsorshipPendingCancellationSponsorship
Implementations§
Trait Implementations§
Source§impl Clone for SponsorshipPendingCancellation
impl Clone for SponsorshipPendingCancellation
Source§fn clone(&self) -> SponsorshipPendingCancellation
fn clone(&self) -> SponsorshipPendingCancellation
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<'de> Deserialize<'de> for SponsorshipPendingCancellation
impl<'de> Deserialize<'de> for SponsorshipPendingCancellation
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<&SponsorshipPendingCancellation> for SponsorshipPendingCancellation
impl From<&SponsorshipPendingCancellation> for SponsorshipPendingCancellation
Source§fn from(value: &SponsorshipPendingCancellation) -> Self
fn from(value: &SponsorshipPendingCancellation) -> 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<SponsorshipPendingCancellation> for SponsorshipPendingCancellation
impl From<SponsorshipPendingCancellation> for SponsorshipPendingCancellation
Source§fn from(value: SponsorshipPendingCancellation) -> Self
fn from(value: SponsorshipPendingCancellation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SponsorshipPendingCancellation
impl RefUnwindSafe for SponsorshipPendingCancellation
impl Send for SponsorshipPendingCancellation
impl Sync for SponsorshipPendingCancellation
impl Unpin for SponsorshipPendingCancellation
impl UnwindSafe for SponsorshipPendingCancellation
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