pub struct Audience {
pub name: String,
pub display_name: String,
pub description: String,
pub membership_duration_days: i32,
pub ads_personalization_enabled: bool,
pub event_trigger: Option<AudienceEventTrigger>,
pub exclusion_duration_mode: i32,
pub filter_clauses: Vec<AudienceFilterClause>,
pub create_time: Option<Timestamp>,
}
Expand description
A resource message representing a GA4 Audience.
Fields§
§name: String
Output only. The resource name for this Audience resource. Format: properties/{propertyId}/audiences/{audienceId}
display_name: String
Required. The display name of the Audience.
description: String
Required. The description of the Audience.
membership_duration_days: i32
Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more than 540 days.
ads_personalization_enabled: bool
Output only. It is automatically set by GA to false if this is an NPA Audience and is excluded from ads personalization.
event_trigger: Option<AudienceEventTrigger>
Optional. Specifies an event to log when a user joins the Audience. If not set, no event is logged when a user joins the Audience.
exclusion_duration_mode: i32
Immutable. Specifies how long an exclusion lasts for users that meet the exclusion filter. It is applied to all EXCLUDE filter clauses and is ignored when there is no EXCLUDE filter clause in the Audience.
filter_clauses: Vec<AudienceFilterClause>
Required. Immutable. Unordered list. Filter clauses that define the Audience. All clauses will be AND’ed together.
create_time: Option<Timestamp>
Output only. Time when the Audience was created.
Implementations§
source§impl Audience
impl Audience
sourcepub fn exclusion_duration_mode(&self) -> AudienceExclusionDurationMode
pub fn exclusion_duration_mode(&self) -> AudienceExclusionDurationMode
Returns the enum value of exclusion_duration_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_exclusion_duration_mode(
&mut self,
value: AudienceExclusionDurationMode,
)
pub fn set_exclusion_duration_mode( &mut self, value: AudienceExclusionDurationMode, )
Sets exclusion_duration_mode
to the provided enum value.
Trait Implementations§
source§impl Message for Audience
impl Message for Audience
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 Audience
impl PartialEq for Audience
impl StructuralPartialEq for Audience
Auto Trait Implementations§
impl Freeze for Audience
impl RefUnwindSafe for Audience
impl Send for Audience
impl Sync for Audience
impl Unpin for Audience
impl UnwindSafe for Audience
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