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