pub struct GetLastTradesByInstrumentAndTimeParamsBuilder { /* private fields */ }Expand description
Builder for GetLastTradesByInstrumentAndTimeParams.
Implementations§
Source§impl GetLastTradesByInstrumentAndTimeParamsBuilder
impl GetLastTradesByInstrumentAndTimeParamsBuilder
Sourcepub fn instrument_name<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn instrument_name<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Instrument name (e.g., “BTC-PERPETUAL”)
Sourcepub fn start_timestamp<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn start_timestamp<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
The earliest timestamp to return result from (milliseconds since the UNIX epoch)
Sourcepub fn end_timestamp<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn end_timestamp<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
The most recent timestamp to return result from (milliseconds since the UNIX epoch)
Sourcepub fn count<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn count<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Number of requested items, default - 10, maximum - 1000
Sourcepub fn sorting<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sorting<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Direction of results sorting: “asc”, “desc”, or “default”
Sourcepub fn build(
&self,
) -> Result<GetLastTradesByInstrumentAndTimeParams, GetLastTradesByInstrumentAndTimeParamsBuilderError>
pub fn build( &self, ) -> Result<GetLastTradesByInstrumentAndTimeParams, GetLastTradesByInstrumentAndTimeParamsBuilderError>
Builds a new GetLastTradesByInstrumentAndTimeParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for GetLastTradesByInstrumentAndTimeParamsBuilder
impl Clone for GetLastTradesByInstrumentAndTimeParamsBuilder
Source§fn clone(&self) -> GetLastTradesByInstrumentAndTimeParamsBuilder
fn clone(&self) -> GetLastTradesByInstrumentAndTimeParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for GetLastTradesByInstrumentAndTimeParamsBuilder
impl RefUnwindSafe for GetLastTradesByInstrumentAndTimeParamsBuilder
impl Send for GetLastTradesByInstrumentAndTimeParamsBuilder
impl Sync for GetLastTradesByInstrumentAndTimeParamsBuilder
impl Unpin for GetLastTradesByInstrumentAndTimeParamsBuilder
impl UnwindSafe for GetLastTradesByInstrumentAndTimeParamsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more