Struct google_content2::RateGroup
source · pub struct RateGroup {
pub applicable_shipping_labels: Option<Vec<String>>,
pub carrier_rates: Option<Vec<CarrierRate>>,
pub single_value: Option<Value>,
pub subtables: Option<Vec<Table>>,
pub main_table: Option<Table>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§applicable_shipping_labels: Option<Vec<String>>A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. Required.
carrier_rates: Option<Vec<CarrierRate>>A list of carrier rates that can be referred to by mainTable or singleValue.
single_value: Option<Value>The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables are not set.
subtables: Option<Vec<Table>>A list of subtables referred to by mainTable. Can only be set if mainTable is set.
main_table: Option<Table>A table defining the rate group, when singleValue is not expressive enough. Can only be set if singleValue is not set.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RateGroup
impl<'de> Deserialize<'de> for RateGroup
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
impl Part for RateGroup
Auto Trait Implementations§
impl Freeze for RateGroup
impl RefUnwindSafe for RateGroup
impl Send for RateGroup
impl Sync for RateGroup
impl Unpin for RateGroup
impl UnwindSafe for RateGroup
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more