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

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

Required Methods§

source

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

Provided Methods§

Implementors§