Struct aws_sdk_comprehend::types::BlockReference
source · #[non_exhaustive]pub struct BlockReference {
pub block_id: Option<String>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
pub child_blocks: Option<Vec<ChildBlock>>,
}
Expand description
A reference to a block.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.block_id: Option<String>
Unique identifier for the block.
begin_offset: Option<i32>
Offset of the start of the block within its parent block.
end_offset: Option<i32>
Offset of the end of the block within its parent block.
child_blocks: Option<Vec<ChildBlock>>
List of child blocks within this block.
Implementations§
source§impl BlockReference
impl BlockReference
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn begin_offset(&self) -> Option<i32>
Offset of the start of the block within its parent block.
sourcepub fn end_offset(&self) -> Option<i32>
pub fn end_offset(&self) -> Option<i32>
Offset of the end of the block within its parent block.
sourcepub fn child_blocks(&self) -> &[ChildBlock]
pub fn child_blocks(&self) -> &[ChildBlock]
List of child blocks within this block.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .child_blocks.is_none()
.
source§impl BlockReference
impl BlockReference
sourcepub fn builder() -> BlockReferenceBuilder
pub fn builder() -> BlockReferenceBuilder
Creates a new builder-style object to manufacture BlockReference
.
Trait Implementations§
source§impl Clone for BlockReference
impl Clone for BlockReference
source§fn clone(&self) -> BlockReference
fn clone(&self) -> BlockReference
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 BlockReference
impl Debug for BlockReference
source§impl PartialEq for BlockReference
impl PartialEq for BlockReference
source§fn eq(&self, other: &BlockReference) -> bool
fn eq(&self, other: &BlockReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BlockReference
Auto Trait Implementations§
impl RefUnwindSafe for BlockReference
impl Send for BlockReference
impl Sync for BlockReference
impl Unpin for BlockReference
impl UnwindSafe for BlockReference
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>
Creates a shared type from an unshared type.