pub struct Session {
pub open: NaiveTime,
pub open_day_offset: i32,
pub close: NaiveTime,
pub close_day_offset: i32,
}Expand description
One contiguous trading session anchored to a trading day.
open_day_offset and close_day_offset are calendar-day offsets relative
to the trading day (the close-side day). Typical values:
- Regular cash equities: open=0, close=0
- CME Globex equity futures: open=-1, close=0
- 24x5 FX: open=-1, close=0
Fields§
§open: NaiveTime§open_day_offset: i32§close: NaiveTime§close_day_offset: i32Implementations§
Trait Implementations§
impl Copy for Session
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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