Struct google_api_proto::google::ads::googleads::v15::resources::CustomAudience
source · pub struct CustomAudience {
pub resource_name: String,
pub id: i64,
pub status: i32,
pub name: String,
pub type: i32,
pub description: String,
pub members: Vec<CustomAudienceMember>,
}
Expand description
A custom audience. This is a list of users by interest.
Fields§
§resource_name: String
Immutable. The resource name of the custom audience. Custom audience resource names have the form:
customers/{customer_id}/customAudiences/{custom_audience_id}
id: i64
Output only. ID of the custom audience.
status: i32
Output only. Status of this custom audience. Indicates whether the custom audience is enabled or removed.
name: String
Name of the custom audience. It should be unique for all custom audiences created by a customer. This field is required for creating operations.
type: i32
Type of the custom audience. (“INTEREST” OR “PURCHASE_INTENT” is not allowed for newly created custom audience but kept for existing audiences)
description: String
Description of this custom audience.
members: Vec<CustomAudienceMember>
List of custom audience members that this custom audience is composed of. Members can be added during CustomAudience creation. If members are presented in UPDATE operation, existing members will be overridden.
Implementations§
source§impl CustomAudience
impl CustomAudience
sourcepub fn status(&self) -> CustomAudienceStatus
pub fn status(&self) -> CustomAudienceStatus
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: CustomAudienceStatus)
pub fn set_status(&mut self, value: CustomAudienceStatus)
Sets status
to the provided enum value.
sourcepub fn type(&self) -> CustomAudienceType
pub fn type(&self) -> CustomAudienceType
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: CustomAudienceType)
pub fn set_type(&mut self, value: CustomAudienceType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for CustomAudience
impl Clone for CustomAudience
source§fn clone(&self) -> CustomAudience
fn clone(&self) -> CustomAudience
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomAudience
impl Debug for CustomAudience
source§impl Default for CustomAudience
impl Default for CustomAudience
source§impl Message for CustomAudience
impl Message for CustomAudience
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 CustomAudience
impl PartialEq for CustomAudience
source§fn eq(&self, other: &CustomAudience) -> bool
fn eq(&self, other: &CustomAudience) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomAudience
Auto Trait Implementations§
impl Freeze for CustomAudience
impl RefUnwindSafe for CustomAudience
impl Send for CustomAudience
impl Sync for CustomAudience
impl Unpin for CustomAudience
impl UnwindSafe for CustomAudience
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