pub struct EntityCreateSpec {
pub kind: String,
pub entity_type: Option<String>,
pub name: String,
pub description: Option<String>,
pub properties: Option<Value>,
pub tags: Vec<String>,
}Expand description
Fully specified entity creation request — input to KhiveRuntime::create_many.
entity_type is validated at the runtime layer by the pack-installed
entity-type validator (ADR-004 §runtime-layer validation). When a validator
is installed (e.g. by KgPack), unknown types are rejected with the valid
set listed. When no validator is installed (bare runtime without packs),
the value passes through — the handler layer is the primary enforcement point.
Fields§
§kind: String§entity_type: Option<String>§name: String§description: Option<String>§properties: Option<Value>Trait Implementations§
Source§impl Clone for EntityCreateSpec
impl Clone for EntityCreateSpec
Source§fn clone(&self) -> EntityCreateSpec
fn clone(&self) -> EntityCreateSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntityCreateSpec
impl RefUnwindSafe for EntityCreateSpec
impl Send for EntityCreateSpec
impl Sync for EntityCreateSpec
impl Unpin for EntityCreateSpec
impl UnsafeUnpin for EntityCreateSpec
impl UnwindSafe for EntityCreateSpec
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