pub struct CursorStatus {
pub state: &'static str,
pub version: Option<i64>,
pub value: Option<Value>,
pub updated_at: Option<String>,
pub age_seconds: Option<f64>,
}Expand description
The durable cursor state of a source, if known.
Fields§
§state: &'static str"unknown" (no database read), "never_advanced" (no row yet), or
"advanced" (a watermark exists).
version: Option<i64>The compare-and-swap generation counter (present only when advanced).
value: Option<Value>The opaque cursor value (present only when advanced).
updated_at: Option<String>Last-advance timestamp (present only when advanced).
age_seconds: Option<f64>Seconds since the last advance — the staleness/lag (present only when advanced).
Trait Implementations§
Source§impl Debug for CursorStatus
impl Debug for CursorStatus
Source§impl PartialEq for CursorStatus
impl PartialEq for CursorStatus
Source§impl Serialize for CursorStatus
impl Serialize for CursorStatus
impl StructuralPartialEq for CursorStatus
Auto Trait Implementations§
impl Freeze for CursorStatus
impl RefUnwindSafe for CursorStatus
impl Send for CursorStatus
impl Sync for CursorStatus
impl Unpin for CursorStatus
impl UnsafeUnpin for CursorStatus
impl UnwindSafe for CursorStatus
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>
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 more