pub struct SponsorshipTier {
pub created_at: DateTime<Utc>,
pub description: String,
pub is_custom_ammount: bool,
pub is_one_time: bool,
pub monthly_price_in_cents: i64,
pub monthly_price_in_dollars: i64,
pub name: String,
pub node_id: String,
}
Expand description
The tier_changed
and pending_tier_change
will include the original tier before the change or pending change. For more information, see the pending tier change payload.
JSON schema
{
"title": "Sponsorship Tier",
"description": "The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.",
"type": "object",
"required": [
"created_at",
"description",
"is_custom_ammount",
"is_one_time",
"monthly_price_in_cents",
"monthly_price_in_dollars",
"name",
"node_id"
],
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"is_custom_ammount": {
"type": "boolean"
},
"is_one_time": {
"type": "boolean"
},
"monthly_price_in_cents": {
"type": "integer"
},
"monthly_price_in_dollars": {
"type": "integer"
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§created_at: DateTime<Utc>
§description: String
§is_custom_ammount: bool
§is_one_time: bool
§monthly_price_in_cents: i64
§monthly_price_in_dollars: i64
§name: String
§node_id: String
Implementations§
Source§impl SponsorshipTier
impl SponsorshipTier
pub fn builder() -> SponsorshipTier
Trait Implementations§
Source§impl Clone for SponsorshipTier
impl Clone for SponsorshipTier
Source§fn clone(&self) -> SponsorshipTier
fn clone(&self) -> SponsorshipTier
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 SponsorshipTier
impl Debug for SponsorshipTier
Source§impl<'de> Deserialize<'de> for SponsorshipTier
impl<'de> Deserialize<'de> for SponsorshipTier
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<&SponsorshipTier> for SponsorshipTier
impl From<&SponsorshipTier> for SponsorshipTier
Source§fn from(value: &SponsorshipTier) -> Self
fn from(value: &SponsorshipTier) -> Self
Converts to this type from the input type.
Source§impl From<SponsorshipTier> for SponsorshipTier
impl From<SponsorshipTier> for SponsorshipTier
Source§fn from(value: SponsorshipTier) -> Self
fn from(value: SponsorshipTier) -> Self
Converts to this type from the input type.
Source§impl Serialize for SponsorshipTier
impl Serialize for SponsorshipTier
Source§impl TryFrom<SponsorshipTier> for SponsorshipTier
impl TryFrom<SponsorshipTier> for SponsorshipTier
Auto Trait Implementations§
impl Freeze for SponsorshipTier
impl RefUnwindSafe for SponsorshipTier
impl Send for SponsorshipTier
impl Sync for SponsorshipTier
impl Unpin for SponsorshipTier
impl UnwindSafe for SponsorshipTier
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