Struct google_api_proto::google::shopping::merchant::accounts::v1beta::ShippingSettings
source · pub struct ShippingSettings {
pub name: String,
pub services: Vec<Service>,
pub warehouses: Vec<Warehouse>,
pub etag: String,
}
Expand description
The merchant account’s [shipping setting]((https://support.google.com/merchants/answer/6069284).
Fields§
§name: String
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
services: Vec<Service>
Optional. The target account’s list of services.
warehouses: Vec<Warehouse>
Optional. A list of warehouses which can be referred to in services
.
etag: String
Required. This field is used for avoid async issue. Make sure shipping setting data didn’t change between get call and insert call. The user should do following steps:
-
Set etag field as empty string for initial shipping setting creation.
-
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
-
Modify to wanted shipping setting information.
-
Call insert method with the wanted shipping setting information with the etag obtained from step 2.
-
If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
Trait Implementations§
source§impl Clone for ShippingSettings
impl Clone for ShippingSettings
source§fn clone(&self) -> ShippingSettings
fn clone(&self) -> ShippingSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShippingSettings
impl Debug for ShippingSettings
source§impl Default for ShippingSettings
impl Default for ShippingSettings
source§impl Message for ShippingSettings
impl Message for ShippingSettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ShippingSettings
impl PartialEq for ShippingSettings
source§fn eq(&self, other: &ShippingSettings) -> bool
fn eq(&self, other: &ShippingSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ShippingSettings
Auto Trait Implementations§
impl Freeze for ShippingSettings
impl RefUnwindSafe for ShippingSettings
impl Send for ShippingSettings
impl Sync for ShippingSettings
impl Unpin for ShippingSettings
impl UnwindSafe for ShippingSettings
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request