pub enum UpsertOutcome {
Inserted {
id: String,
},
Reinforced {
id: String,
},
Superseded {
id: String,
previous_id: String,
previous_value: String,
},
}Expand description
What an upsert did.
Variants§
Inserted
No active fact had this key.
Reinforced
The same value was already active; updated_at and confidence were
refreshed.
Superseded
A different value was active; it was marked superseded and kept as history.
Implementations§
Trait Implementations§
Source§impl Clone for UpsertOutcome
impl Clone for UpsertOutcome
Source§impl Debug for UpsertOutcome
impl Debug for UpsertOutcome
Source§impl<'de> Deserialize<'de> for UpsertOutcome
impl<'de> Deserialize<'de> for UpsertOutcome
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
Source§impl PartialEq for UpsertOutcome
impl PartialEq for UpsertOutcome
Source§impl Serialize for UpsertOutcome
impl Serialize for UpsertOutcome
impl StructuralPartialEq for UpsertOutcome
Auto Trait Implementations§
impl Forget for UpsertOutcome
impl Freeze for UpsertOutcome
impl Move for UpsertOutcome
impl RefUnwindSafe for UpsertOutcome
impl Send for UpsertOutcomewhere
RawVecInner: Send,
impl Sync for UpsertOutcomewhere
RawVecInner: Sync,
impl Unpin for UpsertOutcome
impl UnsafeUnpin for UpsertOutcome
impl UnwindSafe for UpsertOutcomewhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more