pub struct CascadeEntities {
pub updated: Vec<EntityKey>,
pub deleted: Vec<EntityKey>,
}Expand description
Cascade entities extracted from a GraphQL mutation response.
Represents all entities affected by a mutation (both updated and deleted), used to determine which caches need invalidation.
Fields§
§updated: Vec<EntityKey>Updated entities - entries that were modified or created
deleted: Vec<EntityKey>Deleted entities - entries that were removed
Implementations§
Source§impl CascadeEntities
impl CascadeEntities
Sourcepub fn new(updated: Vec<EntityKey>, deleted: Vec<EntityKey>) -> Self
pub fn new(updated: Vec<EntityKey>, deleted: Vec<EntityKey>) -> Self
Create new cascade entities with separate updated and deleted lists.
Sourcepub fn all_affected(&self) -> Vec<EntityKey>
pub fn all_affected(&self) -> Vec<EntityKey>
Get all affected entities (both updated and deleted).
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if cascade has any affected entities.
Trait Implementations§
Source§impl Clone for CascadeEntities
impl Clone for CascadeEntities
Source§fn clone(&self) -> CascadeEntities
fn clone(&self) -> CascadeEntities
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 CascadeEntities
impl Debug for CascadeEntities
Source§impl PartialEq for CascadeEntities
impl PartialEq for CascadeEntities
impl Eq for CascadeEntities
impl StructuralPartialEq for CascadeEntities
Auto Trait Implementations§
impl Freeze for CascadeEntities
impl RefUnwindSafe for CascadeEntities
impl Send for CascadeEntities
impl Sync for CascadeEntities
impl Unpin for CascadeEntities
impl UnsafeUnpin for CascadeEntities
impl UnwindSafe for CascadeEntities
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.