usestd::fmt;/// Error returned by `TryFrom` implementations generated by `typex!(Target = T!)`.
////// Carries the name of the first `Option`-wrapped field that was `None` when
/// attempting to convert a `Partial` type back into its `Required` form.
#[derive(Debug, Clone, PartialEq, Eq)]#[non_exhaustive]pubstructRequiredError{/// Name of the field that was `None`.
pubfield:&'staticstr,
}implRequiredError{#[doc(hidden)]pubconstfnnew(field:&'staticstr)->Self{Self{ field }}}implfmt::Display forRequiredError{fnfmt(&self, f:&mutfmt::Formatter<'_>)->fmt::Result{write!(f,"required field `{}` is None",self.field)}}implstd::error::Error forRequiredError{}