Struct squareup::models::SubscriptionPhase
source · pub struct SubscriptionPhase {
pub uid: Option<String>,
pub cadence: SubscriptionCadence,
pub periods: Option<i32>,
pub recurring_price_money: Money,
pub ordinal: Option<i64>,
pub pricing: Option<SubscriptionPricing>,
}Expand description
Describes a phase in a subscription plan.
For more information, see Set Up and Manage a Subscription Plan.
Fields§
§uid: Option<String>The Square-assigned ID of the subscription phase. This field cannot be changed after a
SubscriptionPhase is created.
cadence: SubscriptionCadenceThe billing cadence of the phase. For example, weekly or monthly. This field cannot be
changed after a SubscriptionPhase is created.
periods: Option<i32>The number of cadences the phase lasts. If not set, the phase never ends. Only the last
phase can be indefinite. This field cannot be changed after a SubscriptionPhase is
created.
recurring_price_money: MoneyThe amount to bill for each cadence.
ordinal: Option<i64>The position this phase appears in the sequence of phases defined for the plan, indexed from
0. This field cannot be changed after a SubscriptionPhase is created.
pricing: Option<SubscriptionPricing>The subscription pricing.
Trait Implementations§
source§impl Clone for SubscriptionPhase
impl Clone for SubscriptionPhase
source§fn clone(&self) -> SubscriptionPhase
fn clone(&self) -> SubscriptionPhase
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SubscriptionPhase
impl Debug for SubscriptionPhase
source§impl Default for SubscriptionPhase
impl Default for SubscriptionPhase
source§fn default() -> SubscriptionPhase
fn default() -> SubscriptionPhase
source§impl<'de> Deserialize<'de> for SubscriptionPhase
impl<'de> Deserialize<'de> for SubscriptionPhase
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>,
source§impl PartialEq for SubscriptionPhase
impl PartialEq for SubscriptionPhase
source§fn eq(&self, other: &SubscriptionPhase) -> bool
fn eq(&self, other: &SubscriptionPhase) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for SubscriptionPhase
impl Serialize for SubscriptionPhase
impl Eq for SubscriptionPhase
impl StructuralPartialEq for SubscriptionPhase
Auto Trait Implementations§
impl RefUnwindSafe for SubscriptionPhase
impl Send for SubscriptionPhase
impl Sync for SubscriptionPhase
impl Unpin for SubscriptionPhase
impl UnwindSafe for SubscriptionPhase
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.