pub struct TradingWindow {
pub start_day: u8,
pub end_day: u8,
pub months: u16,
}Expand description
Trading window
Fields§
§start_day: u8Window start (day of month, 1-31)
end_day: u8Window end (day of month, 1-31)
months: u16Allowed months (bitmask, bit 0 = Jan)
Implementations§
Trait Implementations§
Source§impl Clone for TradingWindow
impl Clone for TradingWindow
Source§fn clone(&self) -> TradingWindow
fn clone(&self) -> TradingWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradingWindow
impl Debug for TradingWindow
Source§impl<'de> Deserialize<'de> for TradingWindow
impl<'de> Deserialize<'de> for TradingWindow
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 TradingWindow
impl PartialEq for TradingWindow
Source§fn eq(&self, other: &TradingWindow) -> bool
fn eq(&self, other: &TradingWindow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TradingWindow
impl Serialize for TradingWindow
impl Eq for TradingWindow
impl StructuralPartialEq for TradingWindow
Auto Trait Implementations§
impl Freeze for TradingWindow
impl RefUnwindSafe for TradingWindow
impl Send for TradingWindow
impl Sync for TradingWindow
impl Unpin for TradingWindow
impl UnsafeUnpin for TradingWindow
impl UnwindSafe for TradingWindow
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