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 ==
.