Struct gapi_grpc::google::analytics::data::v1beta::MetricMetadata[][src]

pub struct MetricMetadata {
    pub api_name: String,
    pub ui_name: String,
    pub description: String,
    pub deprecated_api_names: Vec<String>,
    pub type: i32,
    pub expression: String,
    pub custom_definition: bool,
}

Explains a metric.

Fields

api_name: String

A metric name. Useable in Metric’s name. For example, eventCount.

ui_name: String

This metric’s name within the Google Analytics user interface. For example, Event count.

description: String

Description of how this metric is used and calculated.

deprecated_api_names: 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.

type: i32

The type of this metric.

expression: 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.

custom_definition: bool

True if the metric is a custom metric for this property.

Implementations

impl MetricMetadata[src]

pub fn type(&self) -> MetricType[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: MetricType)[src]

Sets type to the provided enum value.

Trait Implementations

impl Clone for MetricMetadata[src]

impl Debug for MetricMetadata[src]

impl Default for MetricMetadata[src]

impl Message for MetricMetadata[src]

impl PartialEq<MetricMetadata> for MetricMetadata[src]

impl StructuralPartialEq for MetricMetadata[src]

Auto Trait Implementations

impl RefUnwindSafe for MetricMetadata

impl Send for MetricMetadata

impl Sync for MetricMetadata

impl Unpin for MetricMetadata

impl UnwindSafe for MetricMetadata

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]