pub struct PerpCreateMarket {
Show 27 fields pub perp_market_index: PerpMarketIndex, pub name: String, pub oracle_config: OracleConfigParams, pub base_decimals: u8, pub quote_lot_size: i64, pub base_lot_size: i64, pub maint_base_asset_weight: f32, pub init_base_asset_weight: f32, pub maint_base_liab_weight: f32, pub init_base_liab_weight: f32, pub maint_overall_asset_weight: f32, pub init_overall_asset_weight: f32, pub base_liquidation_fee: f32, pub maker_fee: f32, pub taker_fee: f32, pub min_funding: f32, pub max_funding: f32, pub impact_quantity: i64, pub group_insurance_fund: bool, pub fee_penalty: f32, pub settle_fee_flat: f32, pub settle_fee_amount_threshold: f32, pub settle_fee_fraction_low_health: f32, pub settle_token_index: TokenIndex, pub settle_pnl_limit_factor: f32, pub settle_pnl_limit_window_size_ts: u64, pub positive_pnl_liquidation_fee: f32,
}
Expand description

Instruction.

Fields

perp_market_index: PerpMarketIndexname: Stringoracle_config: OracleConfigParamsbase_decimals: u8quote_lot_size: i64base_lot_size: i64maint_base_asset_weight: f32init_base_asset_weight: f32maint_base_liab_weight: f32init_base_liab_weight: f32maint_overall_asset_weight: f32init_overall_asset_weight: f32base_liquidation_fee: f32maker_fee: f32taker_fee: f32min_funding: f32max_funding: f32impact_quantity: i64group_insurance_fund: boolfee_penalty: f32settle_fee_flat: f32settle_fee_amount_threshold: f32settle_fee_fraction_low_health: f32settle_token_index: TokenIndexsettle_pnl_limit_factor: f32settle_pnl_limit_window_size_ts: u64positive_pnl_liquidation_fee: f32

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Serialize this instance into a vector of bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Casts the value.
Casts the value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Casts the value.
Casts the value.