pub enum ValidationErrorsKind {
Field(Vec<ValidationError>),
Struct(Box<ValidationErrors>),
List(BTreeMap<usize, Box<ValidationErrors>>),
}Expand description
Represents the different kinds of validation errors that can occur for a field.
Variants§
Field(Vec<ValidationError>)
A list of specific ValidationErrors for a simple field.
Struct(Box<ValidationErrors>)
Validation errors for a nested struct.
List(BTreeMap<usize, Box<ValidationErrors>>)
Validation errors for a list/vector of items, indexed by their position.
Trait Implementations§
Source§impl Clone for ValidationErrorsKind
impl Clone for ValidationErrorsKind
Source§impl Debug for ValidationErrorsKind
impl Debug for ValidationErrorsKind
Source§impl<'de> Deserialize<'de> for ValidationErrorsKind
impl<'de> Deserialize<'de> for ValidationErrorsKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationErrorsKind
impl PartialEq for ValidationErrorsKind
Source§impl Serialize for ValidationErrorsKind
impl Serialize for ValidationErrorsKind
impl StructuralPartialEq for ValidationErrorsKind
Auto Trait Implementations§
impl Freeze for ValidationErrorsKind
impl RefUnwindSafe for ValidationErrorsKind
impl Send for ValidationErrorsKind
impl Sync for ValidationErrorsKind
impl Unpin for ValidationErrorsKind
impl UnsafeUnpin for ValidationErrorsKind
impl UnwindSafe for ValidationErrorsKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more