Enum google_api_proto::google::analytics::data::v1beta::MetricType
source · #[repr(i32)]pub enum MetricType {
Show 13 variants
Unspecified = 0,
TypeInteger = 1,
TypeFloat = 2,
TypeSeconds = 4,
TypeMilliseconds = 5,
TypeMinutes = 6,
TypeHours = 7,
TypeStandard = 8,
TypeCurrency = 9,
TypeFeet = 10,
TypeMiles = 11,
TypeMeters = 12,
TypeKilometers = 13,
}
Expand description
A metric’s value type.
Variants§
Unspecified = 0
Unspecified type.
TypeInteger = 1
Integer type.
TypeFloat = 2
Floating point type.
TypeSeconds = 4
A duration of seconds; a special floating point type.
TypeMilliseconds = 5
A duration in milliseconds; a special floating point type.
TypeMinutes = 6
A duration in minutes; a special floating point type.
TypeHours = 7
A duration in hours; a special floating point type.
TypeStandard = 8
A custom metric of standard type; a special floating point type.
TypeCurrency = 9
An amount of money; a special floating point type.
TypeFeet = 10
A length in feet; a special floating point type.
TypeMiles = 11
A length in miles; a special floating point type.
TypeMeters = 12
A length in meters; a special floating point type.
TypeKilometers = 13
A length in kilometers; a special floating point type.
Implementations§
source§impl MetricType
impl MetricType
source§impl MetricType
impl MetricType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for MetricType
impl Clone for MetricType
source§fn clone(&self) -> MetricType
fn clone(&self) -> MetricType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricType
impl Debug for MetricType
source§impl Default for MetricType
impl Default for MetricType
source§fn default() -> MetricType
fn default() -> MetricType
source§impl From<MetricType> for i32
impl From<MetricType> for i32
source§fn from(value: MetricType) -> i32
fn from(value: MetricType) -> i32
source§impl Hash for MetricType
impl Hash for MetricType
source§impl Ord for MetricType
impl Ord for MetricType
source§fn cmp(&self, other: &MetricType) -> Ordering
fn cmp(&self, other: &MetricType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for MetricType
impl PartialEq for MetricType
source§fn eq(&self, other: &MetricType) -> bool
fn eq(&self, other: &MetricType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MetricType
impl PartialOrd for MetricType
source§fn partial_cmp(&self, other: &MetricType) -> Option<Ordering>
fn partial_cmp(&self, other: &MetricType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MetricType
impl TryFrom<i32> for MetricType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<MetricType, DecodeError>
fn try_from(value: i32) -> Result<MetricType, DecodeError>
impl Copy for MetricType
impl Eq for MetricType
impl StructuralPartialEq for MetricType
Auto Trait Implementations§
impl Freeze for MetricType
impl RefUnwindSafe for MetricType
impl Send for MetricType
impl Sync for MetricType
impl Unpin for MetricType
impl UnwindSafe for MetricType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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