pub struct DailyValue {
pub date: NaiveDate,
pub value: f64,
}Expand description
One day’s value of one dimension (spec 3.2 §7.10).
A series holds at most one value per day; a day without a value is absent, not zero.
§Example
use adk_eval::ledger::DailyValue;
use chrono::NaiveDate;
let point = DailyValue::new(NaiveDate::from_ymd_opt(2026, 10, 22).unwrap(), 1110.0);
assert_eq!(point.value, 1110.0);Fields§
§date: NaiveDateThe day, in the user’s local calendar.
value: f64The dimension’s value on that day.
Implementations§
Trait Implementations§
Source§impl Clone for DailyValue
impl Clone for DailyValue
impl Copy for DailyValue
Source§impl Debug for DailyValue
impl Debug for DailyValue
Source§impl<'de> Deserialize<'de> for DailyValue
impl<'de> Deserialize<'de> for DailyValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DailyValue
impl PartialEq for DailyValue
Source§impl Serialize for DailyValue
impl Serialize for DailyValue
impl StructuralPartialEq for DailyValue
Auto Trait Implementations§
impl Forget for DailyValue
impl Freeze for DailyValue
impl Move for DailyValue
impl RefUnwindSafe for DailyValue
impl Send for DailyValue
impl Sync for DailyValue
impl Unpin for DailyValue
impl UnsafeUnpin for DailyValuewhere
NonZeroI32Inner: UnsafeUnpin,
impl UnwindSafe for DailyValue
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