#[non_exhaustive]pub struct DetectDocumentTextOutput {
pub document_metadata: Option<DocumentMetadata>,
pub blocks: Option<Vec<Block>>,
pub detect_document_text_model_version: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.document_metadata: Option<DocumentMetadata>
Metadata about the document. It contains the number of pages that are detected in the document.
blocks: Option<Vec<Block>>
An array of Block
objects that contain the text that's detected in the document.
detect_document_text_model_version: Option<String>
Implementations§
source§impl DetectDocumentTextOutput
impl DetectDocumentTextOutput
sourcepub fn document_metadata(&self) -> Option<&DocumentMetadata>
pub fn document_metadata(&self) -> Option<&DocumentMetadata>
Metadata about the document. It contains the number of pages that are detected in the document.
sourcepub fn blocks(&self) -> &[Block]
pub fn blocks(&self) -> &[Block]
An array of Block
objects that contain the text that's detected in the document.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .blocks.is_none()
.
sourcepub fn detect_document_text_model_version(&self) -> Option<&str>
pub fn detect_document_text_model_version(&self) -> Option<&str>
source§impl DetectDocumentTextOutput
impl DetectDocumentTextOutput
sourcepub fn builder() -> DetectDocumentTextOutputBuilder
pub fn builder() -> DetectDocumentTextOutputBuilder
Creates a new builder-style object to manufacture DetectDocumentTextOutput
.
Trait Implementations§
source§impl Clone for DetectDocumentTextOutput
impl Clone for DetectDocumentTextOutput
source§fn clone(&self) -> DetectDocumentTextOutput
fn clone(&self) -> DetectDocumentTextOutput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DetectDocumentTextOutput
impl Debug for DetectDocumentTextOutput
source§impl PartialEq for DetectDocumentTextOutput
impl PartialEq for DetectDocumentTextOutput
source§fn eq(&self, other: &DetectDocumentTextOutput) -> bool
fn eq(&self, other: &DetectDocumentTextOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DetectDocumentTextOutput
impl RequestId for DetectDocumentTextOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for DetectDocumentTextOutput
Auto Trait Implementations§
impl Freeze for DetectDocumentTextOutput
impl RefUnwindSafe for DetectDocumentTextOutput
impl Send for DetectDocumentTextOutput
impl Sync for DetectDocumentTextOutput
impl Unpin for DetectDocumentTextOutput
impl UnwindSafe for DetectDocumentTextOutput
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.