pub struct EntityInfo {
pub entity_type: CompactString,
pub key: CompactString,
pub value: String,
pub created_at: u64,
}Expand description
Summary of a memory entity.
Fields§
§entity_type: CompactStringEntity type (e.g. “person”, “fact”).
key: CompactStringHuman-readable key.
value: StringEntity value/content.
created_at: u64Unix timestamp of creation.
Trait Implementations§
Source§impl Clone for EntityInfo
impl Clone for EntityInfo
Source§fn clone(&self) -> EntityInfo
fn clone(&self) -> EntityInfo
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 EntityInfo
impl Debug for EntityInfo
Source§impl<'de> Deserialize<'de> for EntityInfo
impl<'de> Deserialize<'de> for EntityInfo
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 EntityInfo
impl RefUnwindSafe for EntityInfo
impl Send for EntityInfo
impl Sync for EntityInfo
impl Unpin for EntityInfo
impl UnsafeUnpin for EntityInfo
impl UnwindSafe for EntityInfo
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