#[non_exhaustive]pub struct PartitionEndRecord {
pub end_timestamp: Option<Timestamp>,
pub record_sequence: String,
pub partition_token: String,
/* private fields */
}Expand description
A partition end record serves as a notification that the client should stop reading the partition. No further records are expected to be retrieved on it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.end_timestamp: Option<Timestamp>End timestamp at which the change stream partition is terminated. All changes generated by this partition will have timestamps <= end_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same partition. PartitionEndRecord is the last record returned for a partition.
record_sequence: StringRecord sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition. To guarantee ordered processing, the reader should process records (of potentially different types) in record_sequence order for a specific timestamp in the same partition.
partition_token: StringUnique partition identifier describing the terminated change stream partition. partition_token is equal to the partition token of the change stream partition currently queried to return this PartitionEndRecord.
Implementations§
Source§impl PartitionEndRecord
impl PartitionEndRecord
Sourcepub fn set_end_timestamp<T>(self, v: T) -> Self
pub fn set_end_timestamp<T>(self, v: T) -> Self
Sets the value of end_timestamp.
Sourcepub fn set_or_clear_end_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_timestamp.
Sourcepub fn set_record_sequence<T: Into<String>>(self, v: T) -> Self
pub fn set_record_sequence<T: Into<String>>(self, v: T) -> Self
Sets the value of record_sequence.
Sourcepub fn set_partition_token<T: Into<String>>(self, v: T) -> Self
pub fn set_partition_token<T: Into<String>>(self, v: T) -> Self
Sets the value of partition_token.
Trait Implementations§
Source§impl Clone for PartitionEndRecord
impl Clone for PartitionEndRecord
Source§fn clone(&self) -> PartitionEndRecord
fn clone(&self) -> PartitionEndRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PartitionEndRecord
impl Debug for PartitionEndRecord
Source§impl Default for PartitionEndRecord
impl Default for PartitionEndRecord
Source§fn default() -> PartitionEndRecord
fn default() -> PartitionEndRecord
Source§impl Message for PartitionEndRecord
impl Message for PartitionEndRecord
Source§impl PartialEq for PartitionEndRecord
impl PartialEq for PartitionEndRecord
Source§fn eq(&self, other: &PartitionEndRecord) -> bool
fn eq(&self, other: &PartitionEndRecord) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionEndRecord
Auto Trait Implementations§
impl Freeze for PartitionEndRecord
impl RefUnwindSafe for PartitionEndRecord
impl Send for PartitionEndRecord
impl Sync for PartitionEndRecord
impl Unpin for PartitionEndRecord
impl UnsafeUnpin for PartitionEndRecord
impl UnwindSafe for PartitionEndRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request