pub struct MetricMetadata {
pub api_name: Option<String>,
pub blocked_reasons: Option<Vec<String>>,
pub category: Option<String>,
pub custom_definition: Option<bool>,
pub deprecated_api_names: Option<Vec<String>>,
pub description: Option<String>,
pub expression: Option<String>,
pub type_: Option<String>,
pub ui_name: Option<String>,
}
Expand description
Explains a metric.
This type is not used in any activity, and only used as part of another schema.
Fields§
§api_name: Option<String>
A metric name. Useable in Metric’s name
. For example, eventCount
.
blocked_reasons: Option<Vec<String>>
If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see Access and data-restriction management.
category: Option<String>
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
custom_definition: Option<bool>
True if the metric is a custom metric for this property.
deprecated_api_names: Option<Vec<String>>
Still usable but deprecated names for this metric. If populated, this metric is available by either apiName
or one of deprecatedApiNames
for a period of time. After the deprecation period, the metric will be available only by apiName
.
description: Option<String>
Description of how this metric is used and calculated.
expression: Option<String>
The mathematical expression for this derived metric. Can be used in Metric’s expression
field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty.
type_: Option<String>
The type of this metric.
ui_name: Option<String>
This metric’s name within the Google Analytics user interface. For example, Event count
.
Trait Implementations§
Source§impl Clone for MetricMetadata
impl Clone for MetricMetadata
Source§fn clone(&self) -> MetricMetadata
fn clone(&self) -> MetricMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MetricMetadata
impl Debug for MetricMetadata
Source§impl Default for MetricMetadata
impl Default for MetricMetadata
Source§fn default() -> MetricMetadata
fn default() -> MetricMetadata
Source§impl<'de> Deserialize<'de> for MetricMetadata
impl<'de> Deserialize<'de> for MetricMetadata
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 MetricMetadata
impl Serialize for MetricMetadata
impl Part for MetricMetadata
Auto Trait Implementations§
impl Freeze for MetricMetadata
impl RefUnwindSafe for MetricMetadata
impl Send for MetricMetadata
impl Sync for MetricMetadata
impl Unpin for MetricMetadata
impl UnwindSafe for MetricMetadata
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