pub enum ApiPrimitiveError {
Empty,
Invalid,
Unknown,
}Expand description
Error returned when API primitive text or labels are invalid.
Variants§
Empty
The supplied value was empty after trimming.
Invalid
The supplied value used syntax this crate rejects.
Unknown
The supplied label was not recognized.
Trait Implementations§
Source§impl Clone for ApiPrimitiveError
impl Clone for ApiPrimitiveError
Source§fn clone(&self) -> ApiPrimitiveError
fn clone(&self) -> ApiPrimitiveError
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 ApiPrimitiveError
impl Debug for ApiPrimitiveError
Source§impl Display for ApiPrimitiveError
impl Display for ApiPrimitiveError
Source§impl Error for ApiPrimitiveError
impl Error for ApiPrimitiveError
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 ApiPrimitiveError
impl PartialEq for ApiPrimitiveError
Source§fn eq(&self, other: &ApiPrimitiveError) -> bool
fn eq(&self, other: &ApiPrimitiveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApiPrimitiveError
impl Eq for ApiPrimitiveError
impl StructuralPartialEq for ApiPrimitiveError
Auto Trait Implementations§
impl Freeze for ApiPrimitiveError
impl RefUnwindSafe for ApiPrimitiveError
impl Send for ApiPrimitiveError
impl Sync for ApiPrimitiveError
impl Unpin for ApiPrimitiveError
impl UnsafeUnpin for ApiPrimitiveError
impl UnwindSafe for ApiPrimitiveError
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