Struct google_api_proto::google::cloud::retail::v2::FulfillmentInfo
source · pub struct FulfillmentInfo {
pub type: String,
pub place_ids: Vec<String>,
}
Expand description
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.
Fields§
§type: String
The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI.
Supported values:
- “pickup-in-store”
- “ship-to-store”
- “same-day-delivery”
- “next-day-delivery”
- “custom-type-1”
- “custom-type-2”
- “custom-type-3”
- “custom-type-4”
- “custom-type-5”
If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
place_ids: Vec<String>
The IDs for this [type][google.cloud.retail.v2.FulfillmentInfo.type], such as the store IDs for [FulfillmentInfo.type.pickup-in-store][google.cloud.retail.v2.FulfillmentInfo.type] or the region IDs for [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2.FulfillmentInfo.type].
A maximum of 3000 values are allowed. Each value must be a string with a
length limit of 30 characters, matching the pattern \[a-zA-Z0-9_-\]+
, such
as “store1” or “REGION-2”. Otherwise, an INVALID_ARGUMENT error is
returned.
Trait Implementations§
source§impl Clone for FulfillmentInfo
impl Clone for FulfillmentInfo
source§fn clone(&self) -> FulfillmentInfo
fn clone(&self) -> FulfillmentInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FulfillmentInfo
impl Debug for FulfillmentInfo
source§impl Default for FulfillmentInfo
impl Default for FulfillmentInfo
source§impl Message for FulfillmentInfo
impl Message for FulfillmentInfo
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 FulfillmentInfo
impl PartialEq for FulfillmentInfo
source§fn eq(&self, other: &FulfillmentInfo) -> bool
fn eq(&self, other: &FulfillmentInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FulfillmentInfo
Auto Trait Implementations§
impl Freeze for FulfillmentInfo
impl RefUnwindSafe for FulfillmentInfo
impl Send for FulfillmentInfo
impl Sync for FulfillmentInfo
impl Unpin for FulfillmentInfo
impl UnwindSafe for FulfillmentInfo
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