#[repr(C)]pub struct CollectionAuthorityRecord {
pub key: Key,
pub bump: u8,
pub update_authority: Option<Pubkey>,
}
Fields§
§key: Key
§bump: u8
Implementations§
source§impl CollectionAuthorityRecord
impl CollectionAuthorityRecord
pub fn from_bytes(b: &[u8]) -> Result<CollectionAuthorityRecord, ProgramError>
Trait Implementations§
source§impl BorshDeserialize for CollectionAuthorityRecordwhere
Key: BorshDeserialize,
u8: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
impl BorshDeserialize for CollectionAuthorityRecordwhere Key: BorshDeserialize, u8: BorshDeserialize, Option<Pubkey>: BorshDeserialize,
source§impl BorshSerialize for CollectionAuthorityRecordwhere
Key: BorshSerialize,
u8: BorshSerialize,
Option<Pubkey>: BorshSerialize,
impl BorshSerialize for CollectionAuthorityRecordwhere Key: BorshSerialize, u8: BorshSerialize, Option<Pubkey>: BorshSerialize,
source§impl Clone for CollectionAuthorityRecord
impl Clone for CollectionAuthorityRecord
source§fn clone(&self) -> CollectionAuthorityRecord
fn clone(&self) -> CollectionAuthorityRecord
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 CollectionAuthorityRecord
impl Debug for CollectionAuthorityRecord
source§impl Default for CollectionAuthorityRecord
impl Default for CollectionAuthorityRecord
source§impl PartialEq<CollectionAuthorityRecord> for CollectionAuthorityRecord
impl PartialEq<CollectionAuthorityRecord> for CollectionAuthorityRecord
source§fn eq(&self, other: &CollectionAuthorityRecord) -> bool
fn eq(&self, other: &CollectionAuthorityRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TokenMetadataAccount for CollectionAuthorityRecord
impl TokenMetadataAccount for CollectionAuthorityRecord
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 CollectionAuthorityRecord
impl StructuralEq for CollectionAuthorityRecord
impl StructuralPartialEq for CollectionAuthorityRecord
Auto Trait Implementations§
impl RefUnwindSafe for CollectionAuthorityRecord
impl Send for CollectionAuthorityRecord
impl Sync for CollectionAuthorityRecord
impl Unpin for CollectionAuthorityRecord
impl UnwindSafe for CollectionAuthorityRecord
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