pub struct Reading {
pub name: String,
pub value: f64,
pub unit: String,
pub source: String,
pub every_s: i64,
pub was: Option<f64>,
pub was_ts: Option<String>,
pub id: Option<String>,
pub ts: Option<String>,
pub due_at: Option<String>,
}Expand description
One reading of a habit: a number the seat keeps measuring, with the
cadence it is measured at. A reading is a claim of kind habit that
supersedes the reading before it, so the pack holds one live value a
habit and search --as-of still answers what it stood at then; its
review clock is the cadence, so due and the hook say when the next
reading is late.
Fields§
§name: String§value: f64§unit: String§source: String§every_s: i64Seconds between readings.
was: Option<f64>The reading before this one, when there was one.
was_ts: Option<String>§id: Option<String>§ts: Option<String>§due_at: Option<String>Trait Implementations§
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more