pub struct Clock {
pub open: bool,
pub current: DateTime<Utc>,
pub next_open: DateTime<Utc>,
pub next_close: DateTime<Utc>,
/* private fields */
}Expand description
A type encapsulating market open/close timing information.
Fields§
§open: boolAn indication whether the market is currently open or not.
current: DateTime<Utc>The current time.
next_open: DateTime<Utc>The next market opening time stamp.
next_close: DateTime<Utc>The next market closing time stamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Clock
impl<'de> Deserialize<'de> for Clock
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
impl Copy for Clock
impl Eq for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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