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