Enum mito_protocol::vault::SpotExecuteMsg
source · pub enum SpotExecuteMsg {
Base(BaseVaultExecuteMsg<SpotRedeemSubscribeMsg>),
UpdateVaultConfig {Show 22 fields
market_id: Option<MarketId>,
order_density: Option<u8>,
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>,
signed_min_head_to_fair_price_deviation_ratio: Option<FPDecimal>,
signed_min_head_to_tob_deviation_ratio: Option<FPDecimal>,
target_base_weight: Option<FPDecimal>,
oracle_type: Option<OracleType>,
default_mid_price_volatility_ratio: Option<FPDecimal>,
allowed_redemption_types: Option<EnumSet<SpotRedemptionType>>,
notional_value_cap: Option<FPDecimal>,
oracle_stale_time: Option<u64>,
last_valid_mark_price: Option<FPDecimal>,
min_oracle_volatility_sample_size: Option<u32>,
emergency_oracle_volatility_sample_size: Option<u32>,
min_volatility_ratio: Option<FPDecimal>,
oracle_volatility_max_age: Option<u64>,
base_oracle_symbol: Option<String>,
quote_oracle_symbol: Option<String>,
},
MarketMake {},
EmergencyPause {},
EmergencyUnpause {
is_instant_market_making: bool,
},
}Variants§
Base(BaseVaultExecuteMsg<SpotRedeemSubscribeMsg>)
UpdateVaultConfig
Fields
§
oracle_type: Option<OracleType>§
allowed_redemption_types: Option<EnumSet<SpotRedemptionType>>MarketMake
EmergencyPause
EmergencyUnpause
Trait Implementations§
source§impl Clone for SpotExecuteMsg
impl Clone for SpotExecuteMsg
source§fn clone(&self) -> SpotExecuteMsg
fn clone(&self) -> SpotExecuteMsg
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 SpotExecuteMsg
impl Debug for SpotExecuteMsg
source§impl<'de> Deserialize<'de> for SpotExecuteMsg
impl<'de> Deserialize<'de> for SpotExecuteMsg
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 SpotExecuteMsg
impl JsonSchema for SpotExecuteMsg
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 SpotExecuteMsg
impl PartialEq for SpotExecuteMsg
source§fn eq(&self, other: &SpotExecuteMsg) -> bool
fn eq(&self, other: &SpotExecuteMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SpotExecuteMsg
impl Serialize for SpotExecuteMsg
impl Eq for SpotExecuteMsg
impl StructuralPartialEq for SpotExecuteMsg
Auto Trait Implementations§
impl Freeze for SpotExecuteMsg
impl RefUnwindSafe for SpotExecuteMsg
impl Send for SpotExecuteMsg
impl Sync for SpotExecuteMsg
impl Unpin for SpotExecuteMsg
impl UnwindSafe for SpotExecuteMsg
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)