Struct mango_v4::instruction::PerpEditMarket
source · pub struct PerpEditMarket {Show 31 fields
pub oracle_opt: Option<Pubkey>,
pub oracle_config_opt: Option<OracleConfigParams>,
pub base_decimals_opt: Option<u8>,
pub maint_base_asset_weight_opt: Option<f32>,
pub init_base_asset_weight_opt: Option<f32>,
pub maint_base_liab_weight_opt: Option<f32>,
pub init_base_liab_weight_opt: Option<f32>,
pub maint_overall_asset_weight_opt: Option<f32>,
pub init_overall_asset_weight_opt: Option<f32>,
pub base_liquidation_fee_opt: Option<f32>,
pub maker_fee_opt: Option<f32>,
pub taker_fee_opt: Option<f32>,
pub min_funding_opt: Option<f32>,
pub max_funding_opt: Option<f32>,
pub impact_quantity_opt: Option<i64>,
pub group_insurance_fund_opt: Option<bool>,
pub fee_penalty_opt: Option<f32>,
pub settle_fee_flat_opt: Option<f32>,
pub settle_fee_amount_threshold_opt: Option<f32>,
pub settle_fee_fraction_low_health_opt: Option<f32>,
pub stable_price_delay_interval_seconds_opt: Option<u32>,
pub stable_price_delay_growth_limit_opt: Option<f32>,
pub stable_price_growth_limit_opt: Option<f32>,
pub settle_pnl_limit_factor_opt: Option<f32>,
pub settle_pnl_limit_window_size_ts_opt: Option<u64>,
pub reduce_only_opt: Option<bool>,
pub reset_stable_price: bool,
pub positive_pnl_liquidation_fee_opt: Option<f32>,
pub name_opt: Option<String>,
pub force_close_opt: Option<bool>,
pub platform_liquidation_fee_opt: Option<f32>,
}
Expand description
Instruction.
Fields§
§oracle_opt: Option<Pubkey>
§oracle_config_opt: Option<OracleConfigParams>
§base_decimals_opt: Option<u8>
§maint_base_asset_weight_opt: Option<f32>
§init_base_asset_weight_opt: Option<f32>
§maint_base_liab_weight_opt: Option<f32>
§init_base_liab_weight_opt: Option<f32>
§maint_overall_asset_weight_opt: Option<f32>
§init_overall_asset_weight_opt: Option<f32>
§base_liquidation_fee_opt: Option<f32>
§maker_fee_opt: Option<f32>
§taker_fee_opt: Option<f32>
§min_funding_opt: Option<f32>
§max_funding_opt: Option<f32>
§impact_quantity_opt: Option<i64>
§group_insurance_fund_opt: Option<bool>
§fee_penalty_opt: Option<f32>
§settle_fee_flat_opt: Option<f32>
§settle_fee_amount_threshold_opt: Option<f32>
§settle_fee_fraction_low_health_opt: Option<f32>
§stable_price_delay_interval_seconds_opt: Option<u32>
§stable_price_delay_growth_limit_opt: Option<f32>
§stable_price_growth_limit_opt: Option<f32>
§settle_pnl_limit_factor_opt: Option<f32>
§settle_pnl_limit_window_size_ts_opt: Option<u64>
§reduce_only_opt: Option<bool>
§reset_stable_price: bool
§positive_pnl_liquidation_fee_opt: Option<f32>
§name_opt: Option<String>
§force_close_opt: Option<bool>
§platform_liquidation_fee_opt: Option<f32>
Trait Implementations§
source§impl BorshDeserialize for PerpEditMarketwhere
Option<Pubkey>: BorshDeserialize,
Option<OracleConfigParams>: BorshDeserialize,
Option<u8>: BorshDeserialize,
Option<f32>: BorshDeserialize,
Option<i64>: BorshDeserialize,
Option<bool>: BorshDeserialize,
Option<u32>: BorshDeserialize,
Option<u64>: BorshDeserialize,
bool: BorshDeserialize,
Option<String>: BorshDeserialize,
impl BorshDeserialize for PerpEditMarketwhere Option<Pubkey>: BorshDeserialize, Option<OracleConfigParams>: BorshDeserialize, Option<u8>: BorshDeserialize, Option<f32>: BorshDeserialize, Option<i64>: BorshDeserialize, Option<bool>: BorshDeserialize, Option<u32>: BorshDeserialize, Option<u64>: BorshDeserialize, bool: BorshDeserialize, Option<String>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for PerpEditMarketwhere
Option<Pubkey>: BorshSerialize,
Option<OracleConfigParams>: BorshSerialize,
Option<u8>: BorshSerialize,
Option<f32>: BorshSerialize,
Option<i64>: BorshSerialize,
Option<bool>: BorshSerialize,
Option<u32>: BorshSerialize,
Option<u64>: BorshSerialize,
bool: BorshSerialize,
Option<String>: BorshSerialize,
impl BorshSerialize for PerpEditMarketwhere Option<Pubkey>: BorshSerialize, Option<OracleConfigParams>: BorshSerialize, Option<u8>: BorshSerialize, Option<f32>: BorshSerialize, Option<i64>: BorshSerialize, Option<bool>: BorshSerialize, Option<u32>: BorshSerialize, Option<u64>: BorshSerialize, bool: BorshSerialize, Option<String>: BorshSerialize,
source§impl Discriminator for PerpEditMarket
impl Discriminator for PerpEditMarket
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl RefUnwindSafe for PerpEditMarket
impl Send for PerpEditMarket
impl Sync for PerpEditMarket
impl Unpin for PerpEditMarket
impl UnwindSafe for PerpEditMarket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.