pub struct CreateMemory {Show 13 fields
pub tier: Tier,
pub namespace: String,
pub title: String,
pub content: String,
pub tags: Vec<String>,
pub priority: i32,
pub confidence: f64,
pub source: String,
pub expires_at: Option<String>,
pub ttl_secs: Option<i64>,
pub metadata: Value,
pub agent_id: Option<String>,
pub scope: Option<String>,
}Fields§
§tier: Tier§namespace: String§title: String§content: String§priority: i32§confidence: f64§source: String§expires_at: Option<String>§ttl_secs: Option<i64>§metadata: Value§agent_id: Option<String>Optional agent identifier. When unset, the server resolves a default
via crate::identity (NHI-hardened precedence chain).
scope: Option<String>Optional visibility scope (Task 1.5). One of VALID_SCOPES. When
unset, treated as private by the query layer.
Trait Implementations§
Source§impl Debug for CreateMemory
impl Debug for CreateMemory
Source§impl<'de> Deserialize<'de> for CreateMemory
impl<'de> Deserialize<'de> for CreateMemory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateMemory
impl RefUnwindSafe for CreateMemory
impl Send for CreateMemory
impl Sync for CreateMemory
impl Unpin for CreateMemory
impl UnsafeUnpin for CreateMemory
impl UnwindSafe for CreateMemory
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more