pub trait AsSerde<'a>: Sealed {
type Serializable: Serialize + 'a;
// Required method
fn as_serde(&'a self) -> Self::Serializable;
}
Required Associated Types§
type Serializable: Serialize + 'a
Required Methods§
Sourcefn as_serde(&'a self) -> Self::Serializable
fn as_serde(&'a self) -> Self::Serializable
as_serde
borrows a tracing
value and returns the serialized value.