pub struct SponsorshipTier {
pub created_at: String,
pub description: String,
pub is_custom_ammount: Option<bool>,
pub is_custom_amount: Option<bool>,
pub is_one_time: bool,
pub monthly_price_in_cents: i32,
pub monthly_price_in_dollars: i32,
pub name: String,
pub node_id: String,
}
Expand description
SponsorshipTier : 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.
Fields§
§created_at: String
§description: String
§is_custom_ammount: Option<bool>
§is_custom_amount: Option<bool>
§is_one_time: bool
§monthly_price_in_cents: i32
§monthly_price_in_dollars: i32
§name: String
§node_id: String
Implementations§
Source§impl SponsorshipTier
impl SponsorshipTier
Sourcepub fn new(
created_at: String,
description: String,
is_one_time: bool,
monthly_price_in_cents: i32,
monthly_price_in_dollars: i32,
name: String,
node_id: String,
) -> SponsorshipTier
pub fn new( created_at: String, description: String, is_one_time: bool, monthly_price_in_cents: i32, monthly_price_in_dollars: i32, name: String, node_id: String, ) -> SponsorshipTier
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.
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 Default for SponsorshipTier
impl Default for SponsorshipTier
Source§fn default() -> SponsorshipTier
fn default() -> SponsorshipTier
Returns the “default value” for a type. Read more
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 PartialEq for SponsorshipTier
impl PartialEq for SponsorshipTier
Source§impl Serialize for SponsorshipTier
impl Serialize for SponsorshipTier
impl StructuralPartialEq 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