pub struct SpanMeta {
pub name: String,
pub target: String,
pub level: String,
pub file: Option<String>,
pub line: Option<u32>,
pub fields: Vec<Field>,
}Expand description
Metadata about a span.
Fields§
§name: StringSpan name
target: StringTarget (module path)
level: StringLevel as string (“TRACE”, “DEBUG”, “INFO”, “WARN”, “ERROR”)
file: Option<String>Source file, if available
line: Option<u32>Line number, if available
fields: Vec<Field>Fields recorded at span creation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanMeta
impl RefUnwindSafe for SpanMeta
impl Send for SpanMeta
impl Sync for SpanMeta
impl Unpin for SpanMeta
impl UnwindSafe for SpanMeta
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)