pub struct Metric {
pub name: String,
pub description: String,
pub unit: String,
pub metadata: Vec<KeyValue>,
pub data: Option<Data>,
}
Fields§
§name: String
§description: String
§unit: String
§metadata: Vec<KeyValue>
§data: Option<Data>
Trait Implementations§
Source§impl MessageDecode for Metric
impl MessageDecode for Metric
Source§fn decode<IMPL_MICROPB_READ: PbRead>(
&mut self,
decoder: &mut PbDecoder<IMPL_MICROPB_READ>,
len: usize,
) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
Decode an instance of the message from the decoder and merge it into
self
. Read moreSource§fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
Decode an instance of the message from the decoder as a length-delimited record, starting with a length
prefix.
Source§impl MessageEncode for Metric
impl MessageEncode for Metric
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