Struct console_api::Metadata
source · [−]pub struct Metadata {
pub name: String,
pub target: String,
pub module_path: String,
pub location: Option<Location>,
pub kind: i32,
pub level: i32,
pub field_names: Vec<String>,
}
Expand description
Metadata associated with a span or event.
Fields
name: String
The name of the span or event.
target: String
Describes the part of the system where the span or event that this metadata describes occurred.
module_path: String
The path to the Rust module where the span occurred.
location: Option<Location>
The Rust source location associated with the span or event.
kind: i32
Indicates whether metadata is associated with a span or with an event.
level: i32
Describes the level of verbosity of a span or event.
field_names: Vec<String>
The names of the key-value fields attached to the span or event this metadata is associated with.
Implementations
Returns the enum value of kind
, or the default if the field is set to an invalid enum value.
Returns the enum value of level
, or the default if the field is set to an invalid enum value.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more