pub enum FeeScheduleKey {
Default,
RwaDefault,
Custom(PerpetualId),
}Expand description
Selects the fee schedule a perpetual’s fees are resolved from.
Variants§
Default
Exchange-wide default schedule, shared by every perpetual that has not
been repointed. Kept up to date by DefaultPerpFeeScheduleSet.
RwaDefault
Exchange-wide default schedule for real-world assets. Kept up to date by
DefaultRwaFeeScheduleSet.
Custom(PerpetualId)
A perpetual’s own custom schedule, keyed by its ID. Kept up to date by
FeeScheduleSet under that id.
Existing under a perpetual’s id does not mean the perpetual resolves its
fees from it - only PerpFeeSchedIdSet points a perpetual at a
schedule, and nothing stops one perpetual from being pointed at
another’s.
Implementations§
Trait Implementations§
Source§impl Clone for FeeScheduleKey
impl Clone for FeeScheduleKey
Source§fn clone(&self) -> FeeScheduleKey
fn clone(&self) -> FeeScheduleKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FeeScheduleKey
Source§impl Debug for FeeScheduleKey
impl Debug for FeeScheduleKey
Source§impl Display for FeeScheduleKey
impl Display for FeeScheduleKey
impl Eq for FeeScheduleKey
Source§impl Hash for FeeScheduleKey
impl Hash for FeeScheduleKey
Source§impl PartialEq for FeeScheduleKey
impl PartialEq for FeeScheduleKey
impl StructuralPartialEq for FeeScheduleKey
Auto Trait Implementations§
impl Freeze for FeeScheduleKey
impl RefUnwindSafe for FeeScheduleKey
impl Send for FeeScheduleKey
impl Sync for FeeScheduleKey
impl Unpin for FeeScheduleKey
impl UnsafeUnpin for FeeScheduleKey
impl UnwindSafe for FeeScheduleKey
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<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.