Struct aws_sdk_textract::types::builders::QueryBuilder
source · #[non_exhaustive]pub struct QueryBuilder { /* private fields */ }
Expand description
A builder for Query
.
Implementations§
source§impl QueryBuilder
impl QueryBuilder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
This field is required.sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
sourcepub fn get_text(&self) -> &Option<String>
pub fn get_text(&self) -> &Option<String>
Question that Amazon Textract will apply to the document. An example would be "What is the customer's SSN?"
sourcepub fn alias(self, input: impl Into<String>) -> Self
pub fn alias(self, input: impl Into<String>) -> Self
Alias attached to the query, for ease of location.
sourcepub fn set_alias(self, input: Option<String>) -> Self
pub fn set_alias(self, input: Option<String>) -> Self
Alias attached to the query, for ease of location.
sourcepub fn pages(self, input: impl Into<String>) -> Self
pub fn pages(self, input: impl Into<String>) -> Self
Appends an item to pages
.
To override the contents of this collection use set_pages
.
Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a list of rules for using this parameter.
-
If a page is not specified, it is set to
["1"]
by default. -
The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. -
When using * to indicate all pages, it must be the only element in the list.
-
You can use page intervals, such as
[“1-3”, “1-1”, “4-*”]
. Where*
indicates last page of document. -
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
sourcepub fn set_pages(self, input: Option<Vec<String>>) -> Self
pub fn set_pages(self, input: Option<Vec<String>>) -> Self
Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a list of rules for using this parameter.
-
If a page is not specified, it is set to
["1"]
by default. -
The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. -
When using * to indicate all pages, it must be the only element in the list.
-
You can use page intervals, such as
[“1-3”, “1-1”, “4-*”]
. Where*
indicates last page of document. -
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
sourcepub fn get_pages(&self) -> &Option<Vec<String>>
pub fn get_pages(&self) -> &Option<Vec<String>>
Pages is a parameter that the user inputs to specify which pages to apply a query to. The following is a list of rules for using this parameter.
-
If a page is not specified, it is set to
["1"]
by default. -
The following characters are allowed in the parameter's string:
0 1 2 3 4 5 6 7 8 9 - *
. No whitespace is allowed. -
When using * to indicate all pages, it must be the only element in the list.
-
You can use page intervals, such as
[“1-3”, “1-1”, “4-*”]
. Where*
indicates last page of document. -
Specified pages must be greater than 0 and less than or equal to the number of pages in the document.
Trait Implementations§
source§impl Clone for QueryBuilder
impl Clone for QueryBuilder
source§fn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryBuilder
impl Debug for QueryBuilder
source§impl Default for QueryBuilder
impl Default for QueryBuilder
source§fn default() -> QueryBuilder
fn default() -> QueryBuilder
source§impl PartialEq for QueryBuilder
impl PartialEq for QueryBuilder
source§fn eq(&self, other: &QueryBuilder) -> bool
fn eq(&self, other: &QueryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QueryBuilder
Auto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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
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>
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>
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 more