pub trait Formatter: Debug + Send + Sync {
    // Required method
    fn format(&self, val: &Value, config: &SharedConfig) -> Result<String>;

    // Provided method
    fn interval(&self) -> Option<Duration> { ... }
}

Required Methods§

source

fn format(&self, val: &Value, config: &SharedConfig) -> Result<String>

Provided Methods§

Implementors§