pub enum Operation {
CreateAccount(CreateAccountOperation),
Payment(PaymentOperation),
PathPayment(PathPaymentOperation),
ManageOffer(ManageOfferOperation),
CreatePassiveOffer(CreatePassiveOfferOperation),
SetOptions,
ChangeTrust,
AllowTrust,
AccountMerge,
Inflation(InflationOperation),
ManageData(ManageDataOperation),
}
Expand description
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 Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more