Skip to main content

Crate khive_types

Crate khive_types 

Source
Expand description

khive-types — core primitives and substrate data types.

#![no_std] compatible. Minimal dependencies. No ID generation, no clock access, no panics. Substrate structs (Note, Entity, Event) are merged into this crate — they are the data shape that the rest of the runtime operates on.

Re-exports§

pub use edge::EdgeCategory;
pub use edge::EdgeRelation;
pub use entity::Entity;
pub use entity::EntityKind;
pub use entity::PropertyValue;
pub use error::TypeError;
pub use error::UnknownVariant;
pub use event::Event;
pub use event::EventBuilder;
pub use event::EventOutcome;
pub use header::Header;
pub use id::Id128;
pub use id::ParseIdError;
pub use khive_error::Details;
pub use khive_error::ErrorCode;
pub use khive_error::ErrorDomain;
pub use khive_error::ErrorKind;
pub use khive_error::KhiveError;
pub use khive_error::RetryHint;
pub use namespace::Namespace;
pub use note::Note;
pub use note::NoteKind;
pub use note::NoteStatus;
pub use pack::EdgeEndpointRule;
pub use pack::EndpointKind;
pub use pack::Pack;
pub use pack::VerbDef;
pub use substrate::SubstrateKind;
pub use substrate::SUBSTRATE_COUNT;
pub use timestamp::Timestamp;
pub use vector::DistanceMetric;

Modules§

edge
Edge relation types for the closed ontology defined in ADR-002 / ADR-021.
entity
Entity substrate — graph nodes with typed properties and links.
error
Unified error types for khive-types.
event
Event substrate — universal system log.
header
Common header for substrate records.
id
128-bit identifier — universal ID primitive.
khive_error
Structured cross-crate error model for khive.
namespace
Namespace — string-based scoping for substrate records.
note
Note substrate — temporal-referential records (ADR-004, ADR-019).
pack
Pack trait — the declarative composition unit for khive (ADR-025).
substrate
Substrate discriminant — the 3 data types in khive (ADR-004).
timestamp
Timestamp — microseconds since Unix epoch.
vector
Vector similarity metric.