pub struct SponsorshipCancelled {
pub action: SponsorshipCancelledAction,
pub sender: User,
pub sponsorship: SponsorshipCancelledSponsorship,
}
Expand description
SponsorshipCancelled
JSON schema
{
"title": "sponsorship cancelled event",
"type": "object",
"required": [
"action",
"sender",
"sponsorship"
],
"properties": {
"action": {
"type": "string",
"enum": [
"cancelled"
]
},
"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: SponsorshipCancelledAction
§sender: User
§sponsorship: SponsorshipCancelledSponsorship
Implementations§
Source§impl SponsorshipCancelled
impl SponsorshipCancelled
pub fn builder() -> SponsorshipCancelled
Trait Implementations§
Source§impl Clone for SponsorshipCancelled
impl Clone for SponsorshipCancelled
Source§fn clone(&self) -> SponsorshipCancelled
fn clone(&self) -> SponsorshipCancelled
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 SponsorshipCancelled
impl Debug for SponsorshipCancelled
Source§impl<'de> Deserialize<'de> for SponsorshipCancelled
impl<'de> Deserialize<'de> for SponsorshipCancelled
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<&SponsorshipCancelled> for SponsorshipCancelled
impl From<&SponsorshipCancelled> for SponsorshipCancelled
Source§fn from(value: &SponsorshipCancelled) -> Self
fn from(value: &SponsorshipCancelled) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipCancelled> for SponsorshipCancelled
impl From<SponsorshipCancelled> for SponsorshipCancelled
Source§fn from(value: SponsorshipCancelled) -> Self
fn from(value: SponsorshipCancelled) -> 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 Serialize for SponsorshipCancelled
impl Serialize for SponsorshipCancelled
Auto Trait Implementations§
impl Freeze for SponsorshipCancelled
impl RefUnwindSafe for SponsorshipCancelled
impl Send for SponsorshipCancelled
impl Sync for SponsorshipCancelled
impl Unpin for SponsorshipCancelled
impl UnwindSafe for SponsorshipCancelled
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