pub enum SanitizedMessage {
    Legacy(LegacyMessage),
    V0(LoadedMessage<'static>),
}
Expand description

Sanitized message of a transaction.

Variants

Legacy(LegacyMessage)

Sanitized legacy message

V0(LoadedMessage<'static>)

Sanitized version #0 message with dynamically loaded 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.

Returns the list of account keys that are loaded for this message.

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.

Decompile message instructions without cloning account keys

Inspect all message keys for the bpf upgradeable loader

Get a list of signers for the instruction at the given index

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

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

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.