🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

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 Attributes<'a>

source§

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

source§

impl<'a> AsSerde<'a> for FieldSet

source§

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

source§

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

source§

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

source§

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

Implementors§