Struct aws_sdk_kinesis::types::ChildShard
source · #[non_exhaustive]pub struct ChildShard {
pub shard_id: String,
pub parent_shards: Vec<String>,
pub hash_key_range: Option<HashKeyRange>,
}Expand description
Output parameter of the GetRecords API. The existing child shard of the current shard.
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.shard_id: StringThe shard ID of the existing child shard of the current shard.
parent_shards: Vec<String>The current shard that is the parent of the existing child shard.
hash_key_range: Option<HashKeyRange>The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
Implementations§
source§impl ChildShard
impl ChildShard
sourcepub fn parent_shards(&self) -> &[String]
pub fn parent_shards(&self) -> &[String]
The current shard that is the parent of the existing child shard.
sourcepub fn hash_key_range(&self) -> Option<&HashKeyRange>
pub fn hash_key_range(&self) -> Option<&HashKeyRange>
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
source§impl ChildShard
impl ChildShard
sourcepub fn builder() -> ChildShardBuilder
pub fn builder() -> ChildShardBuilder
Creates a new builder-style object to manufacture ChildShard.
Trait Implementations§
source§impl Clone for ChildShard
impl Clone for ChildShard
source§fn clone(&self) -> ChildShard
fn clone(&self) -> ChildShard
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 ChildShard
impl Debug for ChildShard
source§impl PartialEq for ChildShard
impl PartialEq for ChildShard
source§fn eq(&self, other: &ChildShard) -> bool
fn eq(&self, other: &ChildShard) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ChildShard
Auto Trait Implementations§
impl RefUnwindSafe for ChildShard
impl Send for ChildShard
impl Sync for ChildShard
impl Unpin for ChildShard
impl UnwindSafe for ChildShard
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.