pub struct Details { /* fields omitted */ }The operation details endpoint provides information on a single operation. The operation ID
provided in the id argument specifies which operation to load.
https://www.stellar.org/developers/horizon/reference/endpoints/operations-single.html
use stellar_client::sync::Client;
use stellar_client::endpoint::{operation, Limit};
let client = Client::horizon_test().unwrap();
let all = operation::All::default().with_limit(1);
let all = client.request(all).unwrap();
let operation_id = all.records()[0].id();
let details = operation::Details::new(operation_id);
let operation = client.request(details).unwrap();
assert_eq!(operation.id(), operation_id);
Creates a new endpoint struct for use in requesting details about
an operation.
use stellar_client::endpoint::operation;
let details = operation::Details::new(123);
Formats the value using the given formatter. Read more
Performs copy-assignment from source. Read more
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