Struct vortex_common::msg::OrderPlacement
source · pub struct OrderPlacement {
pub id: u64,
pub status: i32,
pub account: String,
pub contract_address: String,
pub price_denom: String,
pub asset_denom: String,
pub price: Decimal,
pub quantity: Decimal,
pub order_type: i32,
pub position_direction: i32,
pub data: String,
pub status_description: String,
}Fields§
§id: u64§status: i32§account: String§contract_address: String§price_denom: String§asset_denom: String§price: Decimal§quantity: Decimal§order_type: i32§position_direction: i32§data: String§status_description: StringImplementations§
source§impl OrderPlacement
impl OrderPlacement
pub fn to_order(&self) -> Result<Order, ContractError>
Trait Implementations§
source§impl Clone for OrderPlacement
impl Clone for OrderPlacement
source§fn clone(&self) -> OrderPlacement
fn clone(&self) -> OrderPlacement
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 OrderPlacement
impl Debug for OrderPlacement
source§impl<'de> Deserialize<'de> for OrderPlacement
impl<'de> Deserialize<'de> for OrderPlacement
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 OrderPlacement
impl JsonSchema for OrderPlacement
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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<OrderPlacement> for OrderPlacement
impl PartialEq<OrderPlacement> for OrderPlacement
source§fn eq(&self, other: &OrderPlacement) -> bool
fn eq(&self, other: &OrderPlacement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.