pub trait PayloadFormatter: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn matches(&self, payload: &Value) -> bool;
fn format(&self, payload: &Value, message: &str);
// Provided method
fn supported_kinds(&self) -> &'static [PayloadKind] { ... }
}Expand description
Trait for payload formatters
Required Methods§
Provided Methods§
Sourcefn supported_kinds(&self) -> &'static [PayloadKind]
fn supported_kinds(&self) -> &'static [PayloadKind]
PayloadKind(s) this formatter handles (preferred matching method)