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§
fn format( &self, val: &Value, config: &SharedConfig, ) -> Result<String, FormatError>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".