#[non_exhaustive]pub struct Metric {
pub type: String,
pub labels: HashMap<String, String>,
/* private fields */
}
Expand description
A specific metric, identified by specifying values for all of the
labels of a MetricDescriptor
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: String
An existing metric type, see
google.api.MetricDescriptor. For example,
custom.googleapis.com/invoice/paid/amount
.
labels: HashMap<String, String>
The set of label values that uniquely identify this metric. All
labels listed in the MetricDescriptor
must be assigned values.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
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
Mutably borrows from an owned value. Read more