pub struct GoogleCloudDocumentaiV1DocumentSchemaEntityType {
pub base_types: Option<Vec<String>>,
pub display_name: Option<String>,
pub enum_values: Option<GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues>,
pub name: Option<String>,
pub properties: Option<Vec<GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty>>,
}Expand description
EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.
This type is not used in any activity, and only used as part of another schema.
Fields§
§base_types: Option<Vec<String>>The entity type that this type is derived from. For now, one and only one should be set.
display_name: Option<String>User defined name for the type.
enum_values: Option<GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues>If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the EntityType.value_ontology field and specify a list of all possible values in a value ontology file.
name: Option<String>Name of the type. It must be unique within the schema file and cannot be a “Common Type”. The following naming conventions are used: - Use snake_casing. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The / is sometimes used to denote a property of a type. For example line_item/amount. This convention is deprecated, but will still be honored for backward compatibility.
properties: Option<Vec<GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty>>Description the nested structure, or composition of an entity.
Trait Implementations§
Source§impl Clone for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl Clone for GoogleCloudDocumentaiV1DocumentSchemaEntityType
Source§fn clone(&self) -> GoogleCloudDocumentaiV1DocumentSchemaEntityType
fn clone(&self) -> GoogleCloudDocumentaiV1DocumentSchemaEntityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl Default for GoogleCloudDocumentaiV1DocumentSchemaEntityType
Source§fn default() -> GoogleCloudDocumentaiV1DocumentSchemaEntityType
fn default() -> GoogleCloudDocumentaiV1DocumentSchemaEntityType
Source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1DocumentSchemaEntityType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDocumentaiV1DocumentSchemaEntityType
Auto Trait Implementations§
impl Freeze for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl RefUnwindSafe for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl Send for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl Sync for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl Unpin for GoogleCloudDocumentaiV1DocumentSchemaEntityType
impl UnwindSafe for GoogleCloudDocumentaiV1DocumentSchemaEntityType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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