tracing_serde

Trait AsSerde

Source
pub trait AsSerde<'a>: Sealed {
    type Serializable: Serialize + 'a;

    // Required method
    fn as_serde(&'a self) -> Self::Serializable;
}

Required Associated Types§

Required Methods§

Source

fn as_serde(&'a self) -> Self::Serializable

as_serde borrows a tracing value and returns the serialized value.

Implementations on Foreign Types§

Source§

impl<'a> AsSerde<'a> for Event<'a>

Source§

impl<'a> AsSerde<'a> for Level

Source§

impl<'a> AsSerde<'a> for Metadata<'a>

Source§

impl<'a> AsSerde<'a> for Attributes<'a>

Source§

impl<'a> AsSerde<'a> for Id

Source§

impl<'a> AsSerde<'a> for Record<'a>

Implementors§