pub trait FromOptionalField<T> {
// Required methods
fn optional(self) -> Result<Option<T>, Error>;
fn required(self, field: impl Into<String>) -> Result<T, Error>;
}Expand description
An extension trait that adds the methods optional and required to any
Option containing a type implementing TryInto<U, Error = Error>
Required Methods§
Object Safety§
This trait is not object safe.