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 that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.
sourcepub fn set_type(self, input: Option<RelationshipType>) -> Self
pub fn set_type(self, input: Option<RelationshipType>) -> Self
The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.
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 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<RelationshipBuilder> for RelationshipBuilder
impl PartialEq<RelationshipBuilder> 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 ==.