[][src]Struct gcp_client::google::cloud::documentai::v1beta1::document::page::Layout

pub struct Layout {
    pub text_anchor: Option<TextAnchor>,
    pub confidence: f32,
    pub bounding_poly: Option<BoundingPoly>,
    pub orientation: i32,
}

Visual element describing a layout unit on a page.

Fields

text_anchor: Option<TextAnchor>

Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].

confidence: f32

Confidence of the current [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout] within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1].

bounding_poly: Option<BoundingPoly>

The bounding polygon for the [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout].

orientation: i32

Detected orientation for the [Layout][google.cloud.documentai.v1beta1.Document.Page.Layout].

Implementations

impl Layout[src]

pub fn orientation(&self) -> Orientation[src]

Returns the enum value of orientation, or the default if the field is set to an invalid enum value.

pub fn set_orientation(&mut self, value: Orientation)[src]

Sets orientation to the provided enum value.

Trait Implementations

impl Clone for Layout[src]

impl Debug for Layout[src]

impl Default for Layout[src]

impl Message for Layout[src]

impl PartialEq<Layout> for Layout[src]

impl StructuralPartialEq for Layout[src]

Auto Trait Implementations

impl RefUnwindSafe for Layout

impl Send for Layout

impl Sync for Layout

impl Unpin for Layout

impl UnwindSafe for Layout

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<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]