#[non_exhaustive]pub struct RequiredError {
pub field: &'static str,
}Expand description
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: &'static strName of the field that was None.
Trait Implementations§
Source§impl Clone for RequiredError
impl Clone for RequiredError
Source§fn clone(&self) -> RequiredError
fn clone(&self) -> RequiredError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequiredError
impl Debug for RequiredError
Source§impl Display for RequiredError
impl Display for RequiredError
Source§impl Error for RequiredError
impl Error for RequiredError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RequiredError
impl PartialEq for RequiredError
impl Eq for RequiredError
impl StructuralPartialEq for RequiredError
Auto Trait Implementations§
impl Freeze for RequiredError
impl RefUnwindSafe for RequiredError
impl Send for RequiredError
impl Sync for RequiredError
impl Unpin for RequiredError
impl UnsafeUnpin for RequiredError
impl UnwindSafe for RequiredError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more