pub enum SanitizedMessage {
    Legacy(Message),
    V0(LoadedMessage),
}
Expand description

Sanitized message of a transaction which includes a set of atomic instructions to be executed on-chain

Variants

Legacy(Message)

Sanitized legacy message

V0(LoadedMessage)

Sanitized version #0 message with mapped addresses

Implementations

Return true if this message contains duplicate account keys

Message header which identifies the number of signer and writable or readonly accounts

Returns a legacy message if this sanitized message wraps one

Returns the fee payer for the transaction

The hash of a recent block, used for timing out a transaction

Program instructions that will be executed in sequence and committed in one atomic transaction if all succeed.

Program instructions iterator which includes each instruction’s program id.

Iterator of all account keys referenced in this message, included mapped keys.

Length of all account keys referenced in this message, included mapped keys.

Returns the address of the account at the specified index.

Returns true if the account at the specified index is invoked as a program in this message.

Returns true if the account at the specified index is not invoked as a program or, if invoked, is passed to a program.

Returns true if the account at the specified index is writable by the instructions in this message.

Returns true if the account at the specified index signed this message.

Return the number of readonly accounts loaded by this message.

Try to compile an instruction using the account keys in this message.

Decompile message instructions without cloning account keys

Inspect all message keys for the bpf upgradeable loader

If the message uses a durable nonce, return the pubkey of the nonce account

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.