pub trait Entity {
// Required methods
fn values(&self) -> &Value;
fn values_mut(&mut self) -> &mut Value;
// Provided methods
fn is_missing(&self, attr: &str) -> bool { ... }
fn clear(&mut self, attr: &str) { ... }
}pub trait Entity {
// Required methods
fn values(&self) -> &Value;
fn values_mut(&mut self) -> &mut Value;
// Provided methods
fn is_missing(&self, attr: &str) -> bool { ... }
fn clear(&mut self, attr: &str) { ... }
}