pub struct StreamPage {
pub records: Vec<Value>,
pub bookmark: Option<Value>,
}Expand description
One page emitted by Source::stream_pages.
records is the chunk of records for this page. bookmark is Some only
when the source has a durable checkpoint to advance — most sources emit
Some only on the final page (max-replication-value semantics); CDC-style
sources emit Some per committed transaction. The pipeline flushes the
sink and persists the bookmark every time a page carries one, so a
mid-stream crash never advances past records the sink has not durably
written.
Fields§
§records: Vec<Value>Records to write to the sink for this page.
bookmark: Option<Value>Optional bookmark to checkpoint after this page is durably written.
Trait Implementations§
Source§impl Clone for StreamPage
impl Clone for StreamPage
Source§fn clone(&self) -> StreamPage
fn clone(&self) -> StreamPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamPage
impl Debug for StreamPage
Source§impl Default for StreamPage
impl Default for StreamPage
Source§fn default() -> StreamPage
fn default() -> StreamPage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamPage
impl RefUnwindSafe for StreamPage
impl Send for StreamPage
impl Sync for StreamPage
impl Unpin for StreamPage
impl UnsafeUnpin for StreamPage
impl UnwindSafe for StreamPage
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