Struct stellar_client::endpoint::transaction::Payments[][src]

pub struct Payments { /* fields omitted */ }

Returns the payments associated with a singular transactions.

https://www.stellar.org/developers/horizon/reference/endpoints/payments-for-transaction.html

Example

use stellar_client::sync::Client;
use stellar_client::endpoint::{transaction, payment, Limit};

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

// Grab a payment from the all payments end point
let payments = client.request(payment::All::default().with_limit(1)).unwrap();
let payment = &payments.records()[0];

// All "operations" have transaction hashes, and a payment is a type of operation
let hash = payment.transaction();

let payments = client.request(transaction::Payments::new(hash)).unwrap();

assert!(payments.records().len() > 0);
assert_eq!(payments.records()[0].transaction(), hash);

Methods

impl Payments
[src]

Creates a new struct representing a request to the payments endpoint

Trait Implementations

impl Debug for Payments
[src]

Formats the value using the given formatter. Read more

impl Clone for Payments
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Cursor for Payments
[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 Payments
[src]

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

Returns the limit or None.

impl Order for Payments
[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 Payments
[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 Payments

impl Sync for Payments