pub struct Concept<H = HVec10240>where
H: Hypervector,{
pub id: String,
pub vector: H,
pub metadata: HashMap<String, Value>,
pub created_at: u64,
pub modified_at: u64,
pub expires_at: Option<u64>,
pub canonical_concept_ids: Vec<String>,
}Expand description
Represents a single memory concept
Fields§
§id: String§vector: H§metadata: HashMap<String, Value>§created_at: u64§modified_at: u64§expires_at: Option<u64>§canonical_concept_ids: Vec<String>IDs of concepts that are “canonical” versions of this one (ADR-0044)
Trait Implementations§
Source§impl<'de, H> Deserialize<'de> for Concept<H>where
H: Hypervector,
impl<'de, H> Deserialize<'de> for Concept<H>where
H: Hypervector,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Concept<H>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Concept<H>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<H> Serialize for Concept<H>where
H: Hypervector,
impl<H> Serialize for Concept<H>where
H: Hypervector,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<H> StructuralPartialEq for Concept<H>where
H: PartialEq + Hypervector,
Auto Trait Implementations§
impl<H> Freeze for Concept<H>where
H: Freeze,
impl<H> RefUnwindSafe for Concept<H>where
H: RefUnwindSafe,
impl<H> Send for Concept<H>
impl<H> Sync for Concept<H>
impl<H> Unpin for Concept<H>where
H: Unpin,
impl<H> UnsafeUnpin for Concept<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for Concept<H>where
H: UnwindSafe,
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 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>
Wrap the input message
T in a tonic::Request