Struct google_api_proto::google::shopping::merchant::accounts::v1beta::BusinessIdentity
source · pub struct BusinessIdentity {
pub name: String,
pub promotions_consent: i32,
pub black_owned: Option<IdentityAttribute>,
pub women_owned: Option<IdentityAttribute>,
pub veteran_owned: Option<IdentityAttribute>,
pub latino_owned: Option<IdentityAttribute>,
pub small_business: Option<IdentityAttribute>,
}
Expand description
Collection of information related to the identity of a business.
Fields§
§name: String
Identifier. The resource name of the business identity.
Format: accounts/{account}/businessIdentity
promotions_consent: i32
Optional. Whether the identity attributes may be used for promotions.
black_owned: Option<IdentityAttribute>
Optional. Specifies whether the business identifies itself as being
black-owned. This optional field will only be available for merchants with
a business country set to US
. It is also not applicable for marketplaces
or marketplace sellers.
women_owned: Option<IdentityAttribute>
Optional. Specifies whether the business identifies itself as being
women-owned. This optional field will only be available for merchants with
a business country set to US
. It is also not applicable for marketplaces
or marketplace sellers.
veteran_owned: Option<IdentityAttribute>
Optional. Specifies whether the business identifies itself as being
veteran-owned. This optional field will only be available for merchants
with a business country set to US
. It is also not applicable for
marketplaces or marketplace sellers.
latino_owned: Option<IdentityAttribute>
Optional. Specifies whether the business identifies itself as being
latino-owned. This optional field will only be available for merchants with
a business country set to US
. It is also not applicable for marketplaces
or marketplace sellers.
small_business: Option<IdentityAttribute>
Optional. Specifies whether the business identifies itself as a small
business. This optional field will only be available for merchants with a
business country set to US
. It is also not applicable for marketplaces.
Implementations§
source§impl BusinessIdentity
impl BusinessIdentity
sourcepub fn promotions_consent(&self) -> PromotionsConsent
pub fn promotions_consent(&self) -> PromotionsConsent
Returns the enum value of promotions_consent
, or the default if the field is set to an invalid enum value.
sourcepub fn set_promotions_consent(&mut self, value: PromotionsConsent)
pub fn set_promotions_consent(&mut self, value: PromotionsConsent)
Sets promotions_consent
to the provided enum value.
Trait Implementations§
source§impl Clone for BusinessIdentity
impl Clone for BusinessIdentity
source§fn clone(&self) -> BusinessIdentity
fn clone(&self) -> BusinessIdentity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BusinessIdentity
impl Debug for BusinessIdentity
source§impl Default for BusinessIdentity
impl Default for BusinessIdentity
source§impl Message for BusinessIdentity
impl Message for BusinessIdentity
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 BusinessIdentity
impl PartialEq for BusinessIdentity
source§fn eq(&self, other: &BusinessIdentity) -> bool
fn eq(&self, other: &BusinessIdentity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BusinessIdentity
Auto Trait Implementations§
impl Freeze for BusinessIdentity
impl RefUnwindSafe for BusinessIdentity
impl Send for BusinessIdentity
impl Sync for BusinessIdentity
impl Unpin for BusinessIdentity
impl UnwindSafe for BusinessIdentity
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