pub enum FeeRule {
ShareOfCap(u64),
Flat(BuilderFee),
}Expand description
What each order pays the builder.
Variants§
This many percent of each market kind’s cap, cut down to a whole tenth of a basis point: 88 is 88 of a perp’s 100 and 880 of spot’s 1000. At most 100.
Flat(BuilderFee)
One fee on every market; an order whose market allows less is refused, never lowered.
Trait Implementations§
impl Copy for FeeRule
impl Eq for FeeRule
impl StructuralPartialEq for FeeRule
Auto Trait Implementations§
impl Freeze for FeeRule
impl RefUnwindSafe for FeeRule
impl Send for FeeRule
impl Sync for FeeRule
impl Unpin for FeeRule
impl UnsafeUnpin for FeeRule
impl UnwindSafe for FeeRule
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.