pub struct MemoryRecord {Show 17 fields
pub id: String,
pub scope: Option<MemoryScope>,
pub kind: String,
pub content: String,
pub summary: Option<String>,
pub metadata: HashMap<String, String>,
pub quality_state: String,
pub created_at_unix_ms: u64,
pub updated_at_unix_ms: u64,
pub expires_at_unix_ms: Option<u64>,
pub importance_score: f32,
pub source_id: Option<String>,
pub artifact: Option<ArtifactPointer>,
pub episode: Option<EpisodeContext>,
pub historical_state: Option<String>,
pub lineage: Vec<LineageLink>,
pub conflict: Option<ConflictAnnotation>,
}Fields§
§id: String§scope: Option<MemoryScope>§kind: String§content: String§summary: Option<String>§metadata: HashMap<String, String>§quality_state: String§created_at_unix_ms: u64§updated_at_unix_ms: u64§expires_at_unix_ms: Option<u64>§importance_score: f32§source_id: Option<String>§artifact: Option<ArtifactPointer>§episode: Option<EpisodeContext>§historical_state: Option<String>§lineage: Vec<LineageLink>§conflict: Option<ConflictAnnotation>Implementations§
Source§impl MemoryRecord
impl MemoryRecord
Sourcepub fn summary(&self) -> &str
pub fn summary(&self) -> &str
Returns the value of summary, or the default value if summary is unset.
Sourcepub fn expires_at_unix_ms(&self) -> u64
pub fn expires_at_unix_ms(&self) -> u64
Returns the value of expires_at_unix_ms, or the default value if expires_at_unix_ms is unset.
Sourcepub fn source_id(&self) -> &str
pub fn source_id(&self) -> &str
Returns the value of source_id, or the default value if source_id is unset.
Sourcepub fn historical_state(&self) -> &str
pub fn historical_state(&self) -> &str
Returns the value of historical_state, or the default value if historical_state is unset.
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 (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 MemoryRecord
impl Debug for MemoryRecord
Source§impl Default for MemoryRecord
impl Default for MemoryRecord
Source§impl Message for MemoryRecord
impl Message for MemoryRecord
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for MemoryRecord
impl PartialEq for MemoryRecord
Source§fn eq(&self, other: &MemoryRecord) -> bool
fn eq(&self, other: &MemoryRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryRecord
Auto Trait Implementations§
impl Freeze for MemoryRecord
impl RefUnwindSafe for MemoryRecord
impl Send for MemoryRecord
impl Sync for MemoryRecord
impl Unpin for MemoryRecord
impl UnsafeUnpin 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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request