Struct mito_protocol::vault::SpotInstantiateMsg
source · pub struct SpotInstantiateMsg {Show 25 fields
pub config_owner: String,
pub market_id: MarketId,
pub order_density: u8,
pub reservation_price_sensitivity_ratio: FPDecimal,
pub reservation_spread_sensitivity_ratio: FPDecimal,
pub max_active_capital_utilization_ratio: FPDecimal,
pub head_change_tolerance_ratio: FPDecimal,
pub head_to_tail_deviation_ratio: FPDecimal,
pub min_volatility_ratio: FPDecimal,
pub signed_min_head_to_fair_price_deviation_ratio: FPDecimal,
pub signed_min_head_to_tob_deviation_ratio: FPDecimal,
pub target_base_weight: FPDecimal,
pub min_oracle_volatility_sample_size: u32,
pub emergency_oracle_volatility_sample_size: u32,
pub oracle_volatility_max_age: u64,
pub default_mid_price_volatility_ratio: FPDecimal,
pub oracle_type: OracleType,
pub allowed_redemption_types: EnumSet<SpotRedemptionType>,
pub base_decimals: u8,
pub quote_decimals: u8,
pub base_oracle_symbol: String,
pub quote_oracle_symbol: String,
pub notional_value_cap: FPDecimal,
pub oracle_stale_time: u64,
pub master_address: String,
}Fields§
§config_owner: String§market_id: MarketId§order_density: u8§reservation_price_sensitivity_ratio: FPDecimal§reservation_spread_sensitivity_ratio: FPDecimal§max_active_capital_utilization_ratio: FPDecimal§head_change_tolerance_ratio: FPDecimal§head_to_tail_deviation_ratio: FPDecimal§min_volatility_ratio: FPDecimal§signed_min_head_to_fair_price_deviation_ratio: FPDecimal§signed_min_head_to_tob_deviation_ratio: FPDecimal§target_base_weight: FPDecimal§min_oracle_volatility_sample_size: u32§emergency_oracle_volatility_sample_size: u32§oracle_volatility_max_age: u64§default_mid_price_volatility_ratio: FPDecimal§oracle_type: OracleType§allowed_redemption_types: EnumSet<SpotRedemptionType>§base_decimals: u8§quote_decimals: u8§base_oracle_symbol: String§quote_oracle_symbol: String§notional_value_cap: FPDecimal§oracle_stale_time: u64§master_address: StringTrait Implementations§
source§impl Clone for SpotInstantiateMsg
impl Clone for SpotInstantiateMsg
source§fn clone(&self) -> SpotInstantiateMsg
fn clone(&self) -> SpotInstantiateMsg
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 SpotInstantiateMsg
impl Debug for SpotInstantiateMsg
source§impl<'de> Deserialize<'de> for SpotInstantiateMsg
impl<'de> Deserialize<'de> for SpotInstantiateMsg
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 SpotInstantiateMsg
impl JsonSchema for SpotInstantiateMsg
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 SpotInstantiateMsg
impl PartialEq for SpotInstantiateMsg
source§fn eq(&self, other: &SpotInstantiateMsg) -> bool
fn eq(&self, other: &SpotInstantiateMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SpotInstantiateMsg
impl Serialize for SpotInstantiateMsg
impl Eq for SpotInstantiateMsg
impl StructuralPartialEq for SpotInstantiateMsg
Auto Trait Implementations§
impl Freeze for SpotInstantiateMsg
impl RefUnwindSafe for SpotInstantiateMsg
impl Send for SpotInstantiateMsg
impl Sync for SpotInstantiateMsg
impl Unpin for SpotInstantiateMsg
impl UnwindSafe for SpotInstantiateMsg
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)