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

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

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

Source§

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

Source§

impl<'a> AsSerde<'a> for Field

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§