pub struct PeriodParams {
pub from: u64,
pub to: u64,
pub first_data_request: bool,
}
Expand description
Parameters for requesting historical bar data
Fields§
§from: u64
Start timestamp in seconds since Unix epoch
to: u64
End timestamp in seconds since Unix epoch
first_data_request: bool
Whether this is the first data request for this symbol
Implementations§
Trait Implementations§
Source§impl Clone for PeriodParams
impl Clone for PeriodParams
Source§fn clone(&self) -> PeriodParams
fn clone(&self) -> PeriodParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PeriodParams
impl RefUnwindSafe for PeriodParams
impl Send for PeriodParams
impl Sync for PeriodParams
impl Unpin for PeriodParams
impl UnwindSafe for PeriodParams
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