pub trait ConfigGetResultExt<T> {
// Required method
fn optional(self) -> Result<Option<T>, ConfigGetError>;
}Expand description
Extension methods for Result<T, ConfigGetError>.
Required Methods§
Sourcefn optional(self) -> Result<Option<T>, ConfigGetError>
fn optional(self) -> Result<Option<T>, ConfigGetError>
Converts NotFound error to Ok(None), leaving other errors.