pub struct SponsorshipPendingTierChange {
pub action: SponsorshipPendingTierChangeAction,
pub changes: SponsorshipPendingTierChangeChanges,
pub effective_date: Option<String>,
pub sender: User,
pub sponsorship: SponsorshipPendingTierChangeSponsorship,
}
Expand description
SponsorshipPendingTierChange
JSON schema
{
"title": "sponsorship pending_tier_change event",
"type": "object",
"required": [
"action",
"changes",
"sender",
"sponsorship"
],
"properties": {
"action": {
"type": "string",
"enum": [
"pending_tier_change"
]
},
"changes": {
"type": "object",
"required": [
"tier"
],
"properties": {
"tier": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"$ref": "#/definitions/sponsorship-tier"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"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: SponsorshipPendingTierChangeAction
§changes: SponsorshipPendingTierChangeChanges
§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: SponsorshipPendingTierChangeSponsorship
Implementations§
Trait Implementations§
Source§impl Clone for SponsorshipPendingTierChange
impl Clone for SponsorshipPendingTierChange
Source§fn clone(&self) -> SponsorshipPendingTierChange
fn clone(&self) -> SponsorshipPendingTierChange
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 SponsorshipPendingTierChange
impl Debug for SponsorshipPendingTierChange
Source§impl<'de> Deserialize<'de> for SponsorshipPendingTierChange
impl<'de> Deserialize<'de> for SponsorshipPendingTierChange
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<&SponsorshipPendingTierChange> for SponsorshipPendingTierChange
impl From<&SponsorshipPendingTierChange> for SponsorshipPendingTierChange
Source§fn from(value: &SponsorshipPendingTierChange) -> Self
fn from(value: &SponsorshipPendingTierChange) -> 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<SponsorshipPendingTierChange> for SponsorshipPendingTierChange
impl From<SponsorshipPendingTierChange> for SponsorshipPendingTierChange
Source§fn from(value: SponsorshipPendingTierChange) -> Self
fn from(value: SponsorshipPendingTierChange) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SponsorshipPendingTierChange
impl RefUnwindSafe for SponsorshipPendingTierChange
impl Send for SponsorshipPendingTierChange
impl Sync for SponsorshipPendingTierChange
impl Unpin for SponsorshipPendingTierChange
impl UnwindSafe for SponsorshipPendingTierChange
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