pub struct GetOrdersParamsBuilder { /* private fields */ }
Expand description
Builder for GetOrdersParams
.
Implementations§
Source§impl GetOrdersParamsBuilder
impl GetOrdersParamsBuilder
Sourcepub fn portfolio<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn portfolio<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Portfolio UUID or ID.
Sourcepub fn instrument<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn instrument<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Instrument identifier (name, UUID, or ID).
Sourcepub fn instrument_type<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn instrument_type<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Type of instrument (“SPOT” or “PERPETUAL_FUTURE
”).
Sourcepub fn client_order_id<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn client_order_id<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Client-provided order identifier.
Sourcepub fn event_type<VALUE: Into<CoinbaseIntxOrderEventType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn event_type<VALUE: Into<CoinbaseIntxOrderEventType>>( &mut self, value: VALUE, ) -> &mut Self
Type of the most recent order event.
Sourcepub fn order_type<VALUE: Into<CoinbaseIntxOrderType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order_type<VALUE: Into<CoinbaseIntxOrderType>>( &mut self, value: VALUE, ) -> &mut Self
Type of order.
Sourcepub fn side<VALUE: Into<CoinbaseIntxSide>>(&mut self, value: VALUE) -> &mut Self
pub fn side<VALUE: Into<CoinbaseIntxSide>>(&mut self, value: VALUE) -> &mut Self
Order side (BUY/SELL).
Sourcepub fn ref_datetime<VALUE: Into<DateTime<Utc>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ref_datetime<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
Maximum event time for results (ISO-8601).
Sourcepub fn result_limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn result_limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Number of results to return (default: 25, max: 100).
Sourcepub fn result_offset<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn result_offset<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Number of results to skip.
Sourcepub fn build(&self) -> Result<GetOrdersParams, GetOrdersParamsBuilderError>
pub fn build(&self) -> Result<GetOrdersParams, GetOrdersParamsBuilderError>
Trait Implementations§
Source§impl Clone for GetOrdersParamsBuilder
impl Clone for GetOrdersParamsBuilder
Source§fn clone(&self) -> GetOrdersParamsBuilder
fn clone(&self) -> GetOrdersParamsBuilder
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 GetOrdersParamsBuilder
impl RefUnwindSafe for GetOrdersParamsBuilder
impl Send for GetOrdersParamsBuilder
impl Sync for GetOrdersParamsBuilder
impl Unpin for GetOrdersParamsBuilder
impl UnwindSafe for GetOrdersParamsBuilder
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