pub struct Observation {
pub ts: i64,
pub score: i64,
pub extra1: i64,
pub extra2: i64,
}Expand description
One point-in-time reading of a subject’s counters.
extra1/extra2 are source-defined (GitHub: forks/watchers, HN:
comments, crates.io: recent downloads) — velocity only ever uses
score.
Fields§
§ts: i64Unix seconds at reading time.
score: i64Headline counter (stars / points / downloads).
extra1: i64Source-defined secondary counter.
extra2: i64Source-defined tertiary counter.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§impl Debug for Observation
impl Debug for Observation
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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