pub struct Recall {
pub schema: &'static str,
pub generation: i64,
pub decay: Decay,
pub reproducible: bool,
pub results: Vec<Recalled>,
pub live: u64,
pub superseded: u64,
}Expand description
A ranked recall, with the state it was computed against.
Fields§
§schema: &'static strStable schema tag (RECALL_SCHEMA).
generation: i64The generation this recall was computed at — the newest record’s id.
Reported because every age is relative to it.
decay: DecayThe decay mode used.
reproducible: boolWhether that mode guarantees reproducible recall
(Decay::is_reproducible). Surfaced so a consumer that is depending on
reproducibility does not have to infer it from the mode token.
results: Vec<Recalled>The ranked records, best score first, ties broken by newest generation.
live: u64Live records in the whole store, ignoring the options.
superseded: u64Superseded records in the whole store. None of them is in results:
supersession drops a record out of recall immediately and regardless of
age, because the test is a recorded pointer and not a clock.
Trait Implementations§
Source§impl Deserialize<'static> for Recall
impl Deserialize<'static> for Recall
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Recall
Auto Trait Implementations§
impl Freeze for Recall
impl RefUnwindSafe for Recall
impl Send for Recall
impl Sync for Recall
impl Unpin for Recall
impl UnsafeUnpin for Recall
impl UnwindSafe for Recall
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