pub enum ViewEffect {
NoEffect,
Add {
key: String,
},
Remove {
key: String,
},
Update {
key: String,
},
Replace {
old_key: String,
new_key: String,
},
}Expand description
Result of evaluating whether an update affects a materialized view
Variants§
NoEffect
Update does not affect the view result
Add
Entity should be added to the view result
Remove
Entity should be removed from the view result
Update
Entity in view was updated
Replace
Entity replaces another in the view (for single-result views)
Trait Implementations§
Source§impl Clone for ViewEffect
impl Clone for ViewEffect
Source§fn clone(&self) -> ViewEffect
fn clone(&self) -> ViewEffect
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 ViewEffect
impl Debug for ViewEffect
Source§impl PartialEq for ViewEffect
impl PartialEq for ViewEffect
impl StructuralPartialEq for ViewEffect
Auto Trait Implementations§
impl Freeze for ViewEffect
impl RefUnwindSafe for ViewEffect
impl Send for ViewEffect
impl Sync for ViewEffect
impl Unpin for ViewEffect
impl UnwindSafe for ViewEffect
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