pub struct GetFeeRateParams {
pub category: Category,
pub symbol: Option<String>,
pub base_coin: Option<String>,
}Expand description
Query params for Client::get_fee_rate.
Fields§
§category: CategoryProduct type. spot, linear, inverse, option. Passing linear or inverse returns the same result - fee rates for all contracts (both linear and inverse).
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only. Valid for linear, inverse, spot.
base_coin: Option<String>Only for category = option. Base coin, e.g. "BTC".
Implementations§
Source§impl GetFeeRateParams
impl GetFeeRateParams
Sourcepub fn new(category: Category) -> Self
pub fn new(category: Category) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_symbol(self, v: impl Into<String>) -> Self
pub fn with_symbol(self, v: impl Into<String>) -> Self
Set symbol: symbol name, like BTCUSDT, uppercase only. Valid for linear, inverse, spot.
Sourcepub fn with_base_coin(self, v: impl Into<String>) -> Self
pub fn with_base_coin(self, v: impl Into<String>) -> Self
Set base_coin: only for category = option. Base coin, e.g. "BTC".
Trait Implementations§
Source§impl Clone for GetFeeRateParams
impl Clone for GetFeeRateParams
Source§impl Debug for GetFeeRateParams
impl Debug for GetFeeRateParams
Auto Trait Implementations§
impl Freeze for GetFeeRateParams
impl RefUnwindSafe for GetFeeRateParams
impl Send for GetFeeRateParams
impl Sync for GetFeeRateParams
impl Unpin for GetFeeRateParams
impl UnsafeUnpin for GetFeeRateParams
impl UnwindSafe for GetFeeRateParams
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