pub struct ObsEnvelopeView<'a> {Show 16 fields
pub full_name: &'a str,
pub schema_hash: u64,
pub tier: EnumValue<Tier>,
pub sev: EnumValue<Severity>,
pub ts_ns: u64,
pub trace_id: &'a str,
pub span_id: &'a str,
pub parent_span_id: &'a str,
pub service: &'a str,
pub instance: &'a str,
pub version: &'a str,
pub payload: &'a [u8],
pub labels: MapView<'a, &'a str, &'a str>,
pub sampling_reason: EnumValue<SamplingReason>,
pub callsite_id: u64,
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Fields§
§full_name: &'a strField 1: full_name
schema_hash: u64Field 2: schema_hash
tier: EnumValue<Tier>Field 3: tier
sev: EnumValue<Severity>Field 4: sev
ts_ns: u64Field 5: ts_ns
trace_id: &'a strField 6: trace_id
span_id: &'a strField 7: span_id
parent_span_id: &'a strField 8: parent_span_id
service: &'a strField 9: service
instance: &'a strField 10: instance
version: &'a strField 11: version
payload: &'a [u8]Field 12: payload
labels: MapView<'a, &'a str, &'a str>Field 13: labels (map)
sampling_reason: EnumValue<SamplingReason>Field 14: sampling_reason
callsite_id: u64Field 15: callsite_id
__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl<'a> Clone for ObsEnvelopeView<'a>
impl<'a> Clone for ObsEnvelopeView<'a>
Source§fn clone(&self) -> ObsEnvelopeView<'a>
fn clone(&self) -> ObsEnvelopeView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ObsEnvelopeView<'a>
impl<'a> Debug for ObsEnvelopeView<'a>
Source§impl<'a> Default for ObsEnvelopeView<'a>
impl<'a> Default for ObsEnvelopeView<'a>
Source§fn default() -> ObsEnvelopeView<'a>
fn default() -> ObsEnvelopeView<'a>
Returns the “default value” for a type. Read more
Source§impl<'v> DefaultViewInstance for ObsEnvelopeView<'v>
impl<'v> DefaultViewInstance for ObsEnvelopeView<'v>
Source§fn default_view_instance<'a>() -> &'a Selfwhere
Self: 'a,
fn default_view_instance<'a>() -> &'a Selfwhere
Self: 'a,
Return a reference to the single default view instance. Read more
Source§impl<'a> MessageView<'a> for ObsEnvelopeView<'a>
impl<'a> MessageView<'a> for ObsEnvelopeView<'a>
Source§type Owned = ObsEnvelope
type Owned = ObsEnvelope
The corresponding owned message type.
Source§fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
Decode a view from a buffer, borrowing string/bytes fields directly. Read more
Source§fn decode_view_with_limit(
buf: &'a [u8],
depth: u32,
) -> Result<Self, DecodeError>
fn decode_view_with_limit( buf: &'a [u8], depth: u32, ) -> Result<Self, DecodeError>
Decode a view with a custom recursion depth limit. Read more
Source§fn to_owned_message(&self) -> ObsEnvelope
fn to_owned_message(&self) -> ObsEnvelope
Convert this view to the owned message type. Read more
Source§fn to_owned_from_source(&self, __buffa_src: Option<&Bytes>) -> ObsEnvelope
fn to_owned_from_source(&self, __buffa_src: Option<&Bytes>) -> ObsEnvelope
Convert this view to the owned message type, optionally slicing
bytes::Bytes-typed fields from source instead of copying. Read moreSource§impl<'a> ViewEncode<'a> for ObsEnvelopeView<'a>
impl<'a> ViewEncode<'a> for ObsEnvelopeView<'a>
Source§fn compute_size(&self, _cache: &mut SizeCache) -> u32
fn compute_size(&self, _cache: &mut SizeCache) -> u32
Source§fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
Write this view’s encoded bytes to a buffer, consuming
nested-message sizes from
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn encode(&self, buf: &mut impl BufMut)
fn encode(&self, buf: &mut impl BufMut)
Compute size, then write. Primary view-encode entry point.
Source§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
Encode using a caller-supplied
SizeCache, for
reuse across many encodes in a hot loop. Clears the cache first.Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Compute the encoded byte size of this view. Read more
Source§fn encode_length_delimited(&self, buf: &mut impl BufMut)
fn encode_length_delimited(&self, buf: &mut impl BufMut)
Encode this view as a length-delimited byte sequence.
Source§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
Encode this view to a new
bytes::Bytes.Source§impl ViewReborrow for ObsEnvelopeView<'static>
impl ViewReborrow for ObsEnvelopeView<'static>
Source§type Reborrowed<'b> = ObsEnvelopeView<'b>
type Reborrowed<'b> = ObsEnvelopeView<'b>
The same view type with its lifetime shortened to
'b.Source§fn reborrow<'b>(this: &'b Self) -> &'b Self::Reborrowed<'b>
fn reborrow<'b>(this: &'b Self) -> &'b Self::Reborrowed<'b>
Coerce
&'b Self (= &'b FooView<'static>) to
&'b Self::Reborrowed<'b> (= &'b FooView<'b>). The canonical body
is just this; the compiler accepts it via standard lifetime
variance for covariant view types. Read moreAuto Trait Implementations§
impl<'a> Freeze for ObsEnvelopeView<'a>
impl<'a> RefUnwindSafe for ObsEnvelopeView<'a>
impl<'a> Send for ObsEnvelopeView<'a>
impl<'a> Sync for ObsEnvelopeView<'a>
impl<'a> Unpin for ObsEnvelopeView<'a>
impl<'a> UnsafeUnpin for ObsEnvelopeView<'a>
impl<'a> UnwindSafe for ObsEnvelopeView<'a>
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