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

Sets a cursor on the struct and returns an owned version.

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

Implementors