#[non_exhaustive]pub struct EntitiesRevision {
pub revision_id: String,
pub entities: Vec<Entity>,
pub entity_validation_output: Option<EntityValidationOutput>,
/* private fields */
}Expand description
Entity revision.
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.revision_id: StringThe revision id.
entities: Vec<Entity>The entities in this revision.
entity_validation_output: Option<EntityValidationOutput>The entity validation output for this revision.
Implementations§
Source§impl EntitiesRevision
impl EntitiesRevision
pub fn new() -> Self
Sourcepub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
pub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
Sets the value of revision_id.
§Example
ⓘ
let x = EntitiesRevision::new().set_revision_id("example");Sourcepub fn set_entities<T, V>(self, v: T) -> Self
pub fn set_entities<T, V>(self, v: T) -> Self
Sourcepub fn set_entity_validation_output<T>(self, v: T) -> Selfwhere
T: Into<EntityValidationOutput>,
pub fn set_entity_validation_output<T>(self, v: T) -> Selfwhere
T: Into<EntityValidationOutput>,
Sets the value of entity_validation_output.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::EntityValidationOutput;
let x = EntitiesRevision::new().set_entity_validation_output(EntityValidationOutput::default()/* use setters */);Sourcepub fn set_or_clear_entity_validation_output<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityValidationOutput>,
pub fn set_or_clear_entity_validation_output<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityValidationOutput>,
Sets or clears the value of entity_validation_output.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::EntityValidationOutput;
let x = EntitiesRevision::new().set_or_clear_entity_validation_output(Some(EntityValidationOutput::default()/* use setters */));
let x = EntitiesRevision::new().set_or_clear_entity_validation_output(None::<EntityValidationOutput>);Trait Implementations§
Source§impl Clone for EntitiesRevision
impl Clone for EntitiesRevision
Source§fn clone(&self) -> EntitiesRevision
fn clone(&self) -> EntitiesRevision
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 EntitiesRevision
impl Debug for EntitiesRevision
Source§impl Default for EntitiesRevision
impl Default for EntitiesRevision
Source§fn default() -> EntitiesRevision
fn default() -> EntitiesRevision
Returns the “default value” for a type. Read more
Source§impl Message for EntitiesRevision
impl Message for EntitiesRevision
Source§impl PartialEq for EntitiesRevision
impl PartialEq for EntitiesRevision
impl StructuralPartialEq for EntitiesRevision
Auto Trait Implementations§
impl Freeze for EntitiesRevision
impl RefUnwindSafe for EntitiesRevision
impl Send for EntitiesRevision
impl Sync for EntitiesRevision
impl Unpin for EntitiesRevision
impl UnwindSafe for EntitiesRevision
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