pub enum SingleError {
QueryDoesNotMatch,
MoreThanOneMatch,
}Expand description
Error raised when fetching exactly one entity matching a query fails.
Variants§
QueryDoesNotMatch
Query does not match any entities
MoreThanOneMatch
More than one entity matched the query.
Trait Implementations§
Source§impl Clone for SingleError
impl Clone for SingleError
Source§fn clone(&self) -> SingleError
fn clone(&self) -> SingleError
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 SingleError
impl Debug for SingleError
Source§impl Display for SingleError
impl Display for SingleError
Source§impl Error for SingleError
Available on crate feature std only.
impl Error for SingleError
Available on crate feature
std only.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 Ord for SingleError
impl Ord for SingleError
Source§fn cmp(&self, other: &SingleError) -> Ordering
fn cmp(&self, other: &SingleError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SingleError
impl PartialEq for SingleError
Source§impl PartialOrd for SingleError
impl PartialOrd for SingleError
impl Copy for SingleError
impl Eq for SingleError
impl StructuralPartialEq for SingleError
Auto Trait Implementations§
impl Freeze for SingleError
impl RefUnwindSafe for SingleError
impl Send for SingleError
impl Sync for SingleError
impl Unpin for SingleError
impl UnwindSafe for SingleError
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.