pub struct Plan {Show 20 fields
pub active: bool,
pub aggregate_usage: Option<String>,
pub amount: Option<i64>,
pub amount_decimal: Option<Decimal>,
pub billing_scheme: String,
pub created: i64,
pub currency: String,
pub id: String,
pub interval: String,
pub interval_count: i64,
pub livemode: bool,
pub metadata: Option<Value>,
pub nickname: Option<String>,
pub object: String,
pub product: Option<Value>,
pub tiers: Option<Vec<PlanTier>>,
pub tiers_mode: Option<String>,
pub transform_usage: Option<Value>,
pub trial_period_days: Option<i64>,
pub usage_type: String,
}Fields§
§active: bool§aggregate_usage: Option<String>§amount: Option<i64>§amount_decimal: Option<Decimal>§billing_scheme: String§created: i64§currency: String§id: String§interval: String§interval_count: i64§livemode: bool§metadata: Option<Value>§nickname: Option<String>§object: String§product: Option<Value>§tiers: Option<Vec<PlanTier>>§tiers_mode: Option<String>§transform_usage: Option<Value>§trial_period_days: Option<i64>§usage_type: StringTrait Implementations§
source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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
Auto Trait Implementations§
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
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