[−][src]Struct stripe::UpdatePlan
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.
product: Option<IdOrCreate<'a, CreateProduct<'a>>>
The product the plan belongs to.
Note that after updating, statement descriptors and line items of the plan in active subscriptions will be affected.
trial_period_days: Option<u32>
Default number of trial days when subscribing a customer to this plan using trial_from_plan=true
.
Implementations
impl<'a> UpdatePlan<'a>
[src][−]
Trait Implementations
impl<'a> Clone for UpdatePlan<'a>
[src][+]
impl<'a> Debug for UpdatePlan<'a>
[src][+]
impl<'a> Default for UpdatePlan<'a>
[src][+]
impl<'a> Serialize for UpdatePlan<'a>
[src][+]
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpdatePlan<'a>
impl<'a> Send for UpdatePlan<'a>
impl<'a> Sync for UpdatePlan<'a>
impl<'a> Unpin for UpdatePlan<'a>
impl<'a> UnwindSafe for UpdatePlan<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,