pub struct CreatePaymentLinkSubscriptionData {
pub description: Option<String>,
pub invoice_settings: Option<CreatePaymentLinkSubscriptionDataInvoiceSettings>,
pub metadata: Option<Metadata>,
pub trial_period_days: Option<u32>,
pub trial_settings: Option<CreatePaymentLinkSubscriptionDataTrialSettings>,
}
Fields§
§description: Option<String>
The subscription’s description, meant to be displayable to the customer.
Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
invoice_settings: Option<CreatePaymentLinkSubscriptionDataInvoiceSettings>
All invoices will be billed using the specified settings.
metadata: Option<Metadata>
Set of key-value pairs that will declaratively set metadata on Subscriptions generated from this payment link.
Unlike object-level metadata, this field is declarative. Updates will clear prior values.
trial_period_days: Option<u32>
Integer representing the number of trial period days before the customer is charged for the first time.
Has to be at least 1.
trial_settings: Option<CreatePaymentLinkSubscriptionDataTrialSettings>
Settings related to subscription trials.
Trait Implementations§
source§impl Clone for CreatePaymentLinkSubscriptionData
impl Clone for CreatePaymentLinkSubscriptionData
source§fn clone(&self) -> CreatePaymentLinkSubscriptionData
fn clone(&self) -> CreatePaymentLinkSubscriptionData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CreatePaymentLinkSubscriptionData
impl Default for CreatePaymentLinkSubscriptionData
source§fn default() -> CreatePaymentLinkSubscriptionData
fn default() -> CreatePaymentLinkSubscriptionData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePaymentLinkSubscriptionData
impl<'de> Deserialize<'de> for CreatePaymentLinkSubscriptionData
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 RefUnwindSafe for CreatePaymentLinkSubscriptionData
impl Send for CreatePaymentLinkSubscriptionData
impl Sync for CreatePaymentLinkSubscriptionData
impl Unpin for CreatePaymentLinkSubscriptionData
impl UnwindSafe for CreatePaymentLinkSubscriptionData
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