Struct lpl_token_auth_rules::state::RuleSetHeader
source · pub struct RuleSetHeader {
pub key: Key,
pub rev_map_version_location: usize,
}Expand description
Header used to keep track of where RuleSets are stored in the PDA. This header is meant to be stored at the beginning of the PDA and never be versioned so that it always has the same serialized size. See top-level module for description of PDA memory layout.
Fields§
§key: KeyThe Key for this account which identifies it as a RuleSet account.
rev_map_version_location: usizeThe location of revision map version stored in the PDA. This is one byte before the revision map itself.
Implementations§
Trait Implementations§
source§impl BorshDeserialize for RuleSetHeaderwhere
Key: BorshDeserialize,
usize: BorshDeserialize,
impl BorshDeserialize for RuleSetHeaderwhere Key: BorshDeserialize, usize: BorshDeserialize,
source§impl BorshSerialize for RuleSetHeaderwhere
Key: BorshSerialize,
usize: BorshSerialize,
impl BorshSerialize for RuleSetHeaderwhere Key: BorshSerialize, usize: BorshSerialize,
source§impl Clone for RuleSetHeader
impl Clone for RuleSetHeader
source§fn clone(&self) -> RuleSetHeader
fn clone(&self) -> RuleSetHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RuleSetHeader
impl Debug for RuleSetHeader
source§impl PartialEq<RuleSetHeader> for RuleSetHeader
impl PartialEq<RuleSetHeader> for RuleSetHeader
source§fn eq(&self, other: &RuleSetHeader) -> bool
fn eq(&self, other: &RuleSetHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.