pub struct SaveOptions {
pub session_id: Option<String>,
pub scope: Option<String>,
pub metadata: Option<Value>,
}Expand description
Options for saving a snapshot entry.
Fields§
§session_id: Option<String>Optional caller session identifier.
scope: Option<String>Namespace partition for the new entry. None = global scope.
metadata: Option<Value>Arbitrary caller metadata, stored as JSON.
Unlike content, metadata is persisted verbatim by
crate::ContextForge::save — it is not passed through
crate::scrub_secrets. Callers MUST NOT place untrusted or
secret-bearing text in this field.
Trait Implementations§
Source§impl Clone for SaveOptions
impl Clone for SaveOptions
Source§fn clone(&self) -> SaveOptions
fn clone(&self) -> SaveOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SaveOptions
impl Debug for SaveOptions
Source§impl Default for SaveOptions
impl Default for SaveOptions
Source§fn default() -> SaveOptions
fn default() -> SaveOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SaveOptions
impl RefUnwindSafe for SaveOptions
impl Send for SaveOptions
impl Sync for SaveOptions
impl Unpin for SaveOptions
impl UnsafeUnpin for SaveOptions
impl UnwindSafe for SaveOptions
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