[][src]Struct stripe::UpdatePlan

pub struct UpdatePlan<'a> {
    pub active: Option<bool>,
    pub expand: &'a [&'a str],
    pub metadata: Option<Metadata>,
    pub nickname: Option<&'a str>,
    pub trial_period_days: Option<u32>,
}

The parameters for Plan::update.

Fields

active: Option<bool>

Whether the plan is currently available for new subscriptions.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

metadata: Option<Metadata>

A set of key-value pairs that you can attach to a plan object.

It can be useful for storing additional information about the plan in a structured format.

nickname: Option<&'a str>

A brief description of the plan, hidden from customers.

trial_period_days: Option<u32>

Default number of trial days when subscribing a customer to this plan using trial_from_plan=true.

Methods

impl<'a> UpdatePlan<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Default for UpdatePlan<'a>[src]

impl<'a> Clone for UpdatePlan<'a>[src]

impl<'a> Debug for UpdatePlan<'a>[src]

impl<'a> Serialize for UpdatePlan<'a>[src]

Auto Trait Implementations

impl<'a> Send for UpdatePlan<'a>

impl<'a> Unpin for UpdatePlan<'a>

impl<'a> Sync for UpdatePlan<'a>

impl<'a> UnwindSafe for UpdatePlan<'a>

impl<'a> RefUnwindSafe for UpdatePlan<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self