Struct mito_protocol::vault::AmmInstantiateMsg
source · pub struct AmmInstantiateMsg {Show 13 fields
pub config_owner: String,
pub market_id: MarketId,
pub master_address: String,
pub order_density: u8,
pub max_invariant_sensitivity_bps: FPDecimal,
pub max_price_sensitivity_bps: FPDecimal,
pub pricing_strategy: PricingStrategy,
pub base_decimals: u8,
pub quote_decimals: u8,
pub fee_bps: u32,
pub notional_value_cap: FPDecimal,
pub first_subscriber_address: Option<String>,
pub order_type: AmmOrderType,
}Fields§
§config_owner: String§market_id: MarketId§master_address: String§order_density: u8§max_invariant_sensitivity_bps: FPDecimal§max_price_sensitivity_bps: FPDecimal§pricing_strategy: PricingStrategy§base_decimals: u8§quote_decimals: u8§fee_bps: u32§notional_value_cap: FPDecimal§first_subscriber_address: Option<String>§order_type: AmmOrderTypeTrait Implementations§
source§impl Clone for AmmInstantiateMsg
impl Clone for AmmInstantiateMsg
source§fn clone(&self) -> AmmInstantiateMsg
fn clone(&self) -> AmmInstantiateMsg
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 AmmInstantiateMsg
impl Debug for AmmInstantiateMsg
source§impl<'de> Deserialize<'de> for AmmInstantiateMsg
impl<'de> Deserialize<'de> for AmmInstantiateMsg
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 AmmInstantiateMsg
impl JsonSchema for AmmInstantiateMsg
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 AmmInstantiateMsg
impl PartialEq for AmmInstantiateMsg
source§fn eq(&self, other: &AmmInstantiateMsg) -> bool
fn eq(&self, other: &AmmInstantiateMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AmmInstantiateMsg
impl Serialize for AmmInstantiateMsg
impl Eq for AmmInstantiateMsg
impl StructuralPartialEq for AmmInstantiateMsg
Auto Trait Implementations§
impl Freeze for AmmInstantiateMsg
impl RefUnwindSafe for AmmInstantiateMsg
impl Send for AmmInstantiateMsg
impl Sync for AmmInstantiateMsg
impl Unpin for AmmInstantiateMsg
impl UnwindSafe for AmmInstantiateMsg
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)