Enum stellar_client::resources::TradeSeller [−][src]
pub enum TradeSeller {
Base,
Counter,
}The seller involved in the trade.
Variants
BaseThe base created the sell offer.
CounterThe counter created the sell offer.
Methods
impl Seller[src]
impl Sellerpub fn is_base(&self) -> bool[src]
pub fn is_base(&self) -> boolReturns whether the seller is the base
use stellar_client::resources::TradeSeller; let seller = TradeSeller::Base; assert!(seller.is_base());
pub fn is_counter(&self) -> bool[src]
pub fn is_counter(&self) -> boolReturns 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 Eq for Sellerimpl PartialEq for Seller[src]
impl PartialEq for Sellerfn eq(&self, other: &Seller) -> bool[src]
fn eq(&self, other: &Seller) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Debug for Seller[src]
impl Debug for Sellerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Seller[src]
impl Copy for Sellerimpl Clone for Seller[src]
impl Clone for SellerAuto Trait Implementations
impl Send for TradeSeller
impl Send for TradeSellerimpl Sync for TradeSeller
impl Sync for TradeSeller