pub struct DocumentChange {
pub document: Option<Document>,
pub removed_target_ids: Option<Vec<i32>>,
pub target_ids: Option<Vec<i32>>,
}
Expand description
A Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected. For PipelineQueryTargets, document
will be in the new pipeline format, For a Listen stream with both QueryTargets and PipelineQueryTargets present, if a document matches both types of queries, then a separate DocumentChange messages will be sent out one for each set.
This type is not used in any activity, and only used as part of another schema.
Fields§
§document: Option<Document>
The new state of the Document. If mask
is set, contains only fields that were updated or added.
removed_target_ids: Option<Vec<i32>>
A set of target IDs for targets that no longer match this document.
target_ids: Option<Vec<i32>>
A set of target IDs of targets that match this document.
Trait Implementations§
Source§impl Clone for DocumentChange
impl Clone for DocumentChange
Source§fn clone(&self) -> DocumentChange
fn clone(&self) -> DocumentChange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DocumentChange
impl Debug for DocumentChange
Source§impl Default for DocumentChange
impl Default for DocumentChange
Source§fn default() -> DocumentChange
fn default() -> DocumentChange
Source§impl<'de> Deserialize<'de> for DocumentChange
impl<'de> Deserialize<'de> for DocumentChange
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>,
Source§impl Serialize for DocumentChange
impl Serialize for DocumentChange
impl Part for DocumentChange
Auto Trait Implementations§
impl Freeze for DocumentChange
impl RefUnwindSafe for DocumentChange
impl Send for DocumentChange
impl Sync for DocumentChange
impl Unpin for DocumentChange
impl UnwindSafe for DocumentChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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