pub struct ResourceSpans {
pub resource: Resource,
pub scope_spans: Vec<ScopeSpans>,
pub schema_url: String,
pub _has: _Hazzer,
}
Fields§
§resource: Resource
§scope_spans: Vec<ScopeSpans>
§schema_url: String
§_has: _Hazzer
Implementations§
Source§impl ResourceSpans
impl ResourceSpans
Sourcepub fn mut_resource(&mut self) -> Option<&mut Resource>
pub fn mut_resource(&mut self) -> Option<&mut Resource>
Return a mutable reference to resource
as an Option
Sourcepub fn set_resource(&mut self, value: Resource)
pub fn set_resource(&mut self, value: Resource)
Set the value and presence of resource
Sourcepub fn clear_resource(&mut self)
pub fn clear_resource(&mut self)
Clear the presence of resource
Trait Implementations§
Source§impl Clone for ResourceSpans
impl Clone for ResourceSpans
Source§fn clone(&self) -> ResourceSpans
fn clone(&self) -> ResourceSpans
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 ResourceSpans
impl Debug for ResourceSpans
Source§impl Default for ResourceSpans
impl Default for ResourceSpans
Source§impl MessageDecode for ResourceSpans
impl MessageDecode for ResourceSpans
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 ResourceSpans
impl MessageEncode for ResourceSpans
Source§impl PartialEq for ResourceSpans
impl PartialEq for ResourceSpans
impl StructuralPartialEq for ResourceSpans
Auto Trait Implementations§
impl Freeze for ResourceSpans
impl RefUnwindSafe for ResourceSpans
impl Send for ResourceSpans
impl Sync for ResourceSpans
impl Unpin for ResourceSpans
impl UnwindSafe for ResourceSpans
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