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
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();
Fetches the record for a specified trade pair.
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.
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();
Formats the value using the given formatter. Read more
Returns the "default value" for a type. Read more
Performs copy-assignment from source. Read more
Sets a cursor on the struct and returns an owned version.
Returns the cursor that has been set, if it has been set.
Sets a limit on the struct and returns an owned version.
Returns the limit or None.
Sets the order on the struct and returns an owned version.
Returns the order that has been set, if it has been set.
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