#[repr(C)]pub struct Fees {
pub admin_trade_fee_numerator: u64,
pub admin_trade_fee_denominator: u64,
pub admin_withdraw_fee_numerator: u64,
pub admin_withdraw_fee_denominator: u64,
pub trade_fee_numerator: u64,
pub trade_fee_denominator: u64,
pub withdraw_fee_numerator: u64,
pub withdraw_fee_denominator: u64,
}
Expand description
Fees struct
Fields§
§admin_trade_fee_numerator: u64
Admin trade fee numerator
admin_trade_fee_denominator: u64
Admin trade fee denominator
admin_withdraw_fee_numerator: u64
Admin withdraw fee numerator
admin_withdraw_fee_denominator: u64
Admin withdraw fee denominator
trade_fee_numerator: u64
Trade fee numerator
trade_fee_denominator: u64
Trade fee denominator
withdraw_fee_numerator: u64
Withdraw fee numerator
withdraw_fee_denominator: u64
Withdraw fee denominator
Trait Implementations§
Source§impl Pack for Fees
impl Pack for Fees
Source§fn get_packed_len() -> usize
fn get_packed_len() -> usize
Get the packed length
Source§fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
Unpack from slice without checking if initialized
impl Copy for Fees
impl Sealed for Fees
impl StructuralPartialEq for Fees
Auto Trait Implementations§
impl Freeze for Fees
impl RefUnwindSafe for Fees
impl Send for Fees
impl Sync for Fees
impl Unpin for Fees
impl UnwindSafe for Fees
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