Struct mpl_token_metadata::state::UseAuthorityRecord
source · [−]Fields
key: Key
allowed_uses: u64
bump: u8
Implementations
sourceimpl UseAuthorityRecord
impl UseAuthorityRecord
pub fn from_bytes(b: &[u8]) -> Result<UseAuthorityRecord, ProgramError>
pub fn bump_empty(&self) -> bool
Trait Implementations
sourceimpl BorshDeserialize for UseAuthorityRecord where
Key: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for UseAuthorityRecord where
Key: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
sourceimpl BorshSerialize for UseAuthorityRecord where
Key: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for UseAuthorityRecord where
Key: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
sourceimpl Clone for UseAuthorityRecord
impl Clone for UseAuthorityRecord
sourcefn clone(&self) -> UseAuthorityRecord
fn clone(&self) -> UseAuthorityRecord
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 UseAuthorityRecord
impl Debug for UseAuthorityRecord
sourceimpl Default for UseAuthorityRecord
impl Default for UseAuthorityRecord
sourceimpl PartialEq<UseAuthorityRecord> for UseAuthorityRecord
impl PartialEq<UseAuthorityRecord> for UseAuthorityRecord
sourcefn 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 ==
. Read more
sourceimpl TokenMetadataAccount for UseAuthorityRecord
impl TokenMetadataAccount for UseAuthorityRecord
fn key() -> Key
fn size() -> usize
fn pad_length(buf: &mut Vec<u8>) -> Result<(), MetadataError>
fn safe_deserialize<T: BorshDeserialize>(data: &[u8]) -> Result<T, BorshError>
fn from_account_info<T: BorshDeserialize>(
a: &AccountInfo<'_>
) -> Result<T, 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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
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