Trait stellar_client::endpoint::Order [−][src]
pub trait Order {
fn with_order(self, order: Direction) -> Self;
fn order(&self) -> Option<Direction>;
}Declares that this endpoint has an order field and can have it set.
Example
use stellar_client::endpoint::{Direction, Order, transaction}; let txns = transaction::All::default(); assert_eq!(txns.order(), None); let txns = txns.with_order(Direction::Asc); assert_eq!(txns.order(), Some(Direction::Asc));
Required Methods
fn with_order(self, order: Direction) -> Self
Sets the order on the struct and returns an owned version.
fn order(&self) -> Option<Direction>
Returns the order that has been set, if it has been set.
Implementors
impl Order for Tradesimpl Order for stellar_client::endpoint::account::Transactionsimpl Order for stellar_client::endpoint::account::Effectsimpl Order for stellar_client::endpoint::account::Operationsimpl Order for stellar_client::endpoint::account::Paymentsimpl Order for Offersimpl Order for stellar_client::endpoint::asset::Allimpl Order for stellar_client::endpoint::effect::Allimpl Order for stellar_client::endpoint::ledger::Allimpl Order for stellar_client::endpoint::ledger::Paymentsimpl Order for stellar_client::endpoint::ledger::Transactionsimpl Order for stellar_client::endpoint::ledger::Effectsimpl Order for stellar_client::endpoint::ledger::Operationsimpl Order for stellar_client::endpoint::operation::Allimpl Order for stellar_client::endpoint::operation::Effectsimpl Order for stellar_client::endpoint::payment::Allimpl Order for stellar_client::endpoint::trade::Allimpl Order for Aggregationsimpl Order for stellar_client::endpoint::transaction::Allimpl Order for stellar_client::endpoint::transaction::Effectsimpl Order for stellar_client::endpoint::transaction::Paymentsimpl Order for stellar_client::endpoint::transaction::Operations