pub struct TradeSession {
pub start: Time,
pub end: Time,
pub inclusive: bool,
pub timeout: Duration,
}Fields§
§start: Time§end: Time§inclusive: bool§timeout: DurationImplementations§
Source§impl TradeSession
impl TradeSession
pub const fn new(start: Time, end: Time) -> Self
pub const fn with_timeout(self, timeout: Duration) -> Self
pub const fn with_inclusive(self) -> Self
Trait Implementations§
Source§impl Clone for TradeSession
impl Clone for TradeSession
Source§fn clone(&self) -> TradeSession
fn clone(&self) -> TradeSession
Returns a duplicate of the value. Read more
1.0.0 · 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 TradeSession
impl Debug for TradeSession
Source§impl PartialEq for TradeSession
impl PartialEq for TradeSession
impl Copy for TradeSession
impl Eq for TradeSession
impl StructuralPartialEq for TradeSession
Auto Trait Implementations§
impl Freeze for TradeSession
impl RefUnwindSafe for TradeSession
impl Send for TradeSession
impl Sync for TradeSession
impl Unpin for TradeSession
impl UnsafeUnpin for TradeSession
impl UnwindSafe for TradeSession
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