pi_rust 0.1.2

Pi Network SDK Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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;
}