use crate::stellar_sdk::{
endpoints::horizon::Record,
utils::{Direction, Endpoint},
};
pub trait CallBuilder<T> {
fn cursor(&mut self, cursor: &str) -> &mut Self;
fn order(&mut self, dir: Direction) -> &mut Self;
fn limit(&mut self, limit_number: u8) -> &mut Self;
fn call(&self) -> Result<Record<T>, anyhow::Error>;
fn for_endpoint(&mut self, endpoint: Endpoint) -> &mut Self;
}