pub struct Payload {
pub data: String,
pub hash: String,
pub created_at: DateTime<Utc>,
pub user_id: Option<String>,
pub agent_id: Option<String>,
pub run_id: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
Payload for vector store operations
Fields§
§data: StringMemory content
hash: StringMemory hash
created_at: DateTime<Utc>Creation timestamp
user_id: Option<String>User ID
agent_id: Option<String>Agent ID
run_id: Option<String>Run ID
metadata: HashMap<String, Value>Additional metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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 From<&MemoryRecord> for Payload
impl From<&MemoryRecord> for Payload
Source§fn from(record: &MemoryRecord) -> Self
fn from(record: &MemoryRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)