Struct qcs_api_client_openapi::models::billing_price::BillingPrice
source · [−]pub struct BillingPrice {
pub active: Option<bool>,
pub billing_scheme: Option<BillingPriceScheme>,
pub id: String,
pub object: Option<Object>,
pub price_type: Option<PriceType>,
pub product: Option<Box<BillingProduct>>,
pub recurring: Option<Box<BillingPriceRecurrence>>,
pub tiers: Option<Vec<BillingPriceTier>>,
pub tiers_mode: Option<BillingPriceTiersMode>,
pub unit_amount_decimal: Option<f64>,
}Fields
active: Option<bool>Whether the price can be used for new purchases.
billing_scheme: Option<BillingPriceScheme>id: StringUnique identifier for the object.
object: Option<Object>String representing the object’s type. Objects of the same type share the same value.
price_type: Option<PriceType>One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
product: Option<Box<BillingProduct>>recurring: Option<Box<BillingPriceRecurrence>>tiers: Option<Vec<BillingPriceTier>>Each element represents a pricing tier. This parameter requires billingScheme to be set to tiered. See also the documentation for billingScheme.
tiers_mode: Option<BillingPriceTiersMode>unit_amount_decimal: Option<f64>The unit amount in currency to be charged. Only set if billingScheme=per_unit.
Implementations
sourceimpl BillingPrice
impl BillingPrice
sourcepub fn new(id: String) -> BillingPrice
pub fn new(id: String) -> BillingPrice
The price schedule for a particular service applied to an invoice line item.
Trait Implementations
sourceimpl Clone for BillingPrice
impl Clone for BillingPrice
sourcefn clone(&self) -> BillingPrice
fn clone(&self) -> BillingPrice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for BillingPrice
impl Debug for BillingPrice
sourceimpl Default for BillingPrice
impl Default for BillingPrice
sourcefn default() -> BillingPrice
fn default() -> BillingPrice
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BillingPrice
impl<'de> Deserialize<'de> for BillingPrice
sourcefn 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
sourceimpl PartialEq<BillingPrice> for BillingPrice
impl PartialEq<BillingPrice> for BillingPrice
sourcefn eq(&self, other: &BillingPrice) -> bool
fn eq(&self, other: &BillingPrice) -> bool
sourceimpl Serialize for BillingPrice
impl Serialize for BillingPrice
impl StructuralPartialEq for BillingPrice
Auto Trait Implementations
impl RefUnwindSafe for BillingPrice
impl Send for BillingPrice
impl Sync for BillingPrice
impl Unpin for BillingPrice
impl UnwindSafe for BillingPrice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more