pub struct ValidationError {
pub line_num: usize,
pub kind: ValidationErrorKind,
pub message: String,
pub raw_line: Option<String>,
}Expand description
Details about a single validation failure.
Fields§
§line_num: usizeLine number in the shard file (1-based).
kind: ValidationErrorKindThe category of validation failure.
message: StringHuman-readable description of what went wrong.
raw_line: Option<String>The raw line content (truncated to 256 chars if oversized).
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
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 moreAuto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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