pub trait CustomFrom {
// Required method
fn from(string: &str) -> Option<Self>
where Self: Sized;
}Expand description
An implementation of From<&str> for KeyType to read a key type from a bootstrap config
file.
We define a custom trait because of the Rust visibility rule.