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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more