pub trait FieldHolder {
// Required methods
fn add(&mut self, data: HashMap<String, Value>);
fn add_field(&mut self, name: &str, value: Value);
fn add_func<F>(&mut self, func: F)
where F: Fn() -> Result<(String, Value)>;
}
Expand description
FieldHolder
implements common functions that operate on the fields
component of a
struct (usually Event or Builder). This avoids some duplication of code.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.