Struct gapi_grpc::google::monitoring::v3::time_series_descriptor::ValueDescriptor[][src]

pub struct ValueDescriptor {
    pub key: String,
    pub value_type: i32,
    pub metric_kind: i32,
    pub unit: String,
}

A descriptor for the value columns in a data point.

Fields

key: String

The value key.

value_type: i32

The value type.

metric_kind: i32

The value stream kind.

unit: String

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.

Implementations

impl ValueDescriptor[src]

pub fn value_type(&self) -> ValueType[src]

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

pub fn set_value_type(&mut self, value: ValueType)[src]

Sets value_type to the provided enum value.

pub fn metric_kind(&self) -> MetricKind[src]

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

pub fn set_metric_kind(&mut self, value: MetricKind)[src]

Sets metric_kind to the provided enum value.

Trait Implementations

impl Clone for ValueDescriptor[src]

impl Debug for ValueDescriptor[src]

impl Default for ValueDescriptor[src]

impl Message for ValueDescriptor[src]

impl PartialEq<ValueDescriptor> for ValueDescriptor[src]

impl StructuralPartialEq for ValueDescriptor[src]

Auto Trait Implementations

impl RefUnwindSafe for ValueDescriptor

impl Send for ValueDescriptor

impl Sync for ValueDescriptor

impl Unpin for ValueDescriptor

impl UnwindSafe for ValueDescriptor

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]