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