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: String
Implementations§
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 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 PartialEq for OrderPlacement
impl PartialEq for OrderPlacement
Source§impl Serialize for OrderPlacement
impl Serialize for OrderPlacement
impl StructuralPartialEq for OrderPlacement
Auto Trait Implementations§
impl Freeze for OrderPlacement
impl RefUnwindSafe for OrderPlacement
impl Send for OrderPlacement
impl Sync for OrderPlacement
impl Unpin for OrderPlacement
impl UnwindSafe for OrderPlacement
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