pub struct SponsorshipEdited {
pub action: SponsorshipEditedAction,
pub changes: SponsorshipEditedChanges,
pub sender: User,
pub sponsorship: SponsorshipEditedSponsorship,
}
Expand description
SponsorshipEdited
JSON schema
{
"title": "sponsorship edited event",
"type": "object",
"required": [
"action",
"changes",
"sender",
"sponsorship"
],
"properties": {
"action": {
"type": "string",
"enum": [
"edited"
]
},
"changes": {
"type": "object",
"properties": {
"privacy_level": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.",
"type": "string"
}
},
"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: SponsorshipEditedAction
§changes: SponsorshipEditedChanges
§sender: User
§sponsorship: SponsorshipEditedSponsorship
Implementations§
Source§impl SponsorshipEdited
impl SponsorshipEdited
pub fn builder() -> SponsorshipEdited
Trait Implementations§
Source§impl Clone for SponsorshipEdited
impl Clone for SponsorshipEdited
Source§fn clone(&self) -> SponsorshipEdited
fn clone(&self) -> SponsorshipEdited
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 SponsorshipEdited
impl Debug for SponsorshipEdited
Source§impl<'de> Deserialize<'de> for SponsorshipEdited
impl<'de> Deserialize<'de> for SponsorshipEdited
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<&SponsorshipEdited> for SponsorshipEdited
impl From<&SponsorshipEdited> for SponsorshipEdited
Source§fn from(value: &SponsorshipEdited) -> Self
fn from(value: &SponsorshipEdited) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipEdited> for SponsorshipEdited
impl From<SponsorshipEdited> for SponsorshipEdited
Source§fn from(value: SponsorshipEdited) -> Self
fn from(value: SponsorshipEdited) -> 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 Serialize for SponsorshipEdited
impl Serialize for SponsorshipEdited
Source§impl TryFrom<SponsorshipEdited> for SponsorshipEdited
impl TryFrom<SponsorshipEdited> for SponsorshipEdited
Auto Trait Implementations§
impl Freeze for SponsorshipEdited
impl RefUnwindSafe for SponsorshipEdited
impl Send for SponsorshipEdited
impl Sync for SponsorshipEdited
impl Unpin for SponsorshipEdited
impl UnwindSafe for SponsorshipEdited
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