Struct google_content2::CarrierRate
source · pub struct CarrierRate {
pub origin_postal_code: Option<String>,
pub flat_adjustment: Option<Price>,
pub name: Option<String>,
pub carrier_name: Option<String>,
pub carrier_service: Option<String>,
pub percentage_adjustment: Option<String>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§origin_postal_code: Option<String>Shipping origin for this carrier rate. Required.
flat_adjustment: Option<Price>Additive shipping rate modifier. Can be negative. For example { “value”: “1”, “currency” : “USD” } adds $1 to the rate, { “value”: “-3”, “currency” : “USD” } removes $3 from the rate. Optional.
name: Option<String>Name of the carrier rate. Must be unique per rate group. Required.
carrier_name: Option<String>Carrier service, such as “UPS” or “Fedex”. The list of supported carriers can be retrieved via the getSupportedCarriers method. Required.
carrier_service: Option<String>Carrier service, such as “ground” or “2 days”. The list of supported services for a carrier can be retrieved via the getSupportedCarriers method. Required.
percentage_adjustment: Option<String>Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example “5.4” increases the rate by 5.4%, “-3” decreases the rate by 3%. Optional.
Trait Implementations§
source§impl Clone for CarrierRate
impl Clone for CarrierRate
source§fn clone(&self) -> CarrierRate
fn clone(&self) -> CarrierRate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CarrierRate
impl Debug for CarrierRate
source§impl Default for CarrierRate
impl Default for CarrierRate
source§fn default() -> CarrierRate
fn default() -> CarrierRate
source§impl Deserialize for CarrierRate
impl Deserialize for CarrierRate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
source§impl Serialize for CarrierRate
impl Serialize for CarrierRate
impl Part for CarrierRate
Auto Trait Implementations§
impl Freeze for CarrierRate
impl RefUnwindSafe for CarrierRate
impl Send for CarrierRate
impl Sync for CarrierRate
impl Unpin for CarrierRate
impl UnwindSafe for CarrierRate
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
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)
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>
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>
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