Struct google_api_proto::google::analytics::admin::v1beta::CustomDimension
source · pub struct CustomDimension {
pub name: String,
pub parameter_name: String,
pub display_name: String,
pub description: String,
pub scope: i32,
pub disallow_ads_personalization: bool,
}
Expand description
A definition for a CustomDimension.
Fields§
§name: String
Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}
parameter_name: String
Required. Immutable. Tagging parameter name for this custom dimension.
If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name.
If this is an item-scoped dimension, then this is the parameter name found in the eCommerce items array.
May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.
display_name: String
Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
description: String
Optional. Description for this custom dimension. Max length of 150 characters.
scope: i32
Required. Immutable. The scope of this dimension.
disallow_ads_personalization: bool
Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization.
This is currently only supported by user-scoped custom dimensions.
Implementations§
source§impl CustomDimension
impl CustomDimension
sourcepub fn scope(&self) -> DimensionScope
pub fn scope(&self) -> DimensionScope
Returns the enum value of scope
, or the default if the field is set to an invalid enum value.
sourcepub fn set_scope(&mut self, value: DimensionScope)
pub fn set_scope(&mut self, value: DimensionScope)
Sets scope
to the provided enum value.
Trait Implementations§
source§impl Clone for CustomDimension
impl Clone for CustomDimension
source§fn clone(&self) -> CustomDimension
fn clone(&self) -> CustomDimension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomDimension
impl Debug for CustomDimension
source§impl Default for CustomDimension
impl Default for CustomDimension
source§impl Message for CustomDimension
impl Message for CustomDimension
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 CustomDimension
impl PartialEq for CustomDimension
source§fn eq(&self, other: &CustomDimension) -> bool
fn eq(&self, other: &CustomDimension) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomDimension
Auto Trait Implementations§
impl Freeze for CustomDimension
impl RefUnwindSafe for CustomDimension
impl Send for CustomDimension
impl Sync for CustomDimension
impl Unpin for CustomDimension
impl UnwindSafe for CustomDimension
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