pub enum CacheWrite {
Merged,
Created,
Refused {
patch: Value,
},
}Expand description
What EntityCache::upsert_with_append did with a patch.
Variants§
Merged
Merged into the entity the cache already held.
Created
Stored as a new entity: the patch created it, or its source does not say and the cache has no record of the key.
Refused
Not stored. The cache does not hold the key and the patch carries only the fields that changed — part of an entity, not one: its source marks creations and did not mark this one, or the cache evicted the key. The patch is handed back for callers that hold a full copy elsewhere.
Trait Implementations§
Source§impl Clone for CacheWrite
impl Clone for CacheWrite
Source§impl Debug for CacheWrite
impl Debug for CacheWrite
Source§impl PartialEq for CacheWrite
impl PartialEq for CacheWrite
impl StructuralPartialEq for CacheWrite
Auto Trait Implementations§
impl Freeze for CacheWrite
impl RefUnwindSafe for CacheWrite
impl Send for CacheWrite
impl Sync for CacheWrite
impl Unpin for CacheWrite
impl UnsafeUnpin for CacheWrite
impl UnwindSafe for CacheWrite
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