pub struct RememberRequest {Show 15 fields
pub content: String,
pub memory_type: Option<String>,
pub scope: Option<String>,
pub importance: Option<f32>,
pub tags: Vec<String>,
pub metadata: Option<String>,
pub thread_id: Option<String>,
pub ttl_seconds: Option<u64>,
pub agent_id: Option<String>,
pub source_type: Option<String>,
pub source_id: Option<String>,
pub org_id: Option<String>,
pub decay_rate: Option<f32>,
pub created_by: Option<String>,
pub related_to: Vec<String>,
}Fields§
§content: String§memory_type: Option<String>§scope: Option<String>§importance: Option<f32>§metadata: Option<String>JSON-encoded string
thread_id: Option<String>§ttl_seconds: Option<u64>§agent_id: Option<String>§source_type: Option<String>§source_id: Option<String>§org_id: Option<String>§decay_rate: Option<f32>§created_by: Option<String>Implementations§
Source§impl RememberRequest
impl RememberRequest
Sourcepub fn memory_type(&self) -> &str
pub fn memory_type(&self) -> &str
Returns the value of memory_type, or the default value if memory_type is unset.
Sourcepub fn scope(&self) -> &str
pub fn scope(&self) -> &str
Returns the value of scope, or the default value if scope is unset.
Sourcepub fn importance(&self) -> f32
pub fn importance(&self) -> f32
Returns the value of importance, or the default value if importance is unset.
Sourcepub fn metadata(&self) -> &str
pub fn metadata(&self) -> &str
Returns the value of metadata, or the default value if metadata is unset.
Sourcepub fn thread_id(&self) -> &str
pub fn thread_id(&self) -> &str
Returns the value of thread_id, or the default value if thread_id is unset.
Sourcepub fn ttl_seconds(&self) -> u64
pub fn ttl_seconds(&self) -> u64
Returns the value of ttl_seconds, or the default value if ttl_seconds is unset.
Sourcepub fn agent_id(&self) -> &str
pub fn agent_id(&self) -> &str
Returns the value of agent_id, or the default value if agent_id is unset.
Sourcepub fn source_type(&self) -> &str
pub fn source_type(&self) -> &str
Returns the value of source_type, or the default value if source_type 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 org_id(&self) -> &str
pub fn org_id(&self) -> &str
Returns the value of org_id, or the default value if org_id is unset.
Sourcepub fn decay_rate(&self) -> f32
pub fn decay_rate(&self) -> f32
Returns the value of decay_rate, or the default value if decay_rate is unset.
Sourcepub fn created_by(&self) -> &str
pub fn created_by(&self) -> &str
Returns the value of created_by, or the default value if created_by is unset.
Trait Implementations§
Source§impl Clone for RememberRequest
impl Clone for RememberRequest
Source§fn clone(&self) -> RememberRequest
fn clone(&self) -> RememberRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RememberRequest
impl Debug for RememberRequest
Source§impl Default for RememberRequest
impl Default for RememberRequest
Source§impl Message for RememberRequest
impl Message for RememberRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for RememberRequest
impl PartialEq for RememberRequest
impl StructuralPartialEq for RememberRequest
Auto Trait Implementations§
impl Freeze for RememberRequest
impl RefUnwindSafe for RememberRequest
impl Send for RememberRequest
impl Sync for RememberRequest
impl Unpin for RememberRequest
impl UnsafeUnpin for RememberRequest
impl UnwindSafe for RememberRequest
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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> ⓘ
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> ⓘ
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 moreSource§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>
T in a tonic::Request