pub struct CommissionDiscount {
pub enabled_for_account: bool,
pub enabled_for_symbol: bool,
pub discount_asset: String,
pub discount: f64,
}Expand description
Discount commission information.
Fields§
§enabled_for_account: boolWhether discount is enabled for account.
enabled_for_symbol: boolWhether discount is enabled for symbol.
discount_asset: StringDiscount asset (e.g., “BNB”).
discount: f64Discount rate.
Trait Implementations§
Source§impl Clone for CommissionDiscount
impl Clone for CommissionDiscount
Source§fn clone(&self) -> CommissionDiscount
fn clone(&self) -> CommissionDiscount
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 Debug for CommissionDiscount
impl Debug for CommissionDiscount
Source§impl<'de> Deserialize<'de> for CommissionDiscount
impl<'de> Deserialize<'de> for CommissionDiscount
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 Freeze for CommissionDiscount
impl RefUnwindSafe for CommissionDiscount
impl Send for CommissionDiscount
impl Sync for CommissionDiscount
impl Unpin for CommissionDiscount
impl UnwindSafe for CommissionDiscount
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