pub struct V1StoreInput {
pub text: String,
pub memory_type: MemoryTypeV1,
pub source: MemorySource,
pub importance: u8,
pub scope: MemoryScope,
pub volatility: MemoryVolatility,
pub reasoning: Option<String>,
}Expand description
Input for building a v1 memory claim from ZeroClaw’s high-level API.
The ZeroClaw Memory trait deals in (key, content, category, session_id).
V1StoreInput is the adapter shape that maps those plus explicit v1
provenance (source, scope, volatility) onto the canonical
MemoryClaimV1 the core write path expects.
Fields§
§text: StringPlaintext body of the claim (5-512 UTF-8 chars).
memory_type: MemoryTypeV1v1 memory type (claim | preference | directive | commitment | episode | summary).
source: MemorySourcev1 provenance source.
importance: u8Importance on the 1-10 scale. Normalized to 0.0-1.0 on-chain.
scope: MemoryScopeLife-domain scope. Defaults to Unspecified.
volatility: MemoryVolatilityStability signal. Defaults to Updatable.
reasoning: Option<String>Decision-with-reasoning clause (only meaningful for type: claim).
Implementations§
Trait Implementations§
Source§impl Clone for V1StoreInput
impl Clone for V1StoreInput
Source§fn clone(&self) -> V1StoreInput
fn clone(&self) -> V1StoreInput
Returns a duplicate of the value. Read more
1.0.0 · 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 V1StoreInput
impl RefUnwindSafe for V1StoreInput
impl Send for V1StoreInput
impl Sync for V1StoreInput
impl Unpin for V1StoreInput
impl UnsafeUnpin for V1StoreInput
impl UnwindSafe for V1StoreInput
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