#[non_exhaustive]pub struct Counters {
pub input_documents_count: i32,
pub invalid_documents_count: i32,
pub failed_documents_count: i32,
pub evaluated_documents_count: i32,
/* private fields */
}Expand description
Evaluation counters for the documents that were used.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_documents_count: i32How many documents were sent for evaluation.
invalid_documents_count: i32How many documents were not included in the evaluation as they didn’t pass validation.
failed_documents_count: i32How many documents were not included in the evaluation as Document AI failed to process them.
evaluated_documents_count: i32How many documents were used in the evaluation.
Implementations§
Source§impl Counters
impl Counters
pub fn new() -> Self
Sourcepub fn set_input_documents_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_input_documents_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of input_documents_count.
Sourcepub fn set_invalid_documents_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_invalid_documents_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of invalid_documents_count.
Sourcepub fn set_failed_documents_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_failed_documents_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of failed_documents_count.
Sourcepub fn set_evaluated_documents_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_evaluated_documents_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of evaluated_documents_count.
Trait Implementations§
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnwindSafe for Counters
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