pub struct DeqError {
pub code: ErrorCode,
pub message: String,
pub issues: Vec<String>,
}Expand description
Why an operation failed. code is stable; the message is for people.
Fields§
§code: ErrorCodeThe stable error code.
message: StringA message for people.
issues: Vec<String>Validation problems, one line each (for InvalidOptions).
Implementations§
Trait Implementations§
impl Eq for DeqError
Source§impl Error for DeqError
impl Error for DeqError
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()
impl StructuralPartialEq for DeqError
Auto Trait Implementations§
impl Forget for DeqError
impl Freeze for DeqError
impl Move for DeqError
impl RefUnwindSafe for DeqError
impl Send for DeqErrorwhere
RawVecInner: Send,
impl Sync for DeqErrorwhere
RawVecInner: Sync,
impl Unpin for DeqError
impl UnsafeUnpin for DeqErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for DeqErrorwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.