apple_quant_algorithmic/timestamp/latest_session_start.rs
1use crate::timestamp::{Timestamp, Timestamped};
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
4pub struct LatestSessionStart(Timestamp);
5
6impl LatestSessionStart {
7 pub fn new(timestamp: Timestamp) -> Self {
8 Self(timestamp)
9 }
10}
11
12impl Timestamped for LatestSessionStart {
13 fn timestamp(&self) -> &Timestamp {
14 &self.0
15 }
16}