Trait slog::ser::Serialize [] [src]

pub trait Serialize {
    fn serialize(&self,
             record: &Record,
             key: &'static str,
             serializer: &mut Serializer)
             -> Result<(), Error>; }

Value that can be serialized

Loggers require values in key-value pairs to implement this trait.

Required Methods

Serialize self into Serializer

Structs implementing this trait should generally only call respective methods of serializer.

Implementors