#[non_exhaustive]pub enum AmountKey {
ClaimableTimeWindow,
RecentTimeWindow,
RequestExpiration,
OracleMaxAge,
OracleMaxTimestampRange,
OracleMaxFutureTimestampExcess,
AdlPricesMaxStaleness,
MinPositionAgeForManualClose,
MarketClosedPricesMaxStaleness,
}Expand description
Amount keys.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ClaimableTimeWindow
Claimable time window (seconds).
RecentTimeWindow
Recent time window (seconds).
RequestExpiration
Request expiration (seconds).
OracleMaxAge
Oracle max age (seconds).
OracleMaxTimestampRange
Oracle max timestamp range (seconds).
OracleMaxFutureTimestampExcess
Max timestamp excess for oracle timestamp (seconds).
AdlPricesMaxStaleness
Max ADL prices staleness (seconds).
MinPositionAgeForManualClose
Minimum position age required for manual closure (in seconds).
MarketClosedPricesMaxStaleness
Maximum prices staleness allowed when the market is closed (in seconds).
Trait Implementations§
Source§impl IntoEnumIterator for AmountKey
impl IntoEnumIterator for AmountKey
type Iterator = AmountKeyIter
fn iter() -> AmountKeyIter ⓘ
impl Copy for AmountKey
Auto Trait Implementations§
impl Freeze for AmountKey
impl RefUnwindSafe for AmountKey
impl Send for AmountKey
impl Sync for AmountKey
impl Unpin for AmountKey
impl UnwindSafe for AmountKey
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