pub struct BillingPlan {Show 14 fields
pub id: String,
pub name: String,
pub description: String,
pub unit_price: Option<Money>,
pub interval: i32,
pub per_seat: bool,
pub minimum_seats: Option<u32>,
pub maximum_seats: Option<u32>,
pub storage_bytes: Option<u64>,
pub storage_base_bytes: Option<u64>,
pub storage_per_seat_bytes: Option<u64>,
pub storage_overage_per_gb: Option<Money>,
pub seat_pricing: Option<BillingSeatPricing>,
pub tier: String,
}Fields§
§id: StringStable tier/interval/currency key, never a provider product ID.
name: String§description: String§unit_price: Option<Money>§interval: i32§per_seat: bool§minimum_seats: Option<u32>§maximum_seats: Option<u32>§storage_bytes: Option<u64>Published allowances, not the account’s measured usage. Marketed GB use decimal units: one GB is 1,000,000,000 bytes. Absence is unknown.
storage_base_bytes: Option<u64>§storage_per_seat_bytes: Option<u64>§storage_overage_per_gb: Option<Money>Price per decimal GB; preserve currency and integral minor units.
seat_pricing: Option<BillingSeatPricing>Full volume/graduated schedule. A headline per-seat price must never be multiplied across seats when the published tier schedule differs.
tier: StringHeddle tier key, independent of interval and currency.
Implementations§
Source§impl BillingPlan
impl BillingPlan
Sourcepub fn interval(&self) -> BillingInterval
pub fn interval(&self) -> BillingInterval
Returns the enum value of interval, or the default if the field is set to an invalid enum value.
Sourcepub fn set_interval(&mut self, value: BillingInterval)
pub fn set_interval(&mut self, value: BillingInterval)
Sets interval to the provided enum value.
Sourcepub fn minimum_seats(&self) -> u32
pub fn minimum_seats(&self) -> u32
Returns the value of minimum_seats, or the default value if minimum_seats is unset.
Sourcepub fn maximum_seats(&self) -> u32
pub fn maximum_seats(&self) -> u32
Returns the value of maximum_seats, or the default value if maximum_seats is unset.
Sourcepub fn storage_bytes(&self) -> u64
pub fn storage_bytes(&self) -> u64
Returns the value of storage_bytes, or the default value if storage_bytes is unset.
Sourcepub fn storage_base_bytes(&self) -> u64
pub fn storage_base_bytes(&self) -> u64
Returns the value of storage_base_bytes, or the default value if storage_base_bytes is unset.
Sourcepub fn storage_per_seat_bytes(&self) -> u64
pub fn storage_per_seat_bytes(&self) -> u64
Returns the value of storage_per_seat_bytes, or the default value if storage_per_seat_bytes is unset.
Trait Implementations§
Source§impl Clone for BillingPlan
impl Clone for BillingPlan
Source§fn clone(&self) -> BillingPlan
fn clone(&self) -> BillingPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BillingPlan
impl Debug for BillingPlan
Source§impl Default for BillingPlan
impl Default for BillingPlan
Source§fn default() -> BillingPlan
fn default() -> BillingPlan
Source§impl Message for BillingPlan
impl Message for BillingPlan
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for BillingPlan
impl PartialEq for BillingPlan
impl StructuralPartialEq for BillingPlan
Auto Trait Implementations§
impl Freeze for BillingPlan
impl RefUnwindSafe for BillingPlan
impl Send for BillingPlan
impl Sync for BillingPlan
impl Unpin for BillingPlan
impl UnsafeUnpin for BillingPlan
impl UnwindSafe for BillingPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more