pub enum PutOutcome {
Inserted,
Updated,
Upserted,
Deduped,
}Expand description
Outcome of writing a single node or edge.
Inserted and Updated are precise only for stores that can cheaply
distinguish create from replace. Remote upsert-oriented backends commonly
return Upserted because doing otherwise would require an extra read or a
backend-specific write primitive. Portable callers should treat all three
written outcomes as success and should not rely on Inserted or Updated
unless they are intentionally targeting a backend that documents those
precise outcomes.
Variants§
Inserted
The element did not exist before and was created.
Updated
An element with the same identity existed and was overwritten or merged.
Upserted
The element was written by an upsert and the backend cannot tell whether it was an insert or an update.
Deduped
The element was dropped by a dedupe policy and nothing was written.
Implementations§
Trait Implementations§
Source§impl Clone for PutOutcome
impl Clone for PutOutcome
Source§fn clone(&self) -> PutOutcome
fn clone(&self) -> PutOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PutOutcome
Source§impl Debug for PutOutcome
impl Debug for PutOutcome
Source§impl<'de> Deserialize<'de> for PutOutcome
impl<'de> Deserialize<'de> for PutOutcome
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>,
impl Eq for PutOutcome
Source§impl PartialEq for PutOutcome
impl PartialEq for PutOutcome
Source§fn eq(&self, other: &PutOutcome) -> bool
fn eq(&self, other: &PutOutcome) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PutOutcome
impl Serialize for PutOutcome
impl StructuralPartialEq for PutOutcome
Auto Trait Implementations§
impl Freeze for PutOutcome
impl RefUnwindSafe for PutOutcome
impl Send for PutOutcome
impl Sync for PutOutcome
impl Unpin for PutOutcome
impl UnsafeUnpin for PutOutcome
impl UnwindSafe for PutOutcome
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.