pub struct DocChange {
pub coll: String,
pub id: String,
pub kind: ChangeKind,
pub before: Option<Value>,
pub after: Option<Value>,
pub fields: Option<FieldDelta>,
pub temporal: Option<TemporalDelta>,
}Expand description
One document whose visible state differs between the two sequence points.
Fields§
§coll: String§id: String§kind: ChangeKind§before: Option<Value>The payload as of from_seq. None for Added.
after: Option<Value>The payload as of to_seq. None for Removed.
fields: Option<FieldDelta>Key-level detail, for Modified only, and only when BOTH payloads are
JSON objects. A scalar or an array has no keys, and inventing field
names for one ("0", "1", …) would report a structure the document
does not have — before/after already say everything true there.
temporal: Option<TemporalDelta>Validity-window movement, for Modified only, and only when the window
moved.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocChange
impl<'de> Deserialize<'de> for DocChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DocChange
Auto Trait Implementations§
impl Freeze for DocChange
impl RefUnwindSafe for DocChange
impl Send for DocChange
impl Sync for DocChange
impl Unpin for DocChange
impl UnsafeUnpin for DocChange
impl UnwindSafe for DocChange
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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