pub struct CheckoutRequest {
pub customer_ref: Option<String>,
pub customer_email: Option<String>,
pub line: LineItem,
pub success_url: String,
pub cancel_url: String,
pub metadata: BTreeMap<String, String>,
pub idempotency_key: String,
}Expand description
A one-time hosted checkout (Stripe Checkout in payment mode).
Fields§
§customer_ref: Option<String>A known Stripe customer id, if the venture has one for this buyer.
customer_email: Option<String>The buyer’s email, so Stripe can create/attach a customer.
line: LineItem§success_url: String§cancel_url: String§metadata: BTreeMap<String, String>Copied onto the resulting objects, echoed back on the webhook.
idempotency_key: StringMakes the create idempotent under retries; the caller owns its shape.
Trait Implementations§
Source§impl Clone for CheckoutRequest
impl Clone for CheckoutRequest
Source§fn clone(&self) -> CheckoutRequest
fn clone(&self) -> CheckoutRequest
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 CheckoutRequest
impl RefUnwindSafe for CheckoutRequest
impl Send for CheckoutRequest
impl Sync for CheckoutRequest
impl Unpin for CheckoutRequest
impl UnsafeUnpin for CheckoutRequest
impl UnwindSafe for CheckoutRequest
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