Struct stellar_client::endpoint::operation::Effects [−][src]
pub struct Effects { /* fields omitted */ }The operation effects endpoint provides a set of effects that are associated with a single operation. The operation ID provided in the id argument specifies which operation to load.
https://www.stellar.org/developers/horizon/reference/endpoints/effects-for-operation.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 effects = operation::Effects::new(operation_id); let effects = client.request(effects).unwrap();
Methods
impl Effects[src]
impl Effectspub fn new(id: i64) -> Effects[src]
pub fn new(id: i64) -> EffectsCreates a new endpoint struct for use in requesting the effects for an operation.
Example
use stellar_client::endpoint::operation; let details = operation::Effects::new(123);
Trait Implementations
impl Debug for Effects[src]
impl Debug for Effectsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Effects[src]
impl Clone for Effectsfn clone(&self) -> Effects[src]
fn clone(&self) -> EffectsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Cursor for Effects[src]
impl Cursor for Effectsfn with_cursor(self, cursor: &str) -> Effects[src]
fn with_cursor(self, cursor: &str) -> EffectsSets a cursor on the struct and returns an owned version.
fn cursor(&self) -> Option<&str>[src]
fn cursor(&self) -> Option<&str>Returns the cursor that has been set, if it has been set.
impl Limit for Effects[src]
impl Limit for Effectsfn with_limit(self, limit: u32) -> Effects[src]
fn with_limit(self, limit: u32) -> EffectsSets a limit on the struct and returns an owned version.
fn limit(&self) -> Option<u32>[src]
fn limit(&self) -> Option<u32>Returns the limit or None.
impl Order for Effects[src]
impl Order for Effectsfn with_order(self, order: Direction) -> Effects[src]
fn with_order(self, order: Direction) -> EffectsSets the order on the struct and returns an owned version.
fn order(&self) -> Option<Direction>[src]
fn order(&self) -> Option<Direction>Returns the order that has been set, if it has been set.
impl IntoRequest for Effects[src]
impl IntoRequest for Effectstype Response = Records<Effect>
The deserializable type that is expected to come back from the stellar server.
fn into_request(self, host: &str) -> Result<Request<Body>>[src]
fn into_request(self, host: &str) -> Result<Request<Body>>The request body to be sent to stellar. Generally this is just a () unit. Converts the implementing struct into an http request. Read more