pub enum AtomicUpdateKind {
Entity {
specific: Option<String>,
},
Note {
specific: Option<String>,
},
Edge,
}Expand description
Caller-supplied update-kind expectation, resolved via the canonical
resolve_kind_spec at the kkernel --atomic seam: the same pattern
AtomicDeleteKind uses. Without this check, update(kind="document", id=<concept>) would be canonically NotFound but the atomic path would
ignore the explicit kind and mutate the resolved entity anyway.
khive-runtime must not depend on khive-pack-kg, so this is a plain
substrate-level shape rather than khive_pack_kg::handlers::KindSpec
itself: the kkernel seam does the pack-aware resolution and passes down
only what prepare_update needs to enforce the mismatch check.
Variants§
Auto Trait Implementations§
impl Freeze for AtomicUpdateKind
impl RefUnwindSafe for AtomicUpdateKind
impl Send for AtomicUpdateKind
impl Sync for AtomicUpdateKind
impl Unpin for AtomicUpdateKind
impl UnsafeUnpin for AtomicUpdateKind
impl UnwindSafe for AtomicUpdateKind
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> 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