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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CustomAudience
impl PartialEq for CustomAudience
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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