pub struct MemoryRecord { /* private fields */ }Expand description
Describes a single captured piece of memory.
Implementations§
Source§impl MemoryRecord
impl MemoryRecord
Sourcepub fn builder(channel: MemoryChannel, payload: Bytes) -> MemoryRecordBuilder
pub fn builder(channel: MemoryChannel, payload: Bytes) -> MemoryRecordBuilder
Creates a builder for a new memory record.
Sourcepub fn timestamp(&self) -> SystemTime
pub fn timestamp(&self) -> SystemTime
Returns the timestamp associated with the record.
Sourcepub fn channel(&self) -> &MemoryChannel
pub fn channel(&self) -> &MemoryChannel
Returns the channel.
Returns associated tags.
Sourcepub fn embedding(&self) -> Option<&EmbeddingVector>
pub fn embedding(&self) -> Option<&EmbeddingVector>
Returns the optional embedding associated with the record.
Trait Implementations§
Source§impl Clone for MemoryRecord
impl Clone for MemoryRecord
Source§fn clone(&self) -> MemoryRecord
fn clone(&self) -> MemoryRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryRecord
impl Debug for MemoryRecord
Source§impl<'de> Deserialize<'de> for MemoryRecord
impl<'de> Deserialize<'de> for MemoryRecord
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
Auto Trait Implementations§
impl !Freeze for MemoryRecord
impl RefUnwindSafe for MemoryRecord
impl Send for MemoryRecord
impl Sync for MemoryRecord
impl Unpin for MemoryRecord
impl UnwindSafe for MemoryRecord
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