#[non_exhaustive]pub struct BulkSetEntry {Show 24 fields
pub memory_key: String,
pub memory_type: Option<String>,
pub value: Value,
pub confidence: Option<f64>,
pub source_trace: Option<String>,
pub source_class: Option<Option<String>>,
pub ttl_seconds: Option<Option<Integer>>,
pub tags: Option<Vec<String>>,
pub entities: Option<Vec<String>>,
pub relations: Option<Vec<(String, String, String)>>,
pub derived: Option<Vec<HashMap<String, Value>>>,
pub temporal_anchor: Option<Option<String>>,
pub temporal_confidence: Option<f64>,
pub valid_at: Option<Option<String>>,
pub valid_to: Option<Option<String>>,
pub char_limit: Option<Option<Integer>>,
pub pinned: Option<bool>,
pub files: Option<Vec<String>>,
pub concepts: Option<Vec<String>>,
pub topics: Option<Vec<String>>,
pub question_topic: Option<String>,
pub evidence: Option<String>,
pub grounding: Option<String>,
pub sensitivity: Option<BulkSetEntrySensitivity>,
}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.memory_key: String§memory_type: Option<String>§value: Value§confidence: Option<f64>§source_trace: Option<String>§source_class: Option<Option<String>>§ttl_seconds: Option<Option<Integer>>§entities: Option<Vec<String>>§relations: Option<Vec<(String, String, String)>>§derived: Option<Vec<HashMap<String, Value>>>§temporal_anchor: Option<Option<String>>§temporal_confidence: Option<f64>§valid_at: Option<Option<String>>§valid_to: Option<Option<String>>§char_limit: Option<Option<Integer>>§pinned: Option<bool>§files: Option<Vec<String>>§concepts: Option<Vec<String>>§topics: Option<Vec<String>>§question_topic: Option<String>§evidence: Option<String>§grounding: Option<String>§sensitivity: Option<BulkSetEntrySensitivity>Implementations§
Source§impl BulkSetEntry
impl BulkSetEntry
pub fn new(memory_key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn memory_type(self, memory_type: impl Into<String>) -> 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 ttl_seconds(self, ttl_seconds: impl Into<Integer>) -> Self
pub fn ttl_seconds_null(self) -> 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 derived(self, derived: Vec<HashMap<String, Value>>) -> Self
pub fn temporal_anchor(self, temporal_anchor: impl Into<String>) -> Self
pub fn temporal_anchor_null(self) -> Self
pub fn temporal_confidence(self, temporal_confidence: f64) -> 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 char_limit(self, char_limit: impl Into<Integer>) -> Self
pub fn char_limit_null(self) -> Self
pub fn pinned(self, pinned: bool) -> Self
pub fn files(self, files: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn concepts( self, concepts: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn topics(self, topics: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn question_topic(self, question_topic: impl Into<String>) -> Self
pub fn evidence(self, evidence: impl Into<String>) -> Self
pub fn grounding(self, grounding: impl Into<String>) -> Self
pub fn sensitivity(self, sensitivity: BulkSetEntrySensitivity) -> Self
Trait Implementations§
Source§impl Clone for BulkSetEntry
impl Clone for BulkSetEntry
Source§impl Debug for BulkSetEntry
impl Debug for BulkSetEntry
Source§impl<'de> Deserialize<'de> for BulkSetEntry
impl<'de> Deserialize<'de> for BulkSetEntry
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 BulkSetEntry
impl PartialEq for BulkSetEntry
Source§impl Serialize for BulkSetEntry
impl Serialize for BulkSetEntry
impl StructuralPartialEq for BulkSetEntry
Auto Trait Implementations§
impl Forget for BulkSetEntry
impl Freeze for BulkSetEntry
impl Move for BulkSetEntry
impl RefUnwindSafe for BulkSetEntry
impl Send for BulkSetEntry
impl Sync for BulkSetEntry
impl Unpin for BulkSetEntry
impl UnsafeUnpin for BulkSetEntry
impl UnwindSafe for BulkSetEntry
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