pub struct CompressedMemory {
pub original_id: MemoryId,
pub compressed_content: String,
pub compression_ratio: f32,
pub key_facts: Vec<String>,
}Expand description
A compressed representation of a memory.
Fields§
§original_id: MemoryId§compressed_content: String§compression_ratio: f32§key_facts: Vec<String>Trait Implementations§
Source§impl Clone for CompressedMemory
impl Clone for CompressedMemory
Source§fn clone(&self) -> CompressedMemory
fn clone(&self) -> CompressedMemory
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 CompressedMemory
impl Debug for CompressedMemory
Source§impl<'de> Deserialize<'de> for CompressedMemory
impl<'de> Deserialize<'de> for CompressedMemory
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 CompressedMemory
impl RefUnwindSafe for CompressedMemory
impl Send for CompressedMemory
impl Sync for CompressedMemory
impl Unpin for CompressedMemory
impl UnsafeUnpin for CompressedMemory
impl UnwindSafe for CompressedMemory
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