pub struct GetAccountCoinBalanceParams {
pub account_type: AccountType,
pub coin: String,
pub member_id: Option<String>,
pub to_member_id: Option<String>,
pub to_account_type: Option<AccountType>,
pub with_bonus: Option<i64>,
pub with_transfer_safe_amount: Option<i64>,
pub with_ltv_transfer_safe_amount: Option<i64>,
}Expand description
Query params for
Client::get_account_coin_balance.
Fields§
§account_type: AccountType§coin: StringCoin name, uppercase only
member_id: Option<String>Master UID’s api key can query itself or its sub UIDs’ coin balance. If not passed, then by default it queries master UID’s coin balance
to_member_id: Option<String>Used together with to_account_type to query the balance safe to transfer between two
UIDs’ wallets
to_account_type: Option<AccountType>§with_bonus: Option<i64>Whether to query bonus. 0: not query, 1: query. Valid for account_type=FUND. Default: 0
with_transfer_safe_amount: Option<i64>Whether to query the available amount that is safe to withdraw or transfer. 0(default): not query, 1: query
with_ltv_transfer_safe_amount: Option<i64>Whether to query the available amount that is safe to transfer under the risk level of the OTC loan account. 0(default): not query, 1: query
Implementations§
Source§impl GetAccountCoinBalanceParams
impl GetAccountCoinBalanceParams
pub fn new(account_type: AccountType, coin: String) -> Self
pub fn with_member_id(self, v: String) -> Self
pub fn with_to_member_id(self, v: String) -> Self
pub fn with_to_account_type(self, v: AccountType) -> Self
pub fn with_bonus(self, v: i64) -> Self
pub fn with_transfer_safe_amount(self, v: i64) -> Self
pub fn with_ltv_transfer_safe_amount(self, v: i64) -> Self
Trait Implementations§
Source§impl Clone for GetAccountCoinBalanceParams
impl Clone for GetAccountCoinBalanceParams
Source§impl Debug for GetAccountCoinBalanceParams
impl Debug for GetAccountCoinBalanceParams
Auto Trait Implementations§
impl Freeze for GetAccountCoinBalanceParams
impl RefUnwindSafe for GetAccountCoinBalanceParams
impl Send for GetAccountCoinBalanceParams
impl Sync for GetAccountCoinBalanceParams
impl Unpin for GetAccountCoinBalanceParams
impl UnsafeUnpin for GetAccountCoinBalanceParams
impl UnwindSafe for GetAccountCoinBalanceParams
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