pub struct CurationCandidate {
pub id: String,
pub memory_type: MemoryType,
pub effective_importance: f32,
}Expand description
A single candidate for removal during curation.
Fields§
§id: StringMemory entry ID.
memory_type: MemoryTypeMemory type.
effective_importance: f32Effective importance score (lower = more likely removed).
Trait Implementations§
Source§impl Clone for CurationCandidate
impl Clone for CurationCandidate
Source§fn clone(&self) -> CurationCandidate
fn clone(&self) -> CurationCandidate
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 CurationCandidate
impl Debug for CurationCandidate
Source§impl<'de> Deserialize<'de> for CurationCandidate
impl<'de> Deserialize<'de> for CurationCandidate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurationCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurationCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CurationCandidate
impl Serialize for CurationCandidate
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
Auto Trait Implementations§
impl Freeze for CurationCandidate
impl RefUnwindSafe for CurationCandidate
impl Send for CurationCandidate
impl Sync for CurationCandidate
impl Unpin for CurationCandidate
impl UnsafeUnpin for CurationCandidate
impl UnwindSafe for CurationCandidate
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