pub struct RememberRequest {
pub content: String,
pub entities: Vec<String>,
pub edge_type: Option<String>,
pub supersedes: Vec<String>,
pub props: Option<Value>,
pub kind: Option<String>,
}Fields§
§content: String§entities: Vec<String>§edge_type: Option<String>§supersedes: Vec<String>§props: Option<Value>Extra memory metadata as a JSON object (same contract as
merge_required_prop’s extra).
kind: Option<String>Declared taxonomy kind for a NEW memory: episodic, semantic, or
procedural. None = unstamped (reads as semantic). Ignored on a
dedup hit — the existing node’s stored kind wins.
Implementations§
Source§impl RememberRequest
impl RememberRequest
Sourcepub fn validate(&self) -> Result<String, String>
pub fn validate(&self) -> Result<String, String>
Input-only validation (no db access): the edge type normalizes and
at least one non-blank entity name is present. plan_remember runs
this itself; front ends call it FIRST when they must report input
errors ahead of scope/db errors (the pre-refactor precedence).
Returns the normalized edge type.
Auto Trait Implementations§
impl Freeze for RememberRequest
impl RefUnwindSafe for RememberRequest
impl Send for RememberRequest
impl Sync for RememberRequest
impl Unpin for RememberRequest
impl UnsafeUnpin for RememberRequest
impl UnwindSafe for RememberRequest
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