Struct google_api_proto::google::shopping::merchant::inventories::v1beta::RegionalInventory
source · pub struct RegionalInventory {
pub name: String,
pub account: i64,
pub region: String,
pub price: Option<Price>,
pub sale_price: Option<Price>,
pub sale_price_effective_date: Option<Interval>,
pub availability: Option<String>,
pub custom_attributes: Vec<CustomAttribute>,
}
Expand description
Regional inventory information for the product. Represents specific
information like price and availability for a given product in a specific
[region
][google.shopping.merchant.inventories.v1beta.RegionalInventory.region].
For a list of all accepted attribute values, see the regional product
inventory data
specification.
Fields§
§name: String
Output only. The name of the RegionalInventory
resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
account: i64
Output only. The account that owns the product. This field will be ignored if set by the client.
region: String
Required. Immutable. ID of the region for this
RegionalInventory
resource. See the Regional availability and
pricing for more
details.
price: Option<Price>
Price of the product in this region.
sale_price: Option<Price>
Sale price of the product in this region. Mandatory if
[salePriceEffectiveDate
][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date]
is defined.
sale_price_effective_date: Option<Interval>
The TimePeriod
of the
sale price in this region.
availability: Option<String>
Availability of the product in this region. For accepted attribute values, see the regional product inventory data specification
custom_attributes: Vec<CustomAttribute>
A list of custom (merchant-provided) attributes. You can also use
CustomAttribute
to submit any attribute of the data specification in its
generic form.
Implementations§
source§impl RegionalInventory
impl RegionalInventory
sourcepub fn availability(&self) -> &str
pub fn availability(&self) -> &str
Returns the value of availability
, or the default value if availability
is unset.
Trait Implementations§
source§impl Clone for RegionalInventory
impl Clone for RegionalInventory
source§fn clone(&self) -> RegionalInventory
fn clone(&self) -> RegionalInventory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegionalInventory
impl Debug for RegionalInventory
source§impl Default for RegionalInventory
impl Default for RegionalInventory
source§impl Message for RegionalInventory
impl Message for RegionalInventory
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 RegionalInventory
impl PartialEq for RegionalInventory
source§fn eq(&self, other: &RegionalInventory) -> bool
fn eq(&self, other: &RegionalInventory) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegionalInventory
Auto Trait Implementations§
impl Freeze for RegionalInventory
impl RefUnwindSafe for RegionalInventory
impl Send for RegionalInventory
impl Sync for RegionalInventory
impl Unpin for RegionalInventory
impl UnwindSafe for RegionalInventory
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