Struct google_api_proto::google::ads::googleads::v17::resources::CustomInterest
source · pub struct CustomInterest {
pub resource_name: String,
pub id: Option<i64>,
pub status: i32,
pub name: Option<String>,
pub type: i32,
pub description: Option<String>,
pub members: Vec<CustomInterestMember>,
}
Expand description
A custom interest. This is a list of users by interest.
Fields§
§resource_name: String
Immutable. The resource name of the custom interest. Custom interest resource names have the form:
customers/{customer_id}/customInterests/{custom_interest_id}
id: Option<i64>
Output only. Id of the custom interest.
status: i32
Status of this custom interest. Indicates whether the custom interest is enabled or removed.
name: Option<String>
Name of the custom interest. It should be unique across the same custom affinity audience. This field is required for create operations.
type: i32
Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. By default the type is set to CUSTOM_AFFINITY.
description: Option<String>
Description of this custom interest audience.
members: Vec<CustomInterestMember>
List of custom interest members that this custom interest is composed of. Members can be added during CustomInterest creation. If members are presented in UPDATE operation, existing members will be overridden.
Implementations§
source§impl CustomInterest
impl CustomInterest
sourcepub fn status(&self) -> CustomInterestStatus
pub fn status(&self) -> CustomInterestStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: CustomInterestStatus)
pub fn set_status(&mut self, value: CustomInterestStatus)
Sets status
to the provided enum value.
sourcepub fn type(&self) -> CustomInterestType
pub fn type(&self) -> CustomInterestType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: CustomInterestType)
pub fn set_type(&mut self, value: CustomInterestType)
Sets type
to the provided enum value.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for CustomInterest
impl Clone for CustomInterest
source§fn clone(&self) -> CustomInterest
fn clone(&self) -> CustomInterest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomInterest
impl Debug for CustomInterest
source§impl Default for CustomInterest
impl Default for CustomInterest
source§impl Message for CustomInterest
impl Message for CustomInterest
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 CustomInterest
impl PartialEq for CustomInterest
source§fn eq(&self, other: &CustomInterest) -> bool
fn eq(&self, other: &CustomInterest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomInterest
Auto Trait Implementations§
impl Freeze for CustomInterest
impl RefUnwindSafe for CustomInterest
impl Send for CustomInterest
impl Sync for CustomInterest
impl Unpin for CustomInterest
impl UnwindSafe for CustomInterest
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