Struct stripe::generated::core::shipping_rate::UpdateShippingRate
source · pub struct UpdateShippingRate<'a> {
pub active: Option<bool>,
pub expand: &'a [&'a str],
pub fixed_amount: Option<UpdateShippingRateFixedAmount>,
pub metadata: Option<Metadata>,
pub tax_behavior: Option<ShippingRateTaxBehavior>,
}Expand description
The parameters for ShippingRate::update.
Fields§
§active: Option<bool>Whether the shipping rate can be used for new purchases.
Defaults to true.
expand: &'a [&'a str]Specifies which fields in the response should be expanded.
fixed_amount: Option<UpdateShippingRateFixedAmount>Describes a fixed amount to charge for shipping.
Must be present if type is fixed_amount.
metadata: Option<Metadata>Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata.
tax_behavior: Option<ShippingRateTaxBehavior>Specifies whether the rate is considered inclusive of taxes or exclusive of taxes.
One of inclusive, exclusive, or unspecified.
Implementations§
source§impl<'a> UpdateShippingRate<'a>
impl<'a> UpdateShippingRate<'a>
Trait Implementations§
source§impl<'a> Clone for UpdateShippingRate<'a>
impl<'a> Clone for UpdateShippingRate<'a>
source§fn clone(&self) -> UpdateShippingRate<'a>
fn clone(&self) -> UpdateShippingRate<'a>
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<'a> Debug for UpdateShippingRate<'a>
impl<'a> Debug for UpdateShippingRate<'a>
source§impl<'a> Default for UpdateShippingRate<'a>
impl<'a> Default for UpdateShippingRate<'a>
source§fn default() -> UpdateShippingRate<'a>
fn default() -> UpdateShippingRate<'a>
Returns the “default value” for a type. Read more