pub struct GetDepositsOptions { /* private fields */ }Expand description
Options for the deposit list
Implementations§
Source§impl GetDepositsOptions
impl GetDepositsOptions
Sourcepub fn size(self, size: i32) -> Self
pub fn size(self, size: i32) -> Self
Set the page size (default 20, max 20; larger values are sent as 20, and 0 or a negative value as the default 20)
The deposit list honours a page size of at most 20: a larger one silently returns a 10-record page, which would read as the last page and hide records, so it is clamped here.
Sourcepub fn states(self, states: impl IntoIterator<Item = DepositState>) -> Self
pub fn states(self, states: impl IntoIterator<Item = DepositState>) -> Self
Filter by states (sent as their numeric codes;
DepositState::Unknown is ignored)
Sourcepub fn currencies<I, T>(self, currencies: I) -> Self
pub fn currencies<I, T>(self, currencies: I) -> Self
Filter by currencies (e.g. HKD, USD)
Trait Implementations§
Source§impl Clone for GetDepositsOptions
impl Clone for GetDepositsOptions
Source§impl Debug for GetDepositsOptions
impl Debug for GetDepositsOptions
Source§impl Default for GetDepositsOptions
impl Default for GetDepositsOptions
Auto Trait Implementations§
impl Freeze for GetDepositsOptions
impl RefUnwindSafe for GetDepositsOptions
impl Send for GetDepositsOptions
impl Sync for GetDepositsOptions
impl Unpin for GetDepositsOptions
impl UnsafeUnpin for GetDepositsOptions
impl UnwindSafe for GetDepositsOptions
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
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