Enum google_api_proto::google::cloud::documentai::v1::document::page_anchor::page_ref::LayoutType
source · #[repr(i32)]pub enum LayoutType {
Unspecified = 0,
Block = 1,
Paragraph = 2,
Line = 3,
Token = 4,
VisualElement = 5,
Table = 6,
FormField = 7,
}
Expand description
The type of layout that is being referenced.
Variants§
Unspecified = 0
Layout Unspecified.
Block = 1
References a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element.
Paragraph = 2
References a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element.
Line = 3
References a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element.
Token = 4
References a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element.
VisualElement = 5
References a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element.
Table = 6
Refrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element.
FormField = 7
References a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element.
Implementations§
source§impl LayoutType
impl LayoutType
source§impl LayoutType
impl LayoutType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for LayoutType
impl Clone for LayoutType
source§fn clone(&self) -> LayoutType
fn clone(&self) -> LayoutType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LayoutType
impl Debug for LayoutType
source§impl Default for LayoutType
impl Default for LayoutType
source§fn default() -> LayoutType
fn default() -> LayoutType
source§impl From<LayoutType> for i32
impl From<LayoutType> for i32
source§fn from(value: LayoutType) -> i32
fn from(value: LayoutType) -> i32
source§impl Hash for LayoutType
impl Hash for LayoutType
source§impl Ord for LayoutType
impl Ord for LayoutType
source§fn cmp(&self, other: &LayoutType) -> Ordering
fn cmp(&self, other: &LayoutType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LayoutType
impl PartialEq for LayoutType
source§fn eq(&self, other: &LayoutType) -> bool
fn eq(&self, other: &LayoutType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LayoutType
impl PartialOrd for LayoutType
source§fn partial_cmp(&self, other: &LayoutType) -> Option<Ordering>
fn partial_cmp(&self, other: &LayoutType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LayoutType
impl TryFrom<i32> for LayoutType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<LayoutType, DecodeError>
fn try_from(value: i32) -> Result<LayoutType, DecodeError>
impl Copy for LayoutType
impl Eq for LayoutType
impl StructuralPartialEq for LayoutType
Auto Trait Implementations§
impl Freeze for LayoutType
impl RefUnwindSafe for LayoutType
impl Send for LayoutType
impl Sync for LayoutType
impl Unpin for LayoutType
impl UnwindSafe for LayoutType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request