Enum stellar_client::resources::operation::OperationKind[][src]

pub enum OperationKind {
    CreateAccount(CreateAccount),
    Payment(Payment),
    PathPayment(PathPayment),
    ManageOffer(ManageOffer),
    CreatePassiveOffer(CreatePassiveOffer),
    SetOptions(SetOptions),
    ChangeTrust(ChangeTrust),
    AllowTrust(AllowTrust),
    AccountMerge(AccountMerge),
    Inflation,
    ManageData(ManageData),
}

Each operation type is representing by a kind and captures data specific to that type within it's newtype.

Variants

A create account operation represents a new account creation.

A payment operation represents a payment from one account to another. This payment can be either a simple native asset payment or a fiat asset payment.

A path payment operation represents a payment from one account to another through a path. This type of payment starts as one type of asset and ends as another type of asset. There can be other assets that are traded into and out of along the path.

A “Manage Offer” operation can create, update or delete an offer to trade assets in the Stellar network. It specifies an issuer, a price and amount of a given asset to buy or sell.

“Create Passive Offer” operation creates an offer that won’t consume a counter offer that exactly matches this offer. This is useful for offers just used as 1:1 exchanges for path payments. Use Manage Offer to manage this offer after using this operation to create it.

Use “Set Options” operation to set following options to your account:

Set/clear account flags: AUTH_REQUIRED_FLAG (0x1) - if set, TrustLines are created with authorized set to false requiring the issuer to set it for each TrustLine. AUTH_REVOCABLE_FLAG (0x2) - if set, the authorized flag in TrustLines can be cleared. Otherwise, authorization cannot be revoked. Set the account’s inflation destination. Add new signers to the account. Set home domain.

Use “Change Trust” operation to create/update/delete a trust line from the source account to another. The issuer being trusted and the asset code are in the given Asset object.

Updates the “authorized” flag of an existing trust line this is called by the issuer of the asset.

Removes the account and transfers all remaining XLM to the destination account.

Runs inflation

Set, modify or delete a Data Entry (name/value pair) for an account.

Trait Implementations

impl Debug for OperationKind
[src]

Formats the value using the given formatter. Read more

impl Clone for OperationKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations