Struct aws_sdk_comprehend::types::builders::DocumentClassBuilder
source · #[non_exhaustive]pub struct DocumentClassBuilder { /* private fields */ }
Expand description
A builder for DocumentClass
.
Implementations§
source§impl DocumentClassBuilder
impl DocumentClassBuilder
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
The confidence score that Amazon Comprehend has this class correctly attributed.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
The confidence score that Amazon Comprehend has this class correctly attributed.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_score(&self) -> &Option<f32>
The confidence score that Amazon Comprehend has this class correctly attributed.
sourcepub fn page(self, input: i32) -> Self
pub fn page(self, input: i32) -> Self
Page number in the input document. This field is present in the response only if your request includes the Byte
parameter.
sourcepub fn set_page(self, input: Option<i32>) -> Self
pub fn set_page(self, input: Option<i32>) -> Self
Page number in the input document. This field is present in the response only if your request includes the Byte
parameter.
sourcepub fn get_page(&self) -> &Option<i32>
pub fn get_page(&self) -> &Option<i32>
Page number in the input document. This field is present in the response only if your request includes the Byte
parameter.
sourcepub fn build(self) -> DocumentClass
pub fn build(self) -> DocumentClass
Consumes the builder and constructs a DocumentClass
.
Trait Implementations§
source§impl Clone for DocumentClassBuilder
impl Clone for DocumentClassBuilder
source§fn clone(&self) -> DocumentClassBuilder
fn clone(&self) -> DocumentClassBuilder
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 DocumentClassBuilder
impl Debug for DocumentClassBuilder
source§impl Default for DocumentClassBuilder
impl Default for DocumentClassBuilder
source§fn default() -> DocumentClassBuilder
fn default() -> DocumentClassBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DocumentClassBuilder
impl PartialEq for DocumentClassBuilder
source§fn eq(&self, other: &DocumentClassBuilder) -> bool
fn eq(&self, other: &DocumentClassBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentClassBuilder
Auto Trait Implementations§
impl Freeze for DocumentClassBuilder
impl RefUnwindSafe for DocumentClassBuilder
impl Send for DocumentClassBuilder
impl Sync for DocumentClassBuilder
impl Unpin for DocumentClassBuilder
impl UnwindSafe for DocumentClassBuilder
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.