#[non_exhaustive]pub struct EntityValidationOutput {
pub validation_results: Vec<ValidationResult>,
pub pass_all_rules: bool,
/* private fields */
}Expand description
The output of the validation given the document and the validation rules.
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.validation_results: Vec<ValidationResult>The result of each validation rule.
pass_all_rules: boolThe overall result of the validation, true if all applicable rules are valid.
Implementations§
Source§impl EntityValidationOutput
impl EntityValidationOutput
pub fn new() -> Self
Sourcepub fn set_validation_results<T, V>(self, v: T) -> Self
pub fn set_validation_results<T, V>(self, v: T) -> Self
Sets the value of validation_results.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::entity_validation_output::ValidationResult;
let x = EntityValidationOutput::new()
.set_validation_results([
ValidationResult::default()/* use setters */,
ValidationResult::default()/* use (different) setters */,
]);Sourcepub fn set_pass_all_rules<T: Into<bool>>(self, v: T) -> Self
pub fn set_pass_all_rules<T: Into<bool>>(self, v: T) -> Self
Sets the value of pass_all_rules.
§Example
ⓘ
let x = EntityValidationOutput::new().set_pass_all_rules(true);Trait Implementations§
Source§impl Clone for EntityValidationOutput
impl Clone for EntityValidationOutput
Source§fn clone(&self) -> EntityValidationOutput
fn clone(&self) -> EntityValidationOutput
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 EntityValidationOutput
impl Debug for EntityValidationOutput
Source§impl Default for EntityValidationOutput
impl Default for EntityValidationOutput
Source§fn default() -> EntityValidationOutput
fn default() -> EntityValidationOutput
Returns the “default value” for a type. Read more
Source§impl Message for EntityValidationOutput
impl Message for EntityValidationOutput
Source§impl PartialEq for EntityValidationOutput
impl PartialEq for EntityValidationOutput
impl StructuralPartialEq for EntityValidationOutput
Auto Trait Implementations§
impl Freeze for EntityValidationOutput
impl RefUnwindSafe for EntityValidationOutput
impl Send for EntityValidationOutput
impl Sync for EntityValidationOutput
impl Unpin for EntityValidationOutput
impl UnwindSafe for EntityValidationOutput
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