[][src]Enum gcp_client::google::cloud::automl::v1beta1::document::layout::TextSegmentType

#[repr(i32)]pub enum TextSegmentType {
    Unspecified,
    Token,
    Paragraph,
    FormField,
    FormFieldName,
    FormFieldContents,
    Table,
    TableHeader,
    TableRow,
    TableCell,
}

The type of TextSegment in the context of the original document.

Variants

Unspecified

Should not be used.

Token

The text segment is a token. e.g. word.

Paragraph

The text segment is a paragraph.

FormField

The text segment is a form field.

FormFieldName

The text segment is the name part of a form field. It will be treated as child of another FORM_FIELD TextSegment if its span is subspan of another TextSegment with type FORM_FIELD.

FormFieldContents

The text segment is the text content part of a form field. It will be treated as child of another FORM_FIELD TextSegment if its span is subspan of another TextSegment with type FORM_FIELD.

Table

The text segment is a whole table, including headers, and all rows.

TableHeader

The text segment is a table's headers. It will be treated as child of another TABLE TextSegment if its span is subspan of another TextSegment with type TABLE.

TableRow

The text segment is a row in table. It will be treated as child of another TABLE TextSegment if its span is subspan of another TextSegment with type TABLE.

TableCell

The text segment is a cell in table. It will be treated as child of another TABLE_ROW TextSegment if its span is subspan of another TextSegment with type TABLE_ROW.

Implementations

impl TextSegmentType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of TextSegmentType.

pub fn from_i32(value: i32) -> Option<TextSegmentType>[src]

Converts an i32 to a TextSegmentType, or None if value is not a valid variant.

Trait Implementations

impl Clone for TextSegmentType[src]

impl Copy for TextSegmentType[src]

impl Debug for TextSegmentType[src]

impl Default for TextSegmentType[src]

impl Eq for TextSegmentType[src]

impl From<TextSegmentType> for i32[src]

impl Hash for TextSegmentType[src]

impl Ord for TextSegmentType[src]

impl PartialEq<TextSegmentType> for TextSegmentType[src]

impl PartialOrd<TextSegmentType> for TextSegmentType[src]

impl StructuralEq for TextSegmentType[src]

impl StructuralPartialEq for TextSegmentType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]