pub enum KeyedEntityCreate {
Created {
entity: Entity,
embedding: EmbeddingTruncationReport,
degradations: Vec<PostCommitDegradation>,
},
Replayed {
entity: Entity,
},
Conflict {
existing_id: Uuid,
},
}Expand description
Variants§
Created
No live entity held the key: this call wrote entity and claimed the
key for it in the same transaction.
Replayed
The live holder of the key carries the same payload. Nothing was written.
Conflict
A live entity with a different payload holds the key. Nothing was written; the holder is unchanged.
Trait Implementations§
Auto Trait Implementations§
impl Forget for KeyedEntityCreate
impl Freeze for KeyedEntityCreatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EntityAlias>: Freeze,
PhantomData<PostCommitDegradation>: Freeze,
impl Move for KeyedEntityCreate
impl RefUnwindSafe for KeyedEntityCreate
impl Send for KeyedEntityCreate
impl Sync for KeyedEntityCreate
impl Unpin for KeyedEntityCreate
impl UnsafeUnpin for KeyedEntityCreatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EntityAlias>: UnsafeUnpin,
PhantomData<PostCommitDegradation>: UnsafeUnpin,
impl UnwindSafe for KeyedEntityCreate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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