Trait stellar_horizon::request::PageRequest
source · pub trait PageRequest: Request {
// Required methods
fn with_cursor(self, cursor: &str) -> Self;
fn cursor(&self) -> &Option<String>;
fn with_limit(self, limit: u64) -> Self;
fn limit(&self) -> &Option<u64>;
fn with_order(self, direction: &Order) -> Self;
fn order(&self) -> &Option<Order>;
}
Expand description
Horizon page request trait.
Required Methods§
sourcefn with_cursor(self, cursor: &str) -> Self
fn with_cursor(self, cursor: &str) -> Self
Set the request cursor.
sourcefn with_limit(self, limit: u64) -> Self
fn with_limit(self, limit: u64) -> Self
Set the request limit.
sourcefn with_order(self, direction: &Order) -> Self
fn with_order(self, direction: &Order) -> Self
Set the request order.
Object Safety§
This trait is not object safe.