[][src]Struct gcp_client::google::cloud::automl::v1beta1::document::Layout

pub struct Layout {
    pub text_segment: Option<TextSegment>,
    pub page_number: i32,
    pub bounding_poly: Option<BoundingPoly>,
    pub text_segment_type: i32,
}

Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.

Fields

text_segment: Option<TextSegment>

Text Segment that represents a segment in [document_text][google.cloud.automl.v1beta1.Document.document_text].

page_number: i32

Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts from 1.

bounding_poly: Option<BoundingPoly>

The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page. Contains exactly 4

[normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices] and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are relative to the page. Coordinates are based on top-left as point (0,0).

text_segment_type: i32

The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.

Implementations

impl Layout[src]

pub fn text_segment_type(&self) -> TextSegmentType[src]

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

pub fn set_text_segment_type(&mut self, value: TextSegmentType)[src]

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