#[repr(C)]pub struct TradeFees {
pub order_fee_for_receiver_amount: u128,
pub order_fee_for_pool_amount: u128,
pub liquidation_fee_amount: u128,
pub liquidation_fee_for_receiver_amount: u128,
pub total_borrowing_fee_amount: u128,
pub borrowing_fee_for_receiver_amount: u128,
pub funding_fee_amount: u128,
pub claimable_funding_fee_long_token_amount: u128,
pub claimable_funding_fee_short_token_amount: u128,
}Expand description
Trade Fees.
Fields§
§order_fee_for_receiver_amount: u128§order_fee_for_pool_amount: u128§liquidation_fee_amount: u128§liquidation_fee_for_receiver_amount: u128§total_borrowing_fee_amount: u128§borrowing_fee_for_receiver_amount: u128§funding_fee_amount: u128§claimable_funding_fee_long_token_amount: u128§claimable_funding_fee_short_token_amount: u128Trait Implementations§
impl Copy for TradeFees
impl Pod for TradeFees
Auto Trait Implementations§
impl Freeze for TradeFees
impl RefUnwindSafe for TradeFees
impl Send for TradeFees
impl Sync for TradeFees
impl Unpin for TradeFees
impl UnwindSafe for TradeFees
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.