Struct google_api_proto::google::shopping::merchant::datasources::v1beta::SupplementalProductDataSource
source · pub struct SupplementalProductDataSource {
pub feed_label: Option<String>,
pub content_language: Option<String>,
}
Expand description
The supplemental data source for local and online products.
Fields§
§feed_label: Option<String>
Optional. Immutable. The feed label that is specified on the data source level.
Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).
See also migration to feed labels.
feedLabel
and contentLanguage
must be either both set or unset for data
sources with product content type.
They must be set for data sources with a file input.
If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.
content_language: Option<String>
Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.
feedLabel
and contentLanguage
must be either both set or unset.
The fields can only be unset for data sources without file input.
If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.
Implementations§
source§impl SupplementalProductDataSource
impl SupplementalProductDataSource
sourcepub fn feed_label(&self) -> &str
pub fn feed_label(&self) -> &str
Returns the value of feed_label
, or the default value if feed_label
is unset.
sourcepub fn content_language(&self) -> &str
pub fn content_language(&self) -> &str
Returns the value of content_language
, or the default value if content_language
is unset.
Trait Implementations§
source§impl Clone for SupplementalProductDataSource
impl Clone for SupplementalProductDataSource
source§fn clone(&self) -> SupplementalProductDataSource
fn clone(&self) -> SupplementalProductDataSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SupplementalProductDataSource
impl Message for SupplementalProductDataSource
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 SupplementalProductDataSource
impl PartialEq for SupplementalProductDataSource
source§fn eq(&self, other: &SupplementalProductDataSource) -> bool
fn eq(&self, other: &SupplementalProductDataSource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SupplementalProductDataSource
Auto Trait Implementations§
impl Freeze for SupplementalProductDataSource
impl RefUnwindSafe for SupplementalProductDataSource
impl Send for SupplementalProductDataSource
impl Sync for SupplementalProductDataSource
impl Unpin for SupplementalProductDataSource
impl UnwindSafe for SupplementalProductDataSource
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