pub struct CreateCheckoutSessionCustomerUpdate {
pub address: Option<CreateCheckoutSessionCustomerUpdateAddress>,
pub name: Option<CreateCheckoutSessionCustomerUpdateName>,
pub shipping: Option<CreateCheckoutSessionCustomerUpdateShipping>,
}Expand description
Controls what fields on Customer can be updated by the Checkout Session.
Can only be provided when customer is provided.
Fields§
§address: Option<CreateCheckoutSessionCustomerUpdateAddress>Describes whether Checkout saves the billing address onto customer.address.
To always collect a full billing address, use billing_address_collection. Defaults to never.
name: Option<CreateCheckoutSessionCustomerUpdateName>Describes whether Checkout saves the name onto customer.name. Defaults to never.
shipping: Option<CreateCheckoutSessionCustomerUpdateShipping>Describes whether Checkout saves shipping information onto customer.shipping.
To collect shipping information, use shipping_address_collection. Defaults to never.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionCustomerUpdate
impl Clone for CreateCheckoutSessionCustomerUpdate
Source§fn clone(&self) -> CreateCheckoutSessionCustomerUpdate
fn clone(&self) -> CreateCheckoutSessionCustomerUpdate
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 moreimpl Eq for CreateCheckoutSessionCustomerUpdate
impl StructuralPartialEq for CreateCheckoutSessionCustomerUpdate
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionCustomerUpdate
impl RefUnwindSafe for CreateCheckoutSessionCustomerUpdate
impl Send for CreateCheckoutSessionCustomerUpdate
impl Sync for CreateCheckoutSessionCustomerUpdate
impl Unpin for CreateCheckoutSessionCustomerUpdate
impl UnsafeUnpin for CreateCheckoutSessionCustomerUpdate
impl UnwindSafe for CreateCheckoutSessionCustomerUpdate
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