pub struct GetAccountBillsParamsBuilder { /* private fields */ }Expand description
Builder for GetAccountBillsParams.
Implementations§
Source§impl GetAccountBillsParamsBuilder
impl GetAccountBillsParamsBuilder
Sourcepub fn inst_type<VALUE: Into<OKXInstrumentType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn inst_type<VALUE: Into<OKXInstrumentType>>( &mut self, value: VALUE, ) -> &mut Self
Instrument type: SPOT, MARGIN, SWAP, FUTURES, OPTION, EVENTS.
Sourcepub fn inst_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn inst_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Instrument ID, e.g. “BTC-USDT”.
Sourcepub fn mgn_mode<VALUE: Into<OKXMarginMode>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mgn_mode<VALUE: Into<OKXMarginMode>>( &mut self, value: VALUE, ) -> &mut Self
Margin mode: cross or isolated.
Sourcepub fn ct_type<VALUE: Into<OKXContractType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ct_type<VALUE: Into<OKXContractType>>( &mut self, value: VALUE, ) -> &mut Self
Contract type: linear or inverse, applicable to FUTURES/SWAP.
Sourcepub fn bill_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn bill_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Bill type code, as defined by OKX.
Sourcepub fn sub_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sub_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Bill subtype code, as defined by OKX.
Sourcepub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Returns records older than this bill ID.
Sourcepub fn before<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn before<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Returns records newer than this bill ID.
Sourcepub fn begin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn begin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Begin timestamp in Unix milliseconds.
Sourcepub fn end<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn end<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
End timestamp in Unix milliseconds.
Sourcepub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Number of results per request (default 100, maximum 100).
Sourcepub fn build(
&self,
) -> Result<GetAccountBillsParams, GetAccountBillsParamsBuilderError>
pub fn build( &self, ) -> Result<GetAccountBillsParams, GetAccountBillsParamsBuilderError>
Trait Implementations§
Source§impl Clone for GetAccountBillsParamsBuilder
impl Clone for GetAccountBillsParamsBuilder
Auto Trait Implementations§
impl Freeze for GetAccountBillsParamsBuilder
impl RefUnwindSafe for GetAccountBillsParamsBuilder
impl Send for GetAccountBillsParamsBuilder
impl Sync for GetAccountBillsParamsBuilder
impl Unpin for GetAccountBillsParamsBuilder
impl UnsafeUnpin for GetAccountBillsParamsBuilder
impl UnwindSafe for GetAccountBillsParamsBuilder
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> ⓘ
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