pub type SpanEventSlice<'a> = SpanEvent<&'a str>;Aliased Type§
pub struct SpanEventSlice<'a> {
pub time_unix_nano: u64,
pub name: &'a str,
pub attributes: HashMap<&'a str, AttributeAnyValue<&'a str>>,
}Fields§
§time_unix_nano: u64§name: &'a str§attributes: HashMap<&'a str, AttributeAnyValue<&'a str>>Implementations§
Source§impl SpanEventSlice<'_>
impl SpanEventSlice<'_>
Sourcepub fn try_to_bytes(&self, bytes: &Bytes) -> Option<SpanEventBytes>
pub fn try_to_bytes(&self, bytes: &Bytes) -> Option<SpanEventBytes>
Converts a borrowed SpanEventSlice into an owned SpanEventBytes, resolving references
into the provided Bytes buffer. Fails with None if any slice is invalid or cannot be
converted.