Trait stellar_client::endpoint::Limit [−][src]
pub trait Limit {
fn with_limit(self, limit: u32) -> Self;
fn limit(&self) -> Option<u32>;
}Declares that this endpoint has a limit and can have it set.
Example
use stellar_client::endpoint::{Limit, transaction}; let txns = transaction::All::default().with_limit(2);
Required Methods
fn with_limit(self, limit: u32) -> Self
Sets a limit on the struct and returns an owned version.
fn limit(&self) -> Option<u32>
Returns the limit or None.
Implementors
impl Limit for Tradesimpl Limit for stellar_client::endpoint::account::Transactionsimpl Limit for stellar_client::endpoint::account::Effectsimpl Limit for stellar_client::endpoint::account::Operationsimpl Limit for stellar_client::endpoint::account::Paymentsimpl Limit for Offersimpl Limit for stellar_client::endpoint::asset::Allimpl Limit for stellar_client::endpoint::effect::Allimpl Limit for stellar_client::endpoint::ledger::Allimpl Limit for stellar_client::endpoint::ledger::Paymentsimpl Limit for stellar_client::endpoint::ledger::Transactionsimpl Limit for stellar_client::endpoint::ledger::Effectsimpl Limit for stellar_client::endpoint::ledger::Operationsimpl Limit for stellar_client::endpoint::operation::Allimpl Limit for stellar_client::endpoint::operation::Effectsimpl Limit for Detailsimpl Limit for stellar_client::endpoint::payment::Allimpl Limit for stellar_client::endpoint::trade::Allimpl Limit for Aggregationsimpl Limit for stellar_client::endpoint::transaction::Allimpl Limit for stellar_client::endpoint::transaction::Effectsimpl Limit for stellar_client::endpoint::transaction::Paymentsimpl Limit for stellar_client::endpoint::transaction::Operations