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 ==
.source§impl TokenMetadataAccount for UseAuthorityRecord
impl TokenMetadataAccount for UseAuthorityRecord
fn key() -> Key
fn size() -> usize
fn is_correct_account_type( data: &[u8], data_type: Key, data_size: usize ) -> bool
fn pad_length(buf: &mut Vec<u8>) -> Result<(), MetadataError>
fn safe_deserialize(data: &[u8]) -> Result<Self, BorshError>
fn from_account_info(a: &AccountInfo<'_>) -> Result<Self, ProgramError>
impl Eq for UseAuthorityRecord
impl StructuralEq for UseAuthorityRecord
impl StructuralPartialEq for UseAuthorityRecord
Auto Trait Implementations§
impl RefUnwindSafe for UseAuthorityRecord
impl Send for UseAuthorityRecord
impl Sync for UseAuthorityRecord
impl Unpin for UseAuthorityRecord
impl UnwindSafe for UseAuthorityRecord
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