pub struct RememberOptions { /* private fields */ }Expand description
Builder for Client::remember’s optional fields.
Implementations§
Source§impl RememberOptions
impl RememberOptions
pub fn new() -> Self
Sourcepub fn scope(self, scope: impl Into<String>) -> Self
pub fn scope(self, scope: impl Into<String>) -> Self
Partitions memories within an account (e.g. per project). Not an
authorization boundary by itself – every read/search/mutation is
still filtered by the authenticated account. Defaults to
"default" server-side when omitted.
Sourcepub fn kind(self, kind: impl Into<String>) -> Self
pub fn kind(self, kind: impl Into<String>) -> Self
One of fact/preference/goal/instruction/note/summary.
Defaults to "fact" server-side when omitted.
pub fn metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn source_session_id(self, source_session_id: impl Into<String>) -> Self
Sourcepub fn importance(self, importance: f64) -> Self
pub fn importance(self, importance: f64) -> Self
0.0..=1.0. Defaults to 0.5 server-side when omitted.
Trait Implementations§
Source§impl Clone for RememberOptions
impl Clone for RememberOptions
Source§impl Debug for RememberOptions
impl Debug for RememberOptions
Source§impl Default for RememberOptions
impl Default for RememberOptions
Auto Trait Implementations§
impl Freeze for RememberOptions
impl RefUnwindSafe for RememberOptions
impl Send for RememberOptions
impl Sync for RememberOptions
impl Unpin for RememberOptions
impl UnsafeUnpin for RememberOptions
impl UnwindSafe for RememberOptions
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