pub struct SubscriptionCheckoutRequest {
pub customer_ref: Option<String>,
pub customer_email: Option<String>,
pub price_ref: String,
pub trial_days: Option<u32>,
pub success_url: String,
pub cancel_url: String,
pub metadata: BTreeMap<String, String>,
pub idempotency_key: String,
}Expand description
A recurring hosted checkout (Stripe Checkout in subscription mode) against
a Stripe Price the venture configured (e.g. $15/mo with a trial).
Fields§
§customer_ref: Option<String>§customer_email: Option<String>§price_ref: StringThe Stripe Price id to subscribe to.
trial_days: Option<u32>Free-trial length in days, if any.
success_url: String§cancel_url: String§metadata: BTreeMap<String, String>§idempotency_key: StringTrait Implementations§
Source§impl Clone for SubscriptionCheckoutRequest
impl Clone for SubscriptionCheckoutRequest
Source§fn clone(&self) -> SubscriptionCheckoutRequest
fn clone(&self) -> SubscriptionCheckoutRequest
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 moreAuto Trait Implementations§
impl Freeze for SubscriptionCheckoutRequest
impl RefUnwindSafe for SubscriptionCheckoutRequest
impl Send for SubscriptionCheckoutRequest
impl Sync for SubscriptionCheckoutRequest
impl Unpin for SubscriptionCheckoutRequest
impl UnsafeUnpin for SubscriptionCheckoutRequest
impl UnwindSafe for SubscriptionCheckoutRequest
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