pub struct CollectionEntry<T> {
pub id: String,
pub value: T,
pub created_at_ns: u128,
pub last_access_ns: u128,
pub base_score: f64,
}Expand description
CollectionEntry data container.
Fields§
§id: Stringid field for id.
value: Tvalue field for value.
created_at_ns: u128created_at_ns field for created at ns.
last_access_ns: u128last_access_ns field for last access ns.
base_score: f64base_score field for base score.
Trait Implementations§
Source§impl<T: Clone> Clone for CollectionEntry<T>
impl<T: Clone> Clone for CollectionEntry<T>
Source§fn clone(&self) -> CollectionEntry<T>
fn clone(&self) -> CollectionEntry<T>
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<T: Debug> Debug for CollectionEntry<T>
impl<T: Debug> Debug for CollectionEntry<T>
Source§impl<T: PartialEq> PartialEq for CollectionEntry<T>
impl<T: PartialEq> PartialEq for CollectionEntry<T>
impl<T> StructuralPartialEq for CollectionEntry<T>
Auto Trait Implementations§
impl<T> Freeze for CollectionEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for CollectionEntry<T>where
T: RefUnwindSafe,
impl<T> Send for CollectionEntry<T>where
T: Send,
impl<T> Sync for CollectionEntry<T>where
T: Sync,
impl<T> Unpin for CollectionEntry<T>where
T: Unpin,
impl<T> UnsafeUnpin for CollectionEntry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CollectionEntry<T>where
T: 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