pub struct SponsorshipTierChangedSponsorship {
pub created_at: DateTime<Utc>,
pub node_id: String,
pub privacy_level: String,
pub sponsor: User,
pub sponsorable: User,
pub tier: SponsorshipTier,
}Expand description
SponsorshipTierChangedSponsorship
JSON schema
{
"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
}Fields§
§created_at: DateTime<Utc>§node_id: String§privacy_level: String§sponsor: User§sponsorable: User§tier: SponsorshipTierImplementations§
Trait Implementations§
Source§impl Clone for SponsorshipTierChangedSponsorship
impl Clone for SponsorshipTierChangedSponsorship
Source§fn clone(&self) -> SponsorshipTierChangedSponsorship
fn clone(&self) -> SponsorshipTierChangedSponsorship
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 SponsorshipTierChangedSponsorship
impl<'de> Deserialize<'de> for SponsorshipTierChangedSponsorship
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<&SponsorshipTierChangedSponsorship> for SponsorshipTierChangedSponsorship
impl From<&SponsorshipTierChangedSponsorship> for SponsorshipTierChangedSponsorship
Source§fn from(value: &SponsorshipTierChangedSponsorship) -> Self
fn from(value: &SponsorshipTierChangedSponsorship) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipTierChangedSponsorship> for SponsorshipTierChangedSponsorship
impl From<SponsorshipTierChangedSponsorship> for SponsorshipTierChangedSponsorship
Source§fn from(value: SponsorshipTierChangedSponsorship) -> Self
fn from(value: SponsorshipTierChangedSponsorship) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SponsorshipTierChangedSponsorship
impl RefUnwindSafe for SponsorshipTierChangedSponsorship
impl Send for SponsorshipTierChangedSponsorship
impl Sync for SponsorshipTierChangedSponsorship
impl Unpin for SponsorshipTierChangedSponsorship
impl UnwindSafe for SponsorshipTierChangedSponsorship
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