pub struct ScopeMetrics {
pub scope: InstrumentationScope,
pub metrics: Vec<Metric>,
pub schema_url: String,
pub _has: _Hazzer,
}
Fields§
§scope: InstrumentationScope
§metrics: Vec<Metric>
§schema_url: String
§_has: _Hazzer
Implementations§
Source§impl ScopeMetrics
impl ScopeMetrics
Sourcepub fn scope(&self) -> Option<&InstrumentationScope>
pub fn scope(&self) -> Option<&InstrumentationScope>
Return a reference to scope
as an Option
Sourcepub fn mut_scope(&mut self) -> Option<&mut InstrumentationScope>
pub fn mut_scope(&mut self) -> Option<&mut InstrumentationScope>
Return a mutable reference to scope
as an Option
Sourcepub fn set_scope(&mut self, value: InstrumentationScope)
pub fn set_scope(&mut self, value: InstrumentationScope)
Set the value and presence of scope
Sourcepub fn clear_scope(&mut self)
pub fn clear_scope(&mut self)
Clear the presence of scope
Trait Implementations§
Source§impl Clone for ScopeMetrics
impl Clone for ScopeMetrics
Source§fn clone(&self) -> ScopeMetrics
fn clone(&self) -> ScopeMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScopeMetrics
impl Debug for ScopeMetrics
Source§impl Default for ScopeMetrics
impl Default for ScopeMetrics
Source§impl MessageDecode for ScopeMetrics
impl MessageDecode for ScopeMetrics
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 ScopeMetrics
impl MessageEncode for ScopeMetrics
Source§impl PartialEq for ScopeMetrics
impl PartialEq for ScopeMetrics
impl StructuralPartialEq for ScopeMetrics
Auto Trait Implementations§
impl Freeze for ScopeMetrics
impl RefUnwindSafe for ScopeMetrics
impl Send for ScopeMetrics
impl Sync for ScopeMetrics
impl Unpin for ScopeMetrics
impl UnwindSafe for ScopeMetrics
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