pub struct BrandInfo {
pub display_name: Option<String>,
pub entity_id: Option<String>,
pub primary_url: Option<String>,
pub rejection_reason: Option<i32>,
pub status: Option<i32>,
}
Expand description
Represents a Brand Criterion used for targeting based on commercial knowledge graph.
Fields§
§display_name: Option<String>
Output only. A text representation of a brand.
entity_id: Option<String>
The Commercial KG MID for the brand.
primary_url: Option<String>
Output only. The primary url of a brand.
rejection_reason: Option<i32>
Output only. The rejection reason when a brand status is REJECTED.
status: Option<i32>
Output only. The status of a brand.
Implementations§
source§impl BrandInfo
impl BrandInfo
sourcepub fn entity_id(&self) -> &str
pub fn entity_id(&self) -> &str
Returns the value of entity_id
, or the default value if entity_id
is unset.
sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Returns the value of display_name
, or the default value if display_name
is unset.
sourcepub fn primary_url(&self) -> &str
pub fn primary_url(&self) -> &str
Returns the value of primary_url
, or the default value if primary_url
is unset.
sourcepub fn rejection_reason(&self) -> BrandRequestRejectionReason
pub fn rejection_reason(&self) -> BrandRequestRejectionReason
Returns the enum value of rejection_reason
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_rejection_reason(&mut self, value: BrandRequestRejectionReason)
pub fn set_rejection_reason(&mut self, value: BrandRequestRejectionReason)
Sets rejection_reason
to the provided enum value.
sourcepub fn status(&self) -> BrandState
pub fn status(&self) -> BrandState
Returns the enum value of status
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_status(&mut self, value: BrandState)
pub fn set_status(&mut self, value: BrandState)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Message for BrandInfo
impl Message for BrandInfo
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 BrandInfo
impl PartialEq for BrandInfo
impl StructuralPartialEq for BrandInfo
Auto Trait Implementations§
impl Freeze for BrandInfo
impl RefUnwindSafe for BrandInfo
impl Send for BrandInfo
impl Sync for BrandInfo
impl Unpin for BrandInfo
impl UnwindSafe for BrandInfo
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