pub struct BackstopLiquidatePerpPositionArgs {
pub market_id: MarketId,
pub size: PositiveDecimal,
}Fields§
§market_id: MarketId§size: PositiveDecimalTrait Implementations§
Source§impl BorshDeserialize for BackstopLiquidatePerpPositionArgs
impl BorshDeserialize for BackstopLiquidatePerpPositionArgs
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 BackstopLiquidatePerpPositionArgs
impl Clone for BackstopLiquidatePerpPositionArgs
Source§fn clone(&self) -> BackstopLiquidatePerpPositionArgs
fn clone(&self) -> BackstopLiquidatePerpPositionArgs
Returns a duplicate 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<'de> Deserialize<'de> for BackstopLiquidatePerpPositionArgs
impl<'de> Deserialize<'de> for BackstopLiquidatePerpPositionArgs
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 BackstopLiquidatePerpPositionArgs
impl JsonSchema for BackstopLiquidatePerpPositionArgs
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 BackstopLiquidatePerpPositionArgs
impl Ord for BackstopLiquidatePerpPositionArgs
Source§fn cmp(&self, other: &BackstopLiquidatePerpPositionArgs) -> Ordering
fn cmp(&self, other: &BackstopLiquidatePerpPositionArgs) -> Ordering
1.21.0 · 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 BackstopLiquidatePerpPositionArgs
impl PartialEq for BackstopLiquidatePerpPositionArgs
Source§fn eq(&self, other: &BackstopLiquidatePerpPositionArgs) -> bool
fn eq(&self, other: &BackstopLiquidatePerpPositionArgs) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BackstopLiquidatePerpPositionArgs
impl PartialOrd for BackstopLiquidatePerpPositionArgs
impl Eq for BackstopLiquidatePerpPositionArgs
impl StructuralPartialEq for BackstopLiquidatePerpPositionArgs
Auto Trait Implementations§
impl Freeze for BackstopLiquidatePerpPositionArgs
impl RefUnwindSafe for BackstopLiquidatePerpPositionArgs
impl Send for BackstopLiquidatePerpPositionArgs
impl Sync for BackstopLiquidatePerpPositionArgs
impl Unpin for BackstopLiquidatePerpPositionArgs
impl UnsafeUnpin for BackstopLiquidatePerpPositionArgs
impl UnwindSafe for BackstopLiquidatePerpPositionArgs
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