pub struct CheckpointMetadata<'a> {
shard_id: &'a str,
sequence_number: &'a str,
}
Expand description
Metadata associated with a checkpoint operation
This struct provides access to checkpoint metadata through reference-based accessors, providing context about the checkpoint operation such as shard ID and sequence number.
§Examples
use go_zoom_kinesis::processor::CheckpointMetadata;
fn validate_checkpoint(metadata: &CheckpointMetadata) {
println!("Checkpointing shard {} at sequence {}",
metadata.shard_id(),
metadata.sequence_number()
);
// Perform checkpoint validation
if metadata.sequence_number().starts_with("49579") {
println!("Checkpoint at expected sequence range");
}
}
Fields§
§shard_id: &'a str
ID of the shard being checkpointed
sequence_number: &'a str
Sequence number being checkpointed
Implementations§
source§impl CheckpointMetadata<'_>
impl CheckpointMetadata<'_>
Trait Implementations§
source§impl<'a> Clone for CheckpointMetadata<'a>
impl<'a> Clone for CheckpointMetadata<'a>
source§fn clone(&self) -> CheckpointMetadata<'a>
fn clone(&self) -> CheckpointMetadata<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CheckpointMetadata<'a>
impl<'a> RefUnwindSafe for CheckpointMetadata<'a>
impl<'a> Send for CheckpointMetadata<'a>
impl<'a> Sync for CheckpointMetadata<'a>
impl<'a> Unpin for CheckpointMetadata<'a>
impl<'a> UnwindSafe for CheckpointMetadata<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.