pub struct Fees {
pub taker_fee: u64,
pub protocol_fee: u64,
pub maker_broker_fee: u64,
pub taker_broker_fee: u64,
}Expand description
Fees struct that holds the calculated fees.
Fields§
§taker_fee: u64Taker fee is the total fee sans royalties: protocol fee + broker fees.
protocol_fee: u64Protocol fee is the fee that goes to the protocol, a percentage of the total fee determined by 1 - broker_fee_pct.
maker_broker_fee: u64Maker broker fee is the fee that goes to the maker broker: a percentage of the total broker fee.
taker_broker_fee: u64Taker broker fee is the fee that goes to the taker broker: the remainder of the total broker fee.
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> 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