pub enum ValidationIssue {
InvalidSpan {
start: usize,
end: usize,
reason: String,
},
SpanOutOfBounds {
end: usize,
text_len: usize,
},
TextMismatch {
expected: String,
actual: String,
start: usize,
end: usize,
},
InvalidConfidence {
value: f64,
},
InvalidType {
reason: String,
},
}Expand description
Validation issue found during entity validation.
Variants§
InvalidSpan
Span bounds are invalid (start >= end).
Fields
SpanOutOfBounds
Span extends beyond text length.
TextMismatch
Entity text doesn’t match the span in source.
Fields
InvalidConfidence
Confidence is outside [0.0, 1.0].
InvalidType
Entity type is invalid.
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§fn clone(&self) -> ValidationIssue
fn clone(&self) -> ValidationIssue
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 moreSource§impl Debug for ValidationIssue
impl Debug for ValidationIssue
Source§impl Display for ValidationIssue
impl Display 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