Struct log4rs_rolling_file::policy::compound::trigger::size::SizeTriggerDeserializer [] [src]

pub struct SizeTriggerDeserializer;

A deserializer for the SizeTrigger.

Configuration

kind: size

# The size limit in bytes. The following units are supported (case insensitive):
# "b", "kb", "kib", "mb", "mib", "gb", "gib", "tb", "tib". The unit defaults to
# bytes if not specified. Required.
limit: 10 mb

Trait Implementations

impl Deserialize for SizeTriggerDeserializer
[src]

type Trait = Trigger

The trait that this builder will create.

fn deserialize(&self, config: Value, _: &Deserializers) -> Result<Box<Trigger>, Box<Error>>

Create a new trait object based on the provided config.