Struct google_api_proto::google::analytics::data::v1beta::MetricMetadata
source · 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,
pub blocked_reasons: Vec<i32>,
pub category: String,
}
Expand description
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.
blocked_reasons: Vec<i32>
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: String
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
Implementations§
source§impl MetricMetadata
impl MetricMetadata
sourcepub fn type(&self) -> MetricType
pub fn type(&self) -> MetricType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: MetricType)
pub fn set_type(&mut self, value: MetricType)
Sets type
to the provided enum value.
sourcepub fn blocked_reasons(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<BlockedReason>>
pub fn blocked_reasons( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<BlockedReason>>
Returns an iterator which yields the valid enum values contained in blocked_reasons
.
sourcepub fn push_blocked_reasons(&mut self, value: BlockedReason)
pub fn push_blocked_reasons(&mut self, value: BlockedReason)
Appends the provided enum value to blocked_reasons
.
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§impl Message for MetricMetadata
impl Message for MetricMetadata
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 MetricMetadata
impl PartialEq for MetricMetadata
source§fn eq(&self, other: &MetricMetadata) -> bool
fn eq(&self, other: &MetricMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§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