pub struct VelocityRow {
pub kind: SourceKind,
pub key: String,
pub title: Option<String>,
pub lang: Option<String>,
pub url: Option<String>,
pub topics: Vec<String>,
pub score_now: i64,
pub score_prev: i64,
pub window_secs: i64,
pub velocity_per_day: f64,
}Expand description
A velocity computation for one subject over a snapshot window.
Fields§
§kind: SourceKindSubject type.
key: StringSource-stable identifier.
title: Option<String>Human-readable line, if any.
lang: Option<String>Primary language, if any.
url: Option<String>Canonical URL, if any.
topics: Vec<String>Topics attached to the subject.
score_now: i64Most recent observed score.
score_prev: i64Earliest observed score inside the window.
window_secs: i64Seconds between the two observations.
velocity_per_day: f64Score gained per day over the window (see crate::score).
Trait Implementations§
Source§impl Clone for VelocityRow
impl Clone for VelocityRow
Source§fn clone(&self) -> VelocityRow
fn clone(&self) -> VelocityRow
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 VelocityRow
impl Debug for VelocityRow
Source§impl PartialEq for VelocityRow
impl PartialEq for VelocityRow
impl StructuralPartialEq for VelocityRow
Auto Trait Implementations§
impl Freeze for VelocityRow
impl RefUnwindSafe for VelocityRow
impl Send for VelocityRow
impl Sync for VelocityRow
impl Unpin for VelocityRow
impl UnsafeUnpin for VelocityRow
impl UnwindSafe for VelocityRow
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