Struct stellar_client::endpoint::trade::All[][src]

pub struct All { /* fields omitted */ }

Represents the all trades endpoint for the stellar horizon server. The endpoint will return all trades filtered by a myriad of different query params.

https://www.stellar.org/developers/horizon/reference/endpoints/trades.html

Example

use stellar_client::sync::Client;
use stellar_client::endpoint::trade;

let client      = Client::horizon_test().unwrap();
let endpoint    = trade::All::default();
let records     = client.request(endpoint).unwrap();

Methods

impl All
[src]

Fetches the record for a specified trade pair.

Example

use stellar_client::sync::Client;
use stellar_client::endpoint::trade;
use stellar_client::resources::AssetIdentifier;

let base_asset = AssetIdentifier::native();
let counter_asset = AssetIdentifier::native();

let client      = Client::horizon_test().unwrap();
let endpoint    = trade::All::default().with_asset_pair(base_asset, counter_asset);
let records     = client.request(endpoint).unwrap();

Fetches the record for a specific trade filtered by offer id.

Example

use stellar_client::sync::Client;
use stellar_client::endpoint::trade;

let client      = Client::horizon_test().unwrap();
let endpoint    = trade::All::default().with_offer_id(100);
let records     = client.request(endpoint).unwrap();

Trait Implementations

impl Debug for All
[src]

Formats the value using the given formatter. Read more

impl Default for All
[src]

Returns the "default value" for a type. Read more

impl Clone for All
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Cursor for All
[src]

Sets a cursor on the struct and returns an owned version.

Returns the cursor that has been set, if it has been set.

impl Limit for All
[src]

Sets a limit on the struct and returns an owned version.

Returns the limit or None.

impl Order for All
[src]

Sets the order on the struct and returns an owned version.

Returns the order that has been set, if it has been set.

impl IntoRequest for All
[src]

The deserializable type that is expected to come back from the stellar server.

The request body to be sent to stellar. Generally this is just a () unit. Converts the implementing struct into an http request. Read more

Auto Trait Implementations

impl Send for All

impl Sync for All