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>>,
}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.
Trait Implementations§
source§impl Deserialize for Service
impl Deserialize for Service
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,
Deserialize this value from the given Serde deserializer. Read more
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
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