pub struct DimensionMetadata {
pub api_name: Option<String>,
pub category: Option<String>,
pub custom_definition: Option<bool>,
pub deprecated_api_names: Option<Vec<String>>,
pub description: Option<String>,
pub ui_name: Option<String>,
}
Expand description
Explains a dimension.
This type is not used in any activity, and only used as part of another schema.
Fields§
§api_name: Option<String>
This dimension’s name. Useable in Dimension’s name
. For example, eventName
.
category: Option<String>
The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
custom_definition: Option<bool>
True if the dimension is custom to this property. This includes user, event, & item scoped custom dimensions; to learn more about custom dimensions, see https://support.google.com/analytics/answer/14240153. This also include custom channel groups; to learn more about custom channel groups, see https://support.google.com/analytics/answer/13051316.
deprecated_api_names: Option<Vec<String>>
Still usable but deprecated names for this dimension. If populated, this dimension is available by either apiName
or one of deprecatedApiNames
for a period of time. After the deprecation period, the dimension will be available only by apiName
.
description: Option<String>
Description of how this dimension is used and calculated.
ui_name: Option<String>
This dimension’s name within the Google Analytics user interface. For example, Event name
.
Trait Implementations§
Source§impl Clone for DimensionMetadata
impl Clone for DimensionMetadata
Source§fn clone(&self) -> DimensionMetadata
fn clone(&self) -> DimensionMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DimensionMetadata
impl Debug for DimensionMetadata
Source§impl Default for DimensionMetadata
impl Default for DimensionMetadata
Source§fn default() -> DimensionMetadata
fn default() -> DimensionMetadata
Source§impl<'de> Deserialize<'de> for DimensionMetadata
impl<'de> Deserialize<'de> for DimensionMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for DimensionMetadata
impl Serialize for DimensionMetadata
impl Part for DimensionMetadata
Auto Trait Implementations§
impl Freeze for DimensionMetadata
impl RefUnwindSafe for DimensionMetadata
impl Send for DimensionMetadata
impl Sync for DimensionMetadata
impl Unpin for DimensionMetadata
impl UnwindSafe for DimensionMetadata
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more