pub struct PlanDetails {
pub base_fee_monthly: i64,
pub base_fee_yearly: i64,
pub custom: bool,
pub description: String,
pub development_features: HashMap<String, GenericUsage>,
pub features: HashMap<String, GenericUsage>,
pub latest: Option<bool>,
pub name: String,
pub production_features: HashMap<String, GenericUsage>,
pub staging_features: HashMap<String, GenericUsage>,
pub version: i64,
}Fields§
§base_fee_monthly: i64BaseFeeMonthly is the monthly base fee for the plan.
base_fee_yearly: i64BaseFeeYearly is the yearly base fee for the plan.
custom: boolCustom is true if the plan is custom. This means it will be hidden from the pricing page.
description: StringDescription is the description of the plan.
development_features: HashMap<String, GenericUsage>§features: HashMap<String, GenericUsage>§latest: Option<bool>Latest is true if the plan is the latest version of a plan and should be available for self-service usage.
name: StringName is the name of the plan.
production_features: HashMap<String, GenericUsage>§staging_features: HashMap<String, GenericUsage>§version: i64Version is the version of the plan. The combination of name@version must be unique.
Implementations§
Source§impl PlanDetails
impl PlanDetails
pub fn new( base_fee_monthly: i64, base_fee_yearly: i64, custom: bool, description: String, development_features: HashMap<String, GenericUsage>, features: HashMap<String, GenericUsage>, name: String, production_features: HashMap<String, GenericUsage>, staging_features: HashMap<String, GenericUsage>, version: i64, ) -> PlanDetails
Trait Implementations§
Source§impl Clone for PlanDetails
impl Clone for PlanDetails
Source§fn clone(&self) -> PlanDetails
fn clone(&self) -> PlanDetails
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 PlanDetails
impl Debug for PlanDetails
Source§impl Default for PlanDetails
impl Default for PlanDetails
Source§fn default() -> PlanDetails
fn default() -> PlanDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlanDetails
impl<'de> Deserialize<'de> for PlanDetails
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 PlanDetails
impl PartialEq for PlanDetails
Source§impl Serialize for PlanDetails
impl Serialize for PlanDetails
impl StructuralPartialEq for PlanDetails
Auto Trait Implementations§
impl Freeze for PlanDetails
impl RefUnwindSafe for PlanDetails
impl Send for PlanDetails
impl Sync for PlanDetails
impl Unpin for PlanDetails
impl UnwindSafe for PlanDetails
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