#[non_exhaustive]pub struct CollisionError { /* private fields */ }Expand description
Error returned by validate_extras() when the extra map contains
one or more keys that shadow typed wire-format fields on the same
struct. The colliding keys are reported in deterministic
alphabetical order.
#[non_exhaustive] matches the workspace pattern set by
jmap_mail_types::KeywordError and the foundation error types
(JmapError, MethodResponseError, SetError): a future field or
variant addition (for example, an account_id field to disambiguate
cross-account collisions) must remain a non-breaking semver change.
Implementations§
Trait Implementations§
Source§impl Clone for CollisionError
impl Clone for CollisionError
Source§impl Debug for CollisionError
impl Debug for CollisionError
Source§impl Display for CollisionError
impl Display for CollisionError
impl Eq for CollisionError
Source§impl Error for CollisionError
impl Error for CollisionError
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 CollisionError
impl PartialEq for CollisionError
impl StructuralPartialEq for CollisionError
Auto Trait Implementations§
impl Freeze for CollisionError
impl RefUnwindSafe for CollisionError
impl Send for CollisionError
impl Sync for CollisionError
impl Unpin for CollisionError
impl UnsafeUnpin for CollisionError
impl UnwindSafe for CollisionError
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