pub struct CreateCheckoutSessionShippingOptions {
pub shipping_rate: Option<String>,
pub shipping_rate_data: Option<CreateCheckoutSessionShippingOptionsShippingRateData>,
}Expand description
The shipping rate options to apply to this Session. Up to a maximum of 5.
Fields§
§shipping_rate: Option<String>The ID of the Shipping Rate to use for this shipping option.
shipping_rate_data: Option<CreateCheckoutSessionShippingOptionsShippingRateData>Parameters to be passed to Shipping Rate creation for this shipping option.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionShippingOptions
impl Clone for CreateCheckoutSessionShippingOptions
Source§fn clone(&self) -> CreateCheckoutSessionShippingOptions
fn clone(&self) -> CreateCheckoutSessionShippingOptions
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 CreateCheckoutSessionShippingOptions
impl RefUnwindSafe for CreateCheckoutSessionShippingOptions
impl Send for CreateCheckoutSessionShippingOptions
impl Sync for CreateCheckoutSessionShippingOptions
impl Unpin for CreateCheckoutSessionShippingOptions
impl UnsafeUnpin for CreateCheckoutSessionShippingOptions
impl UnwindSafe for CreateCheckoutSessionShippingOptions
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