pub struct Finding { /* private fields */ }Expand description
One record-indexed validation finding and its document byte span.
Implementations§
Source§impl Finding
impl Finding
Sourcepub const fn kind(&self) -> FindingKind
pub const fn kind(&self) -> FindingKind
Returns the stable finding category.
Sourcepub const fn record_index(&self) -> usize
pub const fn record_index(&self) -> usize
Returns the zero-based record index.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the document-relative byte span.
Sourcepub fn field_name(&self) -> Option<&str>
pub fn field_name(&self) -> Option<&str>
Returns the related case-sensitive field name, when applicable.
Trait Implementations§
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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