Struct stellar_client::resources::operation::Operation [−][src]
pub struct Operation { /* fields omitted */ }Operations are objects that represent a desired change to the ledger: payments, offers to exchange currency, changes made to account options, etc. Operations are submitted to the Stellar network grouped in a Transaction.
Methods
impl Operation[src]
impl Operationpub fn id(&self) -> i64[src]
pub fn id(&self) -> i64The canonical id of this operation, suitable for use as the :id parameter for url templates that require an operation’s ID.
pub fn paging_token(&self) -> &str[src]
pub fn paging_token(&self) -> &strA paging token suitable for use as a cursor parameter.
pub fn transaction(&self) -> &str[src]
pub fn transaction(&self) -> &strThe hash for the transaction that the operation was part of
pub fn type_i(&self) -> u32[src]
pub fn type_i(&self) -> u32Specifies the type of operation, See “Types” section below for reference.
pub fn kind(&self) -> &Kind[src]
pub fn kind(&self) -> &KindReturns the kind of the operation
pub fn kind_name(&self) -> &str[src]
pub fn kind_name(&self) -> &strReturns the name of the operation kind
pub fn is_create_account(&self) -> bool[src]
pub fn is_create_account(&self) -> boolReturns true if the operation is a create_account operation
pub fn is_payment(&self) -> bool[src]
pub fn is_payment(&self) -> boolReturns true if the operation is a payment operation
pub fn is_path_payment(&self) -> bool[src]
pub fn is_path_payment(&self) -> boolReturns true if the operation is a path payment operation
pub fn is_manage_offer(&self) -> bool[src]
pub fn is_manage_offer(&self) -> boolReturns true if the operation is a manage offer operation
pub fn is_create_passive_offer(&self) -> bool[src]
pub fn is_create_passive_offer(&self) -> boolReturns true if the operation is a create passive offer operation
pub fn is_set_options(&self) -> bool[src]
pub fn is_set_options(&self) -> boolReturns true if the operation is a set options offer operation
pub fn is_inflation(&self) -> bool[src]
pub fn is_inflation(&self) -> boolReturns true if the operation is an inflation operation
pub fn is_change_trust(&self) -> bool[src]
pub fn is_change_trust(&self) -> boolReturns true if the operation is a change trust operation
pub fn is_allow_trust(&self) -> bool[src]
pub fn is_allow_trust(&self) -> boolReturns true if the operation is an allow trust operation
pub fn is_account_merge(&self) -> bool[src]
pub fn is_account_merge(&self) -> boolReturns true if the operation is an account merge operation
pub fn is_manage_data(&self) -> bool[src]
pub fn is_manage_data(&self) -> boolReturns true if the operation is a manage data operation
Trait Implementations
impl Debug for Operation[src]
impl Debug for Operationfn 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 Operation[src]
impl Clone for Operationfn clone(&self) -> Operation[src]
fn clone(&self) -> OperationReturns 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<'de> Deserialize<'de> for Operation[src]
impl<'de> Deserialize<'de> for Operationfn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more