#[non_exhaustive]pub struct MemorySetInput {Show 30 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub run_id: Option<String>,
pub memory_key: String,
pub memory_type: Option<String>,
pub value: Value,
pub tags: Option<Vec<String>>,
pub entities: Option<Vec<String>>,
pub relations: Option<Vec<(String, String, String)>>,
pub files: Option<Option<Vec<String>>>,
pub confidence: Option<f64>,
pub source_trace: Option<String>,
pub source_class: Option<Option<String>>,
pub source_resource_id: Option<String>,
pub ttl_seconds: Option<Option<i64>>,
pub clear_expiry: Option<bool>,
pub on_expire: Option<MemorySetInputOnExpire>,
pub expire_reason: Option<String>,
pub valid_at: Option<Option<String>>,
pub valid_to: Option<Option<String>>,
pub pinned: Option<bool>,
pub classify: Option<bool>,
pub if_match_sha256: Option<String>,
pub char_limit: Option<Option<Integer>>,
pub sensitivity: Option<MemorySetInputSensitivity>,
pub dry_run: Option<bool>,
pub proposed: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§session_id: Option<String>§run_id: Option<String>§memory_key: String§memory_type: Option<String>§value: Value§entities: Option<Vec<String>>§relations: Option<Vec<(String, String, String)>>§files: Option<Option<Vec<String>>>§confidence: Option<f64>§source_trace: Option<String>§source_class: Option<Option<String>>§source_resource_id: Option<String>§ttl_seconds: Option<Option<i64>>§clear_expiry: Option<bool>§on_expire: Option<MemorySetInputOnExpire>§expire_reason: Option<String>§valid_at: Option<Option<String>>§valid_to: Option<Option<String>>§pinned: Option<bool>§classify: Option<bool>§if_match_sha256: Option<String>§char_limit: Option<Option<Integer>>§sensitivity: Option<MemorySetInputSensitivity>§dry_run: Option<bool>§proposed: Option<bool>Implementations§
Source§impl MemorySetInput
impl MemorySetInput
pub fn new(memory_key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn run_id(self, run_id: impl Into<String>) -> Self
pub fn memory_type(self, memory_type: impl Into<String>) -> Self
pub fn entities( self, entities: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn relations(self, relations: Vec<(String, String, String)>) -> Self
pub fn files(self, files: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn files_null(self) -> Self
pub fn confidence(self, confidence: f64) -> Self
pub fn source_trace(self, source_trace: impl Into<String>) -> Self
pub fn source_class(self, source_class: impl Into<String>) -> Self
pub fn source_class_null(self) -> Self
pub fn source_resource_id(self, source_resource_id: impl Into<String>) -> Self
pub fn ttl_seconds(self, ttl_seconds: i64) -> Self
pub fn ttl_seconds_null(self) -> Self
pub fn clear_expiry(self, clear_expiry: bool) -> Self
pub fn on_expire(self, on_expire: MemorySetInputOnExpire) -> Self
pub fn expire_reason(self, expire_reason: impl Into<String>) -> Self
pub fn valid_at(self, valid_at: impl Into<String>) -> Self
pub fn valid_at_null(self) -> Self
pub fn valid_to(self, valid_to: impl Into<String>) -> Self
pub fn valid_to_null(self) -> Self
pub fn pinned(self, pinned: bool) -> Self
pub fn classify(self, classify: bool) -> Self
pub fn if_match_sha256(self, if_match_sha256: impl Into<String>) -> Self
pub fn char_limit(self, char_limit: impl Into<Integer>) -> Self
pub fn char_limit_null(self) -> Self
pub fn sensitivity(self, sensitivity: MemorySetInputSensitivity) -> Self
pub fn dry_run(self, dry_run: bool) -> Self
pub fn proposed(self, proposed: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemorySetOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemorySetInput
impl Clone for MemorySetInput
Source§impl Debug for MemorySetInput
impl Debug for MemorySetInput
Source§impl<'de> Deserialize<'de> for MemorySetInput
impl<'de> Deserialize<'de> for MemorySetInput
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
Source§impl PartialEq for MemorySetInput
impl PartialEq for MemorySetInput
Source§impl Serialize for MemorySetInput
impl Serialize for MemorySetInput
impl StructuralPartialEq for MemorySetInput
Auto Trait Implementations§
impl Forget for MemorySetInput
impl Freeze for MemorySetInput
impl Move for MemorySetInput
impl RefUnwindSafe for MemorySetInput
impl Send for MemorySetInput
impl Sync for MemorySetInput
impl Unpin for MemorySetInput
impl UnsafeUnpin for MemorySetInput
impl UnwindSafe for MemorySetInput
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