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

pub struct Effects { /* fields omitted */ }
use stellar_client::sync::Client;
use stellar_client::endpoint::{transaction, effect, Limit};

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

// Grab a transaction from the all transactions endpoint
let transaction_ep   = transaction::All::default().with_limit(1);
let txns             = client.request(transaction_ep).unwrap();
let txn              = &txns.records()[0];
let hash             = txn.hash();

// Issue a request for that transactions's effects
let endpoint = transaction::Effects::new(hash);
let effects  = client.request(endpoint).unwrap();

assert!(effects.records().len() > 0);

Methods

impl Effects
[src]

Returns a new endpoint for effects. Hand this to the client in order to request effects for a specific transaction by hash

Trait Implementations

impl Debug for Effects
[src]

Formats the value using the given formatter. Read more

impl Clone for Effects
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Returns the limit or None.

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

impl Sync for Effects