Struct aws_sdk_textract::types::builders::RelationshipBuilder
source · #[non_exhaustive]pub struct RelationshipBuilder { /* private fields */ }
Expand description
A builder for Relationship
.
Implementations§
source§impl RelationshipBuilder
impl RelationshipBuilder
sourcepub fn type(self, input: RelationshipType) -> Self
pub fn type(self, input: RelationshipType) -> Self
The type of relationship between the blocks in the IDs array and the current block. The following list describes the relationship types that can be returned.
-
VALUE - A list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair.
-
CHILD - A list of IDs that identify blocks found within the current block object. For example, WORD blocks have a CHILD relationship to the LINE block type.
-
MERGED_CELL - A list of IDs that identify each of the MERGED_CELL block types in a table.
-
ANSWER - A list that contains the ID of the QUERY_RESULT block that’s associated with the corresponding QUERY block.
-
TABLE - A list of IDs that identify associated TABLE block types.
-
TABLE_TITLE - A list that contains the ID for the TABLE_TITLE block type in a table.
-
TABLE_FOOTER - A list of IDs that identify the TABLE_FOOTER block types in a table.
sourcepub fn set_type(self, input: Option<RelationshipType>) -> Self
pub fn set_type(self, input: Option<RelationshipType>) -> Self
The type of relationship between the blocks in the IDs array and the current block. The following list describes the relationship types that can be returned.
-
VALUE - A list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair.
-
CHILD - A list of IDs that identify blocks found within the current block object. For example, WORD blocks have a CHILD relationship to the LINE block type.
-
MERGED_CELL - A list of IDs that identify each of the MERGED_CELL block types in a table.
-
ANSWER - A list that contains the ID of the QUERY_RESULT block that’s associated with the corresponding QUERY block.
-
TABLE - A list of IDs that identify associated TABLE block types.
-
TABLE_TITLE - A list that contains the ID for the TABLE_TITLE block type in a table.
-
TABLE_FOOTER - A list of IDs that identify the TABLE_FOOTER block types in a table.
sourcepub fn get_type(&self) -> &Option<RelationshipType>
pub fn get_type(&self) -> &Option<RelationshipType>
The type of relationship between the blocks in the IDs array and the current block. The following list describes the relationship types that can be returned.
-
VALUE - A list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair.
-
CHILD - A list of IDs that identify blocks found within the current block object. For example, WORD blocks have a CHILD relationship to the LINE block type.
-
MERGED_CELL - A list of IDs that identify each of the MERGED_CELL block types in a table.
-
ANSWER - A list that contains the ID of the QUERY_RESULT block that’s associated with the corresponding QUERY block.
-
TABLE - A list of IDs that identify associated TABLE block types.
-
TABLE_TITLE - A list that contains the ID for the TABLE_TITLE block type in a table.
-
TABLE_FOOTER - A list of IDs that identify the TABLE_FOOTER block types in a table.
sourcepub fn ids(self, input: impl Into<String>) -> Self
pub fn ids(self, input: impl Into<String>) -> Self
Appends an item to ids
.
To override the contents of this collection use set_ids
.
An array of IDs for related blocks. You can get the type of the relationship from the Type
element.
sourcepub fn set_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_ids(self, input: Option<Vec<String>>) -> Self
An array of IDs for related blocks. You can get the type of the relationship from the Type
element.
sourcepub fn get_ids(&self) -> &Option<Vec<String>>
pub fn get_ids(&self) -> &Option<Vec<String>>
An array of IDs for related blocks. You can get the type of the relationship from the Type
element.
sourcepub fn build(self) -> Relationship
pub fn build(self) -> Relationship
Consumes the builder and constructs a Relationship
.
Trait Implementations§
source§impl Clone for RelationshipBuilder
impl Clone for RelationshipBuilder
source§fn clone(&self) -> RelationshipBuilder
fn clone(&self) -> RelationshipBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RelationshipBuilder
impl Debug for RelationshipBuilder
source§impl Default for RelationshipBuilder
impl Default for RelationshipBuilder
source§fn default() -> RelationshipBuilder
fn default() -> RelationshipBuilder
source§impl PartialEq for RelationshipBuilder
impl PartialEq for RelationshipBuilder
source§fn eq(&self, other: &RelationshipBuilder) -> bool
fn eq(&self, other: &RelationshipBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RelationshipBuilder
Auto Trait Implementations§
impl Freeze for RelationshipBuilder
impl RefUnwindSafe for RelationshipBuilder
impl Send for RelationshipBuilder
impl Sync for RelationshipBuilder
impl Unpin for RelationshipBuilder
impl UnwindSafe for RelationshipBuilder
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