Struct google_api_proto::google::shopping::merchant::promotions::v1beta::promotion_status::ItemLevelIssue
source · pub struct ItemLevelIssue {
pub code: String,
pub severity: i32,
pub resolution: String,
pub attribute: String,
pub reporting_context: i32,
pub description: String,
pub detail: String,
pub documentation: String,
pub applicable_countries: Vec<String>,
}
Expand description
The issue associated with the promotion.
Fields§
§code: String
Output only. The error code of the issue.
severity: i32
Output only. How this issue affects serving of the promotion.
resolution: String
Output only. Whether the issue can be resolved by the merchant.
attribute: String
Output only. The attribute’s name, if the issue is caused by a single attribute.
reporting_context: i32
Output only. The destination the issue applies to.
description: String
Output only. A short issue description in English.
detail: String
Output only. A detailed issue description in English.
documentation: String
Output only. The URL of a web page to help with resolving this issue.
applicable_countries: Vec<String>
Output only. List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
Implementations§
source§impl ItemLevelIssue
impl ItemLevelIssue
sourcepub fn severity(&self) -> Severity
pub fn severity(&self) -> Severity
Returns the enum value of severity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_severity(&mut self, value: Severity)
pub fn set_severity(&mut self, value: Severity)
Sets severity
to the provided enum value.
sourcepub fn reporting_context(&self) -> ReportingContextEnum
pub fn reporting_context(&self) -> ReportingContextEnum
Returns the enum value of reporting_context
, or the default if the field is set to an invalid enum value.
sourcepub fn set_reporting_context(&mut self, value: ReportingContextEnum)
pub fn set_reporting_context(&mut self, value: ReportingContextEnum)
Sets reporting_context
to the provided enum value.
Trait Implementations§
source§impl Clone for ItemLevelIssue
impl Clone for ItemLevelIssue
source§fn clone(&self) -> ItemLevelIssue
fn clone(&self) -> ItemLevelIssue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ItemLevelIssue
impl Debug for ItemLevelIssue
source§impl Default for ItemLevelIssue
impl Default for ItemLevelIssue
source§impl Message for ItemLevelIssue
impl Message for ItemLevelIssue
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 ItemLevelIssue
impl PartialEq for ItemLevelIssue
source§fn eq(&self, other: &ItemLevelIssue) -> bool
fn eq(&self, other: &ItemLevelIssue) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ItemLevelIssue
Auto Trait Implementations§
impl Freeze for ItemLevelIssue
impl RefUnwindSafe for ItemLevelIssue
impl Send for ItemLevelIssue
impl Sync for ItemLevelIssue
impl Unpin for ItemLevelIssue
impl UnwindSafe for ItemLevelIssue
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