pub trait MapHelper { // Required method fn string(&self, key: &str) -> Option<String>; // Provided methods fn name(&self) -> Option<String> { ... } fn doc(&self) -> Option<String> { ... } }