Trait slog::KV [] [src]

pub trait KV {
    fn serialize(&self, record: &Record, serializer: &mut Serializer) -> Result;

Key-value pair(s)

Zero, one or more key value pairs chained together

Any logging data must implement this trait for slog to be able to use it.

Required Methods

Serialize self into Serializer

KV should call respective Serializer methods for each key-value pair it contains.