pub struct GetLastTradesByCurrencyParamsBuilder { /* private fields */ }Expand description
Builder for GetLastTradesByCurrencyParams.
Implementations§
Source§impl GetLastTradesByCurrencyParamsBuilder
impl GetLastTradesByCurrencyParamsBuilder
Sourcepub fn currency<VALUE: Into<DeribitCurrency>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn currency<VALUE: Into<DeribitCurrency>>( &mut self, value: VALUE, ) -> &mut Self
Currency to query.
Sourcepub fn kind<VALUE: Into<DeribitProductType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn kind<VALUE: Into<DeribitProductType>>( &mut self, value: VALUE, ) -> &mut Self
Optional product kind filter (e.g., option_combo, future_combo).
Sourcepub fn start_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn start_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
First trade ID (inclusive) of the range to fetch.
Sourcepub fn end_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn end_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Last trade ID (inclusive) of the range to fetch.
Sourcepub fn count<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn count<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Maximum number of trades to return (default 10, max 1000).
Sourcepub fn include_old<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn include_old<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to include expired-instrument trades.
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<GetLastTradesByCurrencyParams, GetLastTradesByCurrencyParamsBuilderError>
pub fn build( &self, ) -> Result<GetLastTradesByCurrencyParams, GetLastTradesByCurrencyParamsBuilderError>
Trait Implementations§
Source§impl Clone for GetLastTradesByCurrencyParamsBuilder
impl Clone for GetLastTradesByCurrencyParamsBuilder
Source§fn clone(&self) -> GetLastTradesByCurrencyParamsBuilder
fn clone(&self) -> GetLastTradesByCurrencyParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for GetLastTradesByCurrencyParamsBuilder
impl RefUnwindSafe for GetLastTradesByCurrencyParamsBuilder
impl Send for GetLastTradesByCurrencyParamsBuilder
impl Sync for GetLastTradesByCurrencyParamsBuilder
impl Unpin for GetLastTradesByCurrencyParamsBuilder
impl UnsafeUnpin for GetLastTradesByCurrencyParamsBuilder
impl UnwindSafe for GetLastTradesByCurrencyParamsBuilder
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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