pub struct SingleCoinBalanceRequest<'a> {
pub member_id: Option<&'a str>,
pub to_member_id: Option<&'a str>,
pub account_type: &'a str,
pub to_account_type: Option<&'a str>,
pub coin: &'a str,
pub with_bonus: Option<u8>,
pub with_transfer_safe_amount: Option<u8>,
pub with_ltv_transfer_safe_amount: Option<u8>,
}Expand description
Request for getting single coin balance
Fields§
§member_id: Option<&'a str>UID. Required when querying sub UID balance with master api key
to_member_id: Option<&'a str>UID. Required when querying the transferable balance between different UIDs
account_type: &'a strAccount type
to_account_type: Option<&'a str>To account type. Required when querying the transferable balance between different account types
coin: &'a strCoin, uppercase only
with_bonus: Option<u8>0(default): not query bonus. 1: query bonus
with_transfer_safe_amount: Option<u8>Whether query delay withdraw/transfer safe amount 0(default): false, 1: true
with_ltv_transfer_safe_amount: Option<u8>For OTC loan users in particular, you can check the transferable amount under risk level 0(default): false, 1: true toAccountType is mandatory
Trait Implementations§
Source§impl<'a> Clone for SingleCoinBalanceRequest<'a>
impl<'a> Clone for SingleCoinBalanceRequest<'a>
Source§fn clone(&self) -> SingleCoinBalanceRequest<'a>
fn clone(&self) -> SingleCoinBalanceRequest<'a>
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 moreSource§impl<'a> Debug for SingleCoinBalanceRequest<'a>
impl<'a> Debug for SingleCoinBalanceRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for SingleCoinBalanceRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SingleCoinBalanceRequest<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for SingleCoinBalanceRequest<'a>
impl<'a> RefUnwindSafe for SingleCoinBalanceRequest<'a>
impl<'a> Send for SingleCoinBalanceRequest<'a>
impl<'a> Sync for SingleCoinBalanceRequest<'a>
impl<'a> Unpin for SingleCoinBalanceRequest<'a>
impl<'a> UnsafeUnpin for SingleCoinBalanceRequest<'a>
impl<'a> UnwindSafe for SingleCoinBalanceRequest<'a>
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