[][src]Struct gcp_client::google::cloud::documentai::v1beta2::document::page_anchor::PageRef

pub struct PageRef {
    pub page: i64,
    pub layout_type: i32,
    pub layout_id: String,
}

Represents a weak reference to a page element within a document.

Fields

page: i64

Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element

layout_type: i32

Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.

layout_id: String

Optional. The [Page.Layout.id][google.cloud.documentai.v1beta2.Document.Page.Layout.id] on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.

Implementations

impl PageRef[src]

pub fn layout_type(&self) -> LayoutType[src]

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

pub fn set_layout_type(&mut self, value: LayoutType)[src]

Sets layout_type to the provided enum value.

Trait Implementations

impl Clone for PageRef[src]

impl Debug for PageRef[src]

impl Default for PageRef[src]

impl Message for PageRef[src]

impl PartialEq<PageRef> for PageRef[src]

impl StructuralPartialEq for PageRef[src]

Auto Trait Implementations

impl RefUnwindSafe for PageRef

impl Send for PageRef

impl Sync for PageRef

impl Unpin for PageRef

impl UnwindSafe for PageRef

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]