Enum indradb::ValidationErrorKind
source · pub enum ValidationErrorKind {
Msg(String),
// some variants omitted
}
Expand description
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Implementations
sourceimpl ValidationErrorKind
impl ValidationErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
sourceimpl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
sourceimpl Display for ValidationErrorKind
impl Display for ValidationErrorKind
sourceimpl<'a> From<&'a str> for ValidationErrorKind
impl<'a> From<&'a str> for ValidationErrorKind
sourceimpl From<String> for ValidationErrorKind
impl From<String> for ValidationErrorKind
sourceimpl From<ValidationError> for ValidationErrorKind
impl From<ValidationError> for ValidationErrorKind
sourcefn from(e: ValidationError) -> Self
fn from(e: ValidationError) -> Self
Converts to this type from the input type.
sourceimpl From<ValidationErrorKind> for ValidationError
impl From<ValidationErrorKind> for ValidationError
sourcefn from(e: ValidationErrorKind) -> Self
fn from(e: ValidationErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more