pub struct TextValidation {
pub expected_values: Vec<String>,
pub found_values: Vec<String>,
pub missing_values: Vec<String>,
pub completeness_ratio: f64,
}Expand description
Result of a text completeness validation pass.
Compares the data values bound in the original XFA datasets against the text content extracted from the flattened PDF to verify all field values appear in the output.
Fields§
§expected_values: Vec<String>Data values extracted from the original XFA datasets XML.
found_values: Vec<String>Values from expected_values that were found in the output text.
missing_values: Vec<String>Values from expected_values that were NOT found in the output text.
completeness_ratio: f64Ratio of found/expected. 1.0 means all expected values are present.
Returns 1.0 when expected_values is empty (nothing to check).
Auto Trait Implementations§
impl Freeze for TextValidation
impl RefUnwindSafe for TextValidation
impl Send for TextValidation
impl Sync for TextValidation
impl Unpin for TextValidation
impl UnsafeUnpin for TextValidation
impl UnwindSafe for TextValidation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more