Struct poseidon_client::MessageHeader
source · [−]pub struct MessageHeader {
pub num_required_signatures: u8,
pub num_readonly_signed_accounts: u8,
pub num_readonly_unsigned_accounts: u8,
}
Fields
num_required_signatures: u8
The number of signatures required for this message to be considered valid. The
signatures must match the first num_required_signatures
of account_keys
.
NOTE: Serialization-related changes must be paired with the direct read at sigverify.
num_readonly_signed_accounts: u8
The last num_readonly_signed_accounts of the signed keys are read-only accounts. Programs may process multiple transactions that load read-only accounts within a single PoH entry, but are not permitted to credit or debit lamports or modify account data. Transactions targeting the same read-write account are evaluated sequentially.
num_readonly_unsigned_accounts: u8
The last num_readonly_unsigned_accounts of the unsigned keys are read-only accounts.
Trait Implementations
sourceimpl BorshDeserialize for MessageHeader where
u8: BorshDeserialize,
u8: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for MessageHeader where
u8: BorshDeserialize,
u8: BorshDeserialize,
u8: BorshDeserialize,
sourceimpl BorshSerialize for MessageHeader where
u8: BorshSerialize,
u8: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for MessageHeader where
u8: BorshSerialize,
u8: BorshSerialize,
u8: BorshSerialize,
sourceimpl Clone for MessageHeader
impl Clone for MessageHeader
sourcefn clone(&self) -> MessageHeader
fn clone(&self) -> MessageHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MessageHeader
impl Debug for MessageHeader
sourceimpl Default for MessageHeader
impl Default for MessageHeader
sourcefn default() -> MessageHeader
fn default() -> MessageHeader
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MessageHeader
impl<'de> Deserialize<'de> for MessageHeader
sourcefn 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
sourceimpl Ord for MessageHeader
impl Ord for MessageHeader
sourcefn cmp(&self, other: &MessageHeader) -> Ordering
fn cmp(&self, other: &MessageHeader) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MessageHeader> for MessageHeader
impl PartialEq<MessageHeader> for MessageHeader
sourcefn eq(&self, other: &MessageHeader) -> bool
fn eq(&self, other: &MessageHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MessageHeader) -> bool
fn ne(&self, other: &MessageHeader) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MessageHeader> for MessageHeader
impl PartialOrd<MessageHeader> for MessageHeader
sourcefn partial_cmp(&self, other: &MessageHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageHeader) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for MessageHeader
impl Serialize for MessageHeader
impl Copy for MessageHeader
impl Eq for MessageHeader
impl StructuralEq for MessageHeader
impl StructuralPartialEq for MessageHeader
Auto Trait Implementations
impl RefUnwindSafe for MessageHeader
impl Send for MessageHeader
impl Sync for MessageHeader
impl Unpin for MessageHeader
impl UnwindSafe for MessageHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more