Struct stellar_client::endpoint::Records [−][src]
pub struct Records<T> where
T: DeserializeOwned, { /* fields omitted */ }A struct that represents a set of records returned from the horizon api.
Use this struct when querying an end point that returns an index route with embedded resources. There will also be a links object in the returned value that will provide access to the cursor to paginate.
Methods
impl<T> Records<T> where
T: DeserializeOwned, [src]
impl<T> Records<T> where
T: DeserializeOwned, pub fn records(&self) -> &Vec<T>[src]
pub fn records(&self) -> &Vec<T>Returns a slice of the embedded records.
pub fn next(&self) -> Option<&Uri>[src]
pub fn next(&self) -> Option<&Uri>Returns the uri to the next page.
pub fn prev(&self) -> Option<&Uri>[src]
pub fn prev(&self) -> Option<&Uri>Returns the uri to the previous page.
Trait Implementations
impl<T: Debug> Debug for Records<T> where
T: DeserializeOwned, [src]
impl<T: Debug> Debug for Records<T> where
T: DeserializeOwned, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'de, T> Deserialize<'de> for Records<T> where
T: DeserializeOwned, [src]
impl<'de, T> Deserialize<'de> for Records<T> where
T: DeserializeOwned, fn deserialize<D>(d: D) -> Result<Records<T>, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(d: D) -> Result<Records<T>, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more