pub struct UpdatePerpMarketArgs {Show 19 fields
pub market_id: MarketId,
pub impact_margin: Option<PositiveDecimal>,
pub interest_rate: Option<SurrogateDecimal>,
pub leverage_table_args: Option<SurrogateLeverageTableArgs>,
pub maker_fees_tenth_bps: Option<Vec<i16>>,
pub max_funding_rate_clamp: Option<SurrogateDecimal>,
pub max_interest_rate_clamp: Option<SurrogateDecimal>,
pub max_oi_notional: Option<PositiveDecimal>,
pub max_order_to_mark_price_deviation_ratio: Option<PositiveDecimal>,
pub max_order_to_trigger_price_deviation_ratio: Option<PositiveDecimal>,
pub max_orders_per_side: Option<u16>,
pub max_orders_per_user: Option<u16>,
pub max_trigger_orders_per_user: Option<u16>,
pub max_trigger_to_comparison_price_deviation_ratio: Option<PositiveDecimal>,
pub min_funding_rate_clamp: Option<SurrogateDecimal>,
pub min_interest_rate_clamp: Option<SurrogateDecimal>,
pub min_lot_size: Option<PositiveDecimal>,
pub min_tick_size: Option<PositiveDecimal>,
pub taker_fees_tenth_bps: Option<Vec<i16>>,
}Fields§
§market_id: MarketId§impact_margin: Option<PositiveDecimal>§interest_rate: Option<SurrogateDecimal>§leverage_table_args: Option<SurrogateLeverageTableArgs>§maker_fees_tenth_bps: Option<Vec<i16>>§max_funding_rate_clamp: Option<SurrogateDecimal>§max_interest_rate_clamp: Option<SurrogateDecimal>§max_oi_notional: Option<PositiveDecimal>§max_order_to_mark_price_deviation_ratio: Option<PositiveDecimal>§max_order_to_trigger_price_deviation_ratio: Option<PositiveDecimal>§max_orders_per_side: Option<u16>§max_orders_per_user: Option<u16>§max_trigger_orders_per_user: Option<u16>§max_trigger_to_comparison_price_deviation_ratio: Option<PositiveDecimal>§min_funding_rate_clamp: Option<SurrogateDecimal>§min_interest_rate_clamp: Option<SurrogateDecimal>§min_lot_size: Option<PositiveDecimal>§min_tick_size: Option<PositiveDecimal>§taker_fees_tenth_bps: Option<Vec<i16>>Trait Implementations§
Source§impl BorshDeserialize for UpdatePerpMarketArgs
impl BorshDeserialize for UpdatePerpMarketArgs
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§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.
Source§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 Clone for UpdatePerpMarketArgs
impl Clone for UpdatePerpMarketArgs
Source§fn clone(&self) -> UpdatePerpMarketArgs
fn clone(&self) -> UpdatePerpMarketArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdatePerpMarketArgs
impl Debug for UpdatePerpMarketArgs
Source§impl<'de> Deserialize<'de> for UpdatePerpMarketArgs
impl<'de> Deserialize<'de> for UpdatePerpMarketArgs
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 Hash for UpdatePerpMarketArgs
impl Hash for UpdatePerpMarketArgs
Source§impl JsonSchema for UpdatePerpMarketArgs
impl JsonSchema for UpdatePerpMarketArgs
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 Ord for UpdatePerpMarketArgs
impl Ord for UpdatePerpMarketArgs
Source§fn cmp(&self, other: &UpdatePerpMarketArgs) -> Ordering
fn cmp(&self, other: &UpdatePerpMarketArgs) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UpdatePerpMarketArgs
impl PartialEq for UpdatePerpMarketArgs
Source§fn eq(&self, other: &UpdatePerpMarketArgs) -> bool
fn eq(&self, other: &UpdatePerpMarketArgs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UpdatePerpMarketArgs
impl PartialOrd for UpdatePerpMarketArgs
Source§impl Serialize for UpdatePerpMarketArgs
impl Serialize for UpdatePerpMarketArgs
Source§impl UniversalWallet for UpdatePerpMarketArgswhere
Self: 'static,
MarketId: UniversalWallet,
Option<PositiveDecimal>: UniversalWallet,
Option<SurrogateDecimal>: UniversalWallet,
Option<SurrogateLeverageTableArgs>: UniversalWallet,
Option<Vec<i16>>: UniversalWallet,
Option<u16>: UniversalWallet,
impl UniversalWallet for UpdatePerpMarketArgswhere
Self: 'static,
MarketId: UniversalWallet,
Option<PositiveDecimal>: UniversalWallet,
Option<SurrogateDecimal>: UniversalWallet,
Option<SurrogateLeverageTableArgs>: UniversalWallet,
Option<Vec<i16>>: UniversalWallet,
Option<u16>: UniversalWallet,
Source§fn scaffold() -> Item<IndexLinking>
fn scaffold() -> Item<IndexLinking>
Generate the “scaffolding” of the item. If the item is a primtive, this is just the corresponding primtive.
If the type is composed of other types, this is the container with all links set to
Link::Placeholder.Source§fn get_child_links(schema: &mut Schema) -> Vec<Link>
fn get_child_links(schema: &mut Schema) -> Vec<Link>
Ensure that each type contained in the outer type (i.e. the type of each struct/tuple field) is added to the schema,
and return a
Link connecting the child to the parent. Read moreSource§fn get_child_templates(schema: &mut Schema) -> TransactionTemplateSet
fn get_child_templates(schema: &mut Schema) -> TransactionTemplateSet
Empty by default
When derived by the macro, builds a template set from annotations on the fields + the field
types’ own get_child_templates()
Source§fn write_schema(schema: &mut Schema) -> Link
fn write_schema(schema: &mut Schema) -> Link
Writes the type to the schema if it is not already present and returns a link to it. Read more
Source§fn make_root_of(schema: &mut Schema)
fn make_root_of(schema: &mut Schema)
Writes the type and all its children to the schema, if not already present, and sets the
type as a root type. Generates any templates defined on that type.
Source§fn make_linkable(schema: &mut Schema) -> Link
fn make_linkable(schema: &mut Schema) -> Link
Gets a link to the type, writing the type to the schema if necessary.
Source§fn id_override() -> Option<ItemId>
fn id_override() -> Option<ItemId>
Override the type ID of the item. This should typically not be written by hand. Instead,
use the
OverrideSchema trait.impl Eq for UpdatePerpMarketArgs
impl StructuralPartialEq for UpdatePerpMarketArgs
Auto Trait Implementations§
impl Freeze for UpdatePerpMarketArgs
impl RefUnwindSafe for UpdatePerpMarketArgs
impl Send for UpdatePerpMarketArgs
impl Sync for UpdatePerpMarketArgs
impl Unpin for UpdatePerpMarketArgs
impl UnsafeUnpin for UpdatePerpMarketArgs
impl UnwindSafe for UpdatePerpMarketArgs
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