Enum crypto_market::OrderKind [] [src]

pub enum OrderKind {
    Ask,
    Bid,
}

Order kind can be either Ask when we are selling or a Bid when we are trying to buy something.

Variants

Ask or a sell.

Bid or a buy.

Trait Implementations

impl PartialEq for OrderKind
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Clone for OrderKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for OrderKind
[src]

[src]

Formats the value using the given formatter.

impl TryFrom<i64> for OrderKind
[src]

Tries to convert from integer to OrderKind. Ask is 0 and Bid is `1.

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.