Struct mpl_token_metadata::state::UseAuthorityRecord
source · #[repr(C)]pub struct UseAuthorityRecord {
pub key: Key,
pub allowed_uses: u64,
pub bump: u8,
}
Fields§
§key: Key
§allowed_uses: u64
§bump: u8
Implementations§
source§impl UseAuthorityRecord
impl UseAuthorityRecord
pub fn from_bytes(b: &[u8]) -> Result<UseAuthorityRecord, ProgramError>
pub fn bump_empty(&self) -> bool
Trait Implementations§
source§impl BorshDeserialize for UseAuthorityRecordwhere
Key: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for UseAuthorityRecordwhere Key: BorshDeserialize, u64: BorshDeserialize, u8: BorshDeserialize,
source§impl BorshSerialize for UseAuthorityRecordwhere
Key: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for UseAuthorityRecordwhere Key: BorshSerialize, u64: BorshSerialize, u8: BorshSerialize,
source§impl Clone for UseAuthorityRecord
impl Clone for UseAuthorityRecord
source§fn clone(&self) -> UseAuthorityRecord
fn clone(&self) -> UseAuthorityRecord
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 UseAuthorityRecord
impl Debug for UseAuthorityRecord
source§impl Default for UseAuthorityRecord
impl Default for UseAuthorityRecord
source§impl PartialEq<UseAuthorityRecord> for UseAuthorityRecord
impl PartialEq<UseAuthorityRecord> for UseAuthorityRecord
source§fn eq(&self, other: &UseAuthorityRecord) -> bool
fn eq(&self, other: &UseAuthorityRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.