Enum stellar_client::resources::TradeSeller[][src]

pub enum TradeSeller {
    Base,
    Counter,
}

The seller involved in the trade.

Variants

The base created the sell offer.

The counter created the sell offer.

Methods

impl Seller
[src]

Returns whether the seller is the base

use stellar_client::resources::TradeSeller;
let seller = TradeSeller::Base;
assert!(seller.is_base());

Returns whether the seller is the counter

use stellar_client::resources::TradeSeller;
let seller = TradeSeller::Counter;
assert!(seller.is_counter());

Trait Implementations

impl Eq for Seller
[src]

impl PartialEq for Seller
[src]

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

This method tests for !=.

impl Debug for Seller
[src]

Formats the value using the given formatter. Read more

impl Copy for Seller
[src]

impl Clone for Seller
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for TradeSeller

impl Sync for TradeSeller