pub struct BatchValidationItem {
pub index: usize,
pub result: Result<(), ValidationErrors>,
}Expand description
Result of validating a single item in a batch.
Fields§
§index: usizeZero-based index in the input slice.
result: Result<(), ValidationErrors>Validation result: Ok(()) if valid, Err with field-level errors otherwise.
Trait Implementations§
Source§impl Clone for BatchValidationItem
impl Clone for BatchValidationItem
Auto Trait Implementations§
impl Freeze for BatchValidationItem
impl RefUnwindSafe for BatchValidationItem
impl Send for BatchValidationItem
impl Sync for BatchValidationItem
impl Unpin for BatchValidationItem
impl UnsafeUnpin for BatchValidationItem
impl UnwindSafe for BatchValidationItem
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