Struct google_content2::Service
source · pub struct Service {
pub currency: Option<String>,
pub name: Option<String>,
pub delivery_time: Option<DeliveryTime>,
pub active: Option<bool>,
pub delivery_country: Option<i64>,
pub rate_groups: Option<Vec<RateGroup>>,
pub minimum_order_value: Option<Price>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§currency: Option<String>The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
name: Option<String>Free-form name of the service. Must be unique within target account. Required.
delivery_time: Option<DeliveryTime>Time spent in various aspects from order to the delivery of the product. Required.
active: Option<bool>A boolean exposing the active status of the shipping service. Required.
delivery_country: Option<i64>The CLDR territory code of the country to which the service applies. Required.
rate_groups: Option<Vec<RateGroup>>Shipping rate group definitions. Only the last one is allowed to have an empty applicableShippingLabels, which means “everything else”. The other applicableShippingLabels must not overlap.
minimum_order_value: Option<Price>Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
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>,
impl Part for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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