Struct stellar_client::endpoint::operation::Details[][src]

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

Example

use stellar_client::sync::Client;
use stellar_client::endpoint::{operation, Limit};

let client = Client::horizon_test().unwrap();

// Grab an operation so that we know that we can request one from
// horizon that actually exists.
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);

Methods

impl Details
[src]

Creates a new endpoint struct for use in requesting details about an operation.

Example

use stellar_client::endpoint::operation;

let details = operation::Details::new(123);

Trait Implementations

impl Debug for Details
[src]

Formats the value using the given formatter. Read more

impl Clone for Details
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Details
[src]

impl IntoRequest for Details
[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 Details

impl Sync for Details