Struct crypto_market::Order [] [src]

pub struct Order {
    pub kind: OrderKind,
    pub rate: f32,
    pub volume: f32,
    pub total: Option<f32>,
}

Currency order details.

It's format used in databases and streams, in places where currency pair is always known.

Fields

Order kind, which is an Ask or a Bid.

Price rate is a price of a unit.

Order volume.

Order total value.

Methods

impl Order
[src]

[src]

Gets total order value from struct. It is calculated if total contains None value.

[src]

Sets calculated total value.

Trait Implementations

impl PartialEq for Order
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for Order
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Order
[src]

[src]

Formats the value using the given formatter.