pub struct FrozenMemory {Show 14 fields
pub id: Uuid,
pub original_memory_id: Uuid,
pub compressed_content: Value,
pub original_metadata: Option<Value>,
pub original_content_hash: String,
pub original_embedding: Option<Vector>,
pub original_tier: MemoryTier,
pub freeze_reason: Option<String>,
pub frozen_at: DateTime<Utc>,
pub unfreeze_count: Option<i32>,
pub last_unfrozen_at: Option<DateTime<Utc>>,
pub compression_ratio: Option<f64>,
pub original_size_bytes: Option<i32>,
pub compressed_size_bytes: Option<i32>,
}
Fields§
§id: Uuid
§original_memory_id: Uuid
§compressed_content: Value
§original_metadata: Option<Value>
§original_content_hash: String
§original_embedding: Option<Vector>
§original_tier: MemoryTier
§freeze_reason: Option<String>
§frozen_at: DateTime<Utc>
§unfreeze_count: Option<i32>
§last_unfrozen_at: Option<DateTime<Utc>>
§compression_ratio: Option<f64>
§original_size_bytes: Option<i32>
§compressed_size_bytes: Option<i32>
Trait Implementations§
Source§impl Clone for FrozenMemory
impl Clone for FrozenMemory
Source§fn clone(&self) -> FrozenMemory
fn clone(&self) -> FrozenMemory
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 FrozenMemory
impl Debug for FrozenMemory
Source§impl<'a, R: Row> FromRow<'a, R> for FrozenMemorywhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Option<Value>: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<Vector>: Decode<'a, R::Database> + Type<R::Database>,
MemoryTier: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Option<f64>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for FrozenMemorywhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Option<Value>: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<Vector>: Decode<'a, R::Database> + Type<R::Database>,
MemoryTier: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Option<f64>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for FrozenMemory
impl RefUnwindSafe for FrozenMemory
impl Send for FrozenMemory
impl Sync for FrozenMemory
impl Unpin for FrozenMemory
impl UnwindSafe for FrozenMemory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more