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: u64status: i32account: Stringcontract_address: Stringprice_denom: Stringasset_denom: Stringprice: Decimalquantity: Decimalorder_type: i32position_direction: i32data: Stringstatus_description: StringImplementations
sourceimpl OrderPlacement
impl OrderPlacement
pub fn to_order(&self) -> Result<Order, ContractError>
Trait Implementations
sourceimpl Clone for OrderPlacement
impl Clone for OrderPlacement
sourcefn clone(&self) -> OrderPlacement
fn clone(&self) -> OrderPlacement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OrderPlacement
impl Debug for OrderPlacement
sourceimpl<'de> Deserialize<'de> for OrderPlacement
impl<'de> Deserialize<'de> for OrderPlacement
sourcefn 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
sourceimpl JsonSchema for OrderPlacement
impl JsonSchema for OrderPlacement
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl PartialEq<OrderPlacement> for OrderPlacement
impl PartialEq<OrderPlacement> for OrderPlacement
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &OrderPlacement) -> bool
fn ne(&self, other: &OrderPlacement) -> bool
This method tests for !=.
sourceimpl Serialize for OrderPlacement
impl Serialize for OrderPlacement
impl StructuralPartialEq for OrderPlacement
Auto Trait Implementations
impl RefUnwindSafe for OrderPlacement
impl Send for OrderPlacement
impl Sync for OrderPlacement
impl Unpin for OrderPlacement
impl UnwindSafe for OrderPlacement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more