Struct mpl_token_auth_rules::state::RuleSetRevisionMapV1
source · pub struct RuleSetRevisionMapV1 {
pub rule_set_revisions: Vec<usize>,
}Expand description
Revision map used to keep track of where individual RuleSet revisions are stored in the PDA.
See top-level module for description of PDA memory layout.
Fields§
§rule_set_revisions: Vec<usize>Vec used to map a RuleSet revision number to its location in the PDA.
Trait Implementations§
source§impl BorshDeserialize for RuleSetRevisionMapV1
impl BorshDeserialize for RuleSetRevisionMapV1
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Clone for RuleSetRevisionMapV1
impl Clone for RuleSetRevisionMapV1
source§fn clone(&self) -> RuleSetRevisionMapV1
fn clone(&self) -> RuleSetRevisionMapV1
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 RuleSetRevisionMapV1
impl Debug for RuleSetRevisionMapV1
source§impl Default for RuleSetRevisionMapV1
impl Default for RuleSetRevisionMapV1
source§fn default() -> RuleSetRevisionMapV1
fn default() -> RuleSetRevisionMapV1
Returns the “default value” for a type. Read more
source§impl PartialEq for RuleSetRevisionMapV1
impl PartialEq for RuleSetRevisionMapV1
source§fn eq(&self, other: &RuleSetRevisionMapV1) -> bool
fn eq(&self, other: &RuleSetRevisionMapV1) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RuleSetRevisionMapV1
impl StructuralEq for RuleSetRevisionMapV1
impl StructuralPartialEq for RuleSetRevisionMapV1
Auto Trait Implementations§
impl RefUnwindSafe for RuleSetRevisionMapV1
impl Send for RuleSetRevisionMapV1
impl Sync for RuleSetRevisionMapV1
impl Unpin for RuleSetRevisionMapV1
impl UnwindSafe for RuleSetRevisionMapV1
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more