#[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 receiver amount.
order_fee_for_pool_amount: u128
Order fee for pool amount.
liquidation_fee_amount: u128
Total liquidation fee amount.
liquidation_fee_for_receiver_amount: u128
Liquidation fee for pool amount.
total_borrowing_fee_amount: u128
Total borrowing fee amount.
borrowing_fee_for_receiver_amount: u128
Borrowing fee for receiver amount.
funding_fee_amount: u128
Funding fee amount.
claimable_funding_fee_long_token_amount: u128
Claimable funding fee long token amount.
claimable_funding_fee_short_token_amount: u128
Claimable funding fee short token amount.
Trait Implementations§
Source§impl BorshDeserialize for TradeFeeswhere
u128: BorshDeserialize,
impl BorshDeserialize for TradeFeeswhere
u128: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl<'de> Deserialize<'de> for TradeFees
impl<'de> Deserialize<'de> for TradeFees
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
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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
.§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
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more