pub struct SubscriptionsPlan {
pub name: String,
pub plan_id: String,
pub frequency: u32,
pub frequency_unit: FrequencyUnit,
pub billing_cycles: Option<u32>,
pub currency: Currency,
pub amount: Decimal,
pub reference: Option<String>,
pub plan_url: String,
pub redirect_url: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
SubscriptionsPlan struct — the API PlanSer response shape.
Fields§
§name: String§plan_id: StringUnique identifier for the plan. Pass this to SubscriptionsAPI::plan_details /
SubscriptionsAPI::update_plan to act on a single plan.
frequency: u32§frequency_unit: FrequencyUnit§billing_cycles: Option<u32>§currency: Currency§amount: Decimal§reference: Option<String>§plan_url: String§redirect_url: Option<String>§created_at: Option<String>§updated_at: Option<String>Trait Implementations§
Source§impl Clone for SubscriptionsPlan
impl Clone for SubscriptionsPlan
Source§fn clone(&self) -> SubscriptionsPlan
fn clone(&self) -> SubscriptionsPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscriptionsPlan
impl Debug for SubscriptionsPlan
Source§impl<'de> Deserialize<'de> for SubscriptionsPlan
impl<'de> Deserialize<'de> for SubscriptionsPlan
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 Freeze for SubscriptionsPlan
impl RefUnwindSafe for SubscriptionsPlan
impl Send for SubscriptionsPlan
impl Sync for SubscriptionsPlan
impl Unpin for SubscriptionsPlan
impl UnsafeUnpin for SubscriptionsPlan
impl UnwindSafe for SubscriptionsPlan
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