pub struct GetUserTradesByInstrumentAndTimeParamsBuilder { /* private fields */ }Expand description
Builder for GetUserTradesByInstrumentAndTimeParams.
Implementations§
Source§impl GetUserTradesByInstrumentAndTimeParamsBuilder
impl GetUserTradesByInstrumentAndTimeParamsBuilder
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
Start timestamp in milliseconds since 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
End timestamp in milliseconds since 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<GetUserTradesByInstrumentAndTimeParams, GetUserTradesByInstrumentAndTimeParamsBuilderError>
pub fn build( &self, ) -> Result<GetUserTradesByInstrumentAndTimeParams, GetUserTradesByInstrumentAndTimeParamsBuilderError>
Builds a new GetUserTradesByInstrumentAndTimeParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for GetUserTradesByInstrumentAndTimeParamsBuilder
impl Clone for GetUserTradesByInstrumentAndTimeParamsBuilder
Source§fn clone(&self) -> GetUserTradesByInstrumentAndTimeParamsBuilder
fn clone(&self) -> GetUserTradesByInstrumentAndTimeParamsBuilder
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 GetUserTradesByInstrumentAndTimeParamsBuilder
impl RefUnwindSafe for GetUserTradesByInstrumentAndTimeParamsBuilder
impl Send for GetUserTradesByInstrumentAndTimeParamsBuilder
impl Sync for GetUserTradesByInstrumentAndTimeParamsBuilder
impl Unpin for GetUserTradesByInstrumentAndTimeParamsBuilder
impl UnsafeUnpin for GetUserTradesByInstrumentAndTimeParamsBuilder
impl UnwindSafe for GetUserTradesByInstrumentAndTimeParamsBuilder
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