#[non_exhaustive]pub struct AnalyzeDocumentOutput {
pub document_metadata: Option<DocumentMetadata>,
pub blocks: Option<Vec<Block>>,
pub human_loop_activation_output: Option<HumanLoopActivationOutput>,
pub analyze_document_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 analyzed document. An example is the number of pages.
blocks: Option<Vec<Block>>
The items that are detected and analyzed by AnalyzeDocument
.
human_loop_activation_output: Option<HumanLoopActivationOutput>
Shows the results of the human in the loop evaluation.
analyze_document_model_version: Option<String>
The version of the model used to analyze the document.
Implementations§
source§impl AnalyzeDocumentOutput
impl AnalyzeDocumentOutput
sourcepub fn document_metadata(&self) -> Option<&DocumentMetadata>
pub fn document_metadata(&self) -> Option<&DocumentMetadata>
Metadata about the analyzed document. An example is the number of pages.
sourcepub fn blocks(&self) -> &[Block]
pub fn blocks(&self) -> &[Block]
The items that are detected and analyzed by AnalyzeDocument
.
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 human_loop_activation_output(&self) -> Option<&HumanLoopActivationOutput>
pub fn human_loop_activation_output(&self) -> Option<&HumanLoopActivationOutput>
Shows the results of the human in the loop evaluation.
sourcepub fn analyze_document_model_version(&self) -> Option<&str>
pub fn analyze_document_model_version(&self) -> Option<&str>
The version of the model used to analyze the document.
source§impl AnalyzeDocumentOutput
impl AnalyzeDocumentOutput
sourcepub fn builder() -> AnalyzeDocumentOutputBuilder
pub fn builder() -> AnalyzeDocumentOutputBuilder
Creates a new builder-style object to manufacture AnalyzeDocumentOutput
.
Trait Implementations§
source§impl Clone for AnalyzeDocumentOutput
impl Clone for AnalyzeDocumentOutput
source§fn clone(&self) -> AnalyzeDocumentOutput
fn clone(&self) -> AnalyzeDocumentOutput
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 AnalyzeDocumentOutput
impl Debug for AnalyzeDocumentOutput
source§impl PartialEq for AnalyzeDocumentOutput
impl PartialEq for AnalyzeDocumentOutput
source§fn eq(&self, other: &AnalyzeDocumentOutput) -> bool
fn eq(&self, other: &AnalyzeDocumentOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for AnalyzeDocumentOutput
impl RequestId for AnalyzeDocumentOutput
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 AnalyzeDocumentOutput
Auto Trait Implementations§
impl RefUnwindSafe for AnalyzeDocumentOutput
impl Send for AnalyzeDocumentOutput
impl Sync for AnalyzeDocumentOutput
impl Unpin for AnalyzeDocumentOutput
impl UnwindSafe for AnalyzeDocumentOutput
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>
Creates a shared type from an unshared type.