#[non_exhaustive]pub struct PartitionStartRecord {
pub start_timestamp: Option<Timestamp>,
pub record_sequence: String,
pub partition_tokens: Vec<String>,
/* private fields */
}Expand description
A partition start record serves as a notification that the client should schedule the partitions to be queried. PartitionStartRecord returns information about one or more partitions.
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.start_timestamp: Option<Timestamp>Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp. DataChangeRecord.commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.commit_timestamps, and PartitionEndRecord.end_timestamps can have the same value in the same 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_tokens: Vec<String>Unique partition identifiers to be used in queries.
Implementations§
Source§impl PartitionStartRecord
impl PartitionStartRecord
Sourcepub fn set_start_timestamp<T>(self, v: T) -> Self
pub fn set_start_timestamp<T>(self, v: T) -> Self
Sets the value of start_timestamp.
Sourcepub fn set_or_clear_start_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_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_tokens<T, V>(self, v: T) -> Self
pub fn set_partition_tokens<T, V>(self, v: T) -> Self
Sets the value of partition_tokens.
Trait Implementations§
Source§impl Clone for PartitionStartRecord
impl Clone for PartitionStartRecord
Source§fn clone(&self) -> PartitionStartRecord
fn clone(&self) -> PartitionStartRecord
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 PartitionStartRecord
impl Debug for PartitionStartRecord
Source§impl Default for PartitionStartRecord
impl Default for PartitionStartRecord
Source§fn default() -> PartitionStartRecord
fn default() -> PartitionStartRecord
Source§impl Message for PartitionStartRecord
impl Message for PartitionStartRecord
Source§impl PartialEq for PartitionStartRecord
impl PartialEq for PartitionStartRecord
Source§fn eq(&self, other: &PartitionStartRecord) -> bool
fn eq(&self, other: &PartitionStartRecord) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionStartRecord
Auto Trait Implementations§
impl Freeze for PartitionStartRecord
impl RefUnwindSafe for PartitionStartRecord
impl Send for PartitionStartRecord
impl Sync for PartitionStartRecord
impl Unpin for PartitionStartRecord
impl UnsafeUnpin for PartitionStartRecord
impl UnwindSafe for PartitionStartRecord
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