pub enum QueryUpdate {
Added(Document),
Removed(Document),
Modified {
old: Document,
new: Document,
},
}Expand description
Update notification for a reactive query
Variants§
Added(Document)
A new document was added to the query results
Removed(Document)
A document was removed from the query results
Modified
A document in the results was modified
Implementations§
Source§impl QueryUpdate
impl QueryUpdate
Sourcepub fn update_type(&self) -> UpdateType
pub fn update_type(&self) -> UpdateType
Get the update type
Trait Implementations§
Source§impl Clone for QueryUpdate
impl Clone for QueryUpdate
Source§fn clone(&self) -> QueryUpdate
fn clone(&self) -> QueryUpdate
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryUpdate
impl Debug for QueryUpdate
Source§impl<'de> Deserialize<'de> for QueryUpdate
impl<'de> Deserialize<'de> for QueryUpdate
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
Auto Trait Implementations§
impl Freeze for QueryUpdate
impl RefUnwindSafe for QueryUpdate
impl Send for QueryUpdate
impl Sync for QueryUpdate
impl Unpin for QueryUpdate
impl UnwindSafe for QueryUpdate
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