pub struct Message {
pub header: MessageHeader,
pub account_keys: Vec<Pubkey>,
pub recent_blockhash: Hash,
pub instructions: Vec<CompiledInstruction>,
pub address_table_lookups: Vec<MessageAddressTableLookup>,
}Fields§
§header: MessageHeaderThe message header, identifying signed and read-only account_keys.
Header values only describe static account_keys, they do not describe
any additional account keys loaded via address table lookups.
account_keys: Vec<Pubkey>List of accounts loaded by this transaction.
recent_blockhash: HashThe blockhash of a recent block.
instructions: Vec<CompiledInstruction>Instructions that invoke a designated program, are executed in sequence, and committed in one atomic transaction if all succeed.
§Notes
Program indexes must index into the list of message account_keys because
program id’s cannot be dynamically loaded from a lookup table.
Account indexes must index into the list of addresses constructed from the concatenation of three key lists:
- message
account_keys - ordered list of keys loaded from
writablelookup table indexes - ordered list of keys loaded from
readablelookup table indexes
address_table_lookups: Vec<MessageAddressTableLookup>List of address table lookups used to load additional accounts for this transaction.
Trait Implementations§
Source§impl DecodableWithMeta for Message
impl DecodableWithMeta for Message
type Encoded = UiMessage
type Decoded = Message
fn decode_with_meta( encoded: Self::Encoded, decoding: UiTransactionEncoding, version: Option<TransactionVersion>, ) -> Result<Self::Decoded, DecodeError>
fn json_decode( encoded: Self::Encoded, _version: Option<TransactionVersion>, ) -> Result<Self::Decoded, DecodeError>
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more