Struct google_api_proto::google::ads::googleads::v16::resources::UserInterest
source · pub struct UserInterest {
pub resource_name: String,
pub taxonomy_type: i32,
pub user_interest_id: Option<i64>,
pub name: Option<String>,
pub user_interest_parent: Option<String>,
pub launched_to_all: Option<bool>,
pub availabilities: Vec<CriterionCategoryAvailability>,
}
Expand description
A user interest: a particular interest-based vertical to be targeted.
Fields§
§resource_name: String
Output only. The resource name of the user interest. User interest resource names have the form:
customers/{customer_id}/userInterests/{user_interest_id}
taxonomy_type: i32
Output only. Taxonomy type of the user interest.
user_interest_id: Option<i64>
Output only. The ID of the user interest.
name: Option<String>
Output only. The name of the user interest.
user_interest_parent: Option<String>
Output only. The parent of the user interest.
launched_to_all: Option<bool>
Output only. True if the user interest is launched to all channels and locales.
availabilities: Vec<CriterionCategoryAvailability>
Output only. Availability information of the user interest.
Implementations§
source§impl UserInterest
impl UserInterest
sourcepub fn taxonomy_type(&self) -> UserInterestTaxonomyType
pub fn taxonomy_type(&self) -> UserInterestTaxonomyType
Returns the enum value of taxonomy_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_taxonomy_type(&mut self, value: UserInterestTaxonomyType)
pub fn set_taxonomy_type(&mut self, value: UserInterestTaxonomyType)
Sets taxonomy_type
to the provided enum value.
sourcepub fn user_interest_id(&self) -> i64
pub fn user_interest_id(&self) -> i64
Returns the value of user_interest_id
, or the default value if user_interest_id
is unset.
sourcepub fn user_interest_parent(&self) -> &str
pub fn user_interest_parent(&self) -> &str
Returns the value of user_interest_parent
, or the default value if user_interest_parent
is unset.
sourcepub fn launched_to_all(&self) -> bool
pub fn launched_to_all(&self) -> bool
Returns the value of launched_to_all
, or the default value if launched_to_all
is unset.
Trait Implementations§
source§impl Clone for UserInterest
impl Clone for UserInterest
source§fn clone(&self) -> UserInterest
fn clone(&self) -> UserInterest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserInterest
impl Debug for UserInterest
source§impl Default for UserInterest
impl Default for UserInterest
source§impl Message for UserInterest
impl Message for UserInterest
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 UserInterest
impl PartialEq for UserInterest
source§fn eq(&self, other: &UserInterest) -> bool
fn eq(&self, other: &UserInterest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserInterest
Auto Trait Implementations§
impl Freeze for UserInterest
impl RefUnwindSafe for UserInterest
impl Send for UserInterest
impl Sync for UserInterest
impl Unpin for UserInterest
impl UnwindSafe for UserInterest
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