#[non_exhaustive]pub enum LinkSourceError {
Missing,
}Expand description
Error returned by Link::validate_source when the source invariant
(RFC 8984 §1.4.11 + JMAP Calendars draft §5.3) is violated.
Currently the only failure mode is “neither href nor blob_id is
set”; the type is #[non_exhaustive] so additional variants can be
added without breaking matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
Neither href nor blob_id is set. Per RFC 8984 §1.4.11
href is mandatory; per JMAP Calendars draft §5.3 a
blob_id may substitute. At least one of the two MUST be
present.
Trait Implementations§
Source§impl Clone for LinkSourceError
impl Clone for LinkSourceError
Source§fn clone(&self) -> LinkSourceError
fn clone(&self) -> LinkSourceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LinkSourceError
impl Debug for LinkSourceError
Source§impl Display for LinkSourceError
impl Display for LinkSourceError
impl Eq for LinkSourceError
Source§impl Error for LinkSourceError
impl Error for LinkSourceError
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 LinkSourceError
impl PartialEq for LinkSourceError
Source§fn eq(&self, other: &LinkSourceError) -> bool
fn eq(&self, other: &LinkSourceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkSourceError
Auto Trait Implementations§
impl Freeze for LinkSourceError
impl RefUnwindSafe for LinkSourceError
impl Send for LinkSourceError
impl Sync for LinkSourceError
impl Unpin for LinkSourceError
impl UnsafeUnpin for LinkSourceError
impl UnwindSafe for LinkSourceError
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