pub struct CreateCheckoutSessionShippingOptions {
pub shipping_rate: Option<String>,
pub shipping_rate_data: Option<CreateCheckoutSessionShippingOptionsShippingRateData>,
}
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.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionShippingOptions
impl Clone for CreateCheckoutSessionShippingOptions
source§fn clone(&self) -> CreateCheckoutSessionShippingOptions
fn clone(&self) -> CreateCheckoutSessionShippingOptions
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 CreateCheckoutSessionShippingOptions
impl Default for CreateCheckoutSessionShippingOptions
source§fn default() -> CreateCheckoutSessionShippingOptions
fn default() -> CreateCheckoutSessionShippingOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionShippingOptions
impl<'de> Deserialize<'de> for CreateCheckoutSessionShippingOptions
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 Freeze for CreateCheckoutSessionShippingOptions
impl RefUnwindSafe for CreateCheckoutSessionShippingOptions
impl Send for CreateCheckoutSessionShippingOptions
impl Sync for CreateCheckoutSessionShippingOptions
impl Unpin 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