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