pub struct ValidationIssue {
pub input_index: usize,
pub error: ValidationError,
}Expand description
A validation error together with the index of the offending entry in the
journal passed to validate_journal_all, before chronological sorting.
The index is deliberately a domain-level location, not a source span:
pactole-core must remain independent from parsers and file storage. A
storage layer can use it to recover the originating file and source span.
Fields§
§input_index: usizeZero-based position in the journal supplied to validation, before the validator’s chronological sort.
error: ValidationErrorBusiness error associated with the input entry.
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§impl Debug for ValidationIssue
impl Debug for ValidationIssue
Source§impl PartialEq for ValidationIssue
impl PartialEq for ValidationIssue
impl StructuralPartialEq for ValidationIssue
Auto Trait Implementations§
impl Freeze for ValidationIssue
impl RefUnwindSafe for ValidationIssue
impl Send for ValidationIssue
impl Sync for ValidationIssue
impl Unpin for ValidationIssue
impl UnsafeUnpin for ValidationIssue
impl UnwindSafe for ValidationIssue
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