Enum mito_protocol::vault::DerivativeExecuteMsg
source · pub enum DerivativeExecuteMsg {
Base(BaseVaultExecuteMsg<DerivativeRedeemSubscribeMsg>),
UpdateVaultConfig {Show 20 fields
market_id: Option<MarketId>,
leverage: Option<FPDecimal>,
order_density: Option<u8>,
signed_min_head_to_fair_price_deviation_ratio: Option<FPDecimal>,
signed_min_head_to_tob_deviation_ratio: Option<FPDecimal>,
reservation_price_sensitivity_ratio: Option<FPDecimal>,
reservation_spread_sensitivity_ratio: Option<FPDecimal>,
max_active_capital_utilization_ratio: Option<FPDecimal>,
head_change_tolerance_ratio: Option<FPDecimal>,
head_to_tail_deviation_ratio: Option<FPDecimal>,
min_proximity_to_liquidation: Option<FPDecimal>,
min_oracle_volatility_sample_size: Option<u32>,
emergency_oracle_volatility_sample_size: Option<u32>,
default_mid_price_volatility_ratio: Option<FPDecimal>,
min_volatility_ratio: Option<FPDecimal>,
last_valid_mark_price: Option<FPDecimal>,
allowed_redemption_types: Option<EnumSet<DerivativeRedemptionType>>,
notional_value_cap: Option<FPDecimal>,
oracle_stale_time: Option<u64>,
oracle_volatility_max_age: Option<u64>,
},
BeginBlockerWithoutLiquidationCheck {},
MarketMake {},
EmergencyPause {},
EmergencyUnpause {
is_instant_market_making: bool,
},
}Variants§
Base(BaseVaultExecuteMsg<DerivativeRedeemSubscribeMsg>)
UpdateVaultConfig
Fields
§
allowed_redemption_types: Option<EnumSet<DerivativeRedemptionType>>BeginBlockerWithoutLiquidationCheck
MarketMake
EmergencyPause
EmergencyUnpause
Trait Implementations§
source§impl Clone for DerivativeExecuteMsg
impl Clone for DerivativeExecuteMsg
source§fn clone(&self) -> DerivativeExecuteMsg
fn clone(&self) -> DerivativeExecuteMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DerivativeExecuteMsg
impl Debug for DerivativeExecuteMsg
source§impl<'de> Deserialize<'de> for DerivativeExecuteMsg
impl<'de> Deserialize<'de> for DerivativeExecuteMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for DerivativeExecuteMsg
impl JsonSchema for DerivativeExecuteMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq for DerivativeExecuteMsg
impl PartialEq for DerivativeExecuteMsg
source§fn eq(&self, other: &DerivativeExecuteMsg) -> bool
fn eq(&self, other: &DerivativeExecuteMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for DerivativeExecuteMsg
impl Serialize for DerivativeExecuteMsg
impl Eq for DerivativeExecuteMsg
impl StructuralPartialEq for DerivativeExecuteMsg
Auto Trait Implementations§
impl Freeze for DerivativeExecuteMsg
impl RefUnwindSafe for DerivativeExecuteMsg
impl Send for DerivativeExecuteMsg
impl Sync for DerivativeExecuteMsg
impl Unpin for DerivativeExecuteMsg
impl UnwindSafe for DerivativeExecuteMsg
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)