pub trait Handler {
// Required method
fn handle_request(&self, key: &str) -> Option<String>;
}Expand description
A trait for handling requests based on a key.
This trait provides a mechanism for handling requests by taking a key and
returning an associated value wrapped in an Option.