Enum shuttle_core::Operation
[−]
[src]
pub enum Operation { CreateAccount(CreateAccountOperation), Payment(PaymentOperation), PathPayment(PathPaymentOperation), ManageOffer(ManageOfferOperation), CreatePassiveOffer(CreatePassiveOfferOperation), SetOptions, ChangeTrust, AllowTrust, AccountMerge, Inflation(InflationOperation), ManageData(ManageDataOperation), }
An operation that mutates the ledger.
Variants
CreateAccount(CreateAccountOperation)
Create new account.
Payment(PaymentOperation)
Send payment.
PathPayment(PathPaymentOperation)
Send specified payment to account, optionally through path.
ManageOffer(ManageOfferOperation)
Create, update, and delete offer.
CreatePassiveOffer(CreatePassiveOfferOperation)
Create an offer that won't consume a counter offer.
SetOptions
Set or clear account flags.
ChangeTrust
Add, update, or remove a trust line.
AllowTrust
Allow another account to hold the account credit for an asset.
AccountMerge
Transfer balance to destination account.
Inflation(InflationOperation)
Generate inflation.
ManageData(ManageDataOperation)
Add, update, or remove account data.
Trait Implementations
impl Debug for Operation
[src]
impl Clone for Operation
[src]
fn clone(&self) -> Operation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Operation
[src]
fn eq(&self, __arg_0: &Operation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Operation) -> bool
[src]
This method tests for !=
.
impl Eq for Operation
[src]
impl ToXdr<Operation> for Operation
[src]
fn to_xdr(&self) -> Result<Operation>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
[src]
Serialize to the writer w
.
fn to_base64(&self) -> Result<String>
[src]
Serialize to base64.