pub struct EventTradeFees {
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: u128Order fee for receiver amount.
order_fee_for_pool_amount: u128Order fee for pool amount.
liquidation_fee_amount: u128Total liquidation fee amount.
liquidation_fee_for_receiver_amount: u128Liquidation fee for pool amount.
total_borrowing_fee_amount: u128Total borrowing fee amount.
borrowing_fee_for_receiver_amount: u128Borrowing fee for receiver amount.
funding_fee_amount: u128Funding fee amount.
claimable_funding_fee_long_token_amount: u128Claimable funding fee long token amount.
claimable_funding_fee_short_token_amount: u128Claimable funding fee short token amount.
Trait Implementations§
Source§impl BorshDeserialize for EventTradeFeeswhere
u128: BorshDeserialize,
impl BorshDeserialize for EventTradeFeeswhere
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 BorshSerialize for EventTradeFeeswhere
u128: BorshSerialize,
impl BorshSerialize for EventTradeFeeswhere
u128: BorshSerialize,
Source§impl Clone for EventTradeFees
impl Clone for EventTradeFees
Source§fn clone(&self) -> EventTradeFees
fn clone(&self) -> EventTradeFees
Returns a copy 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 EventTradeFees
impl Debug for EventTradeFees
Source§impl<'de> Deserialize<'de> for EventTradeFees
impl<'de> Deserialize<'de> for EventTradeFees
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
Source§impl Serialize for EventTradeFees
impl Serialize for EventTradeFees
Source§impl Space for EventTradeFees
impl Space for EventTradeFees
const INIT_SPACE: usize = 144usize
Auto Trait Implementations§
impl Freeze for EventTradeFees
impl RefUnwindSafe for EventTradeFees
impl Send for EventTradeFees
impl Sync for EventTradeFees
impl Unpin for EventTradeFees
impl UnwindSafe for EventTradeFees
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> 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