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

Sets the order on the struct and returns an owned version.

Returns the order that has been set, if it has been set.

Implementors