Struct mpl_listing_rewards::MetadataAccount
source · [−]pub struct MetadataAccount(_);
Implementations
Trait Implementations
sourceimpl AccountDeserialize for MetadataAccount
impl AccountDeserialize for MetadataAccount
sourcefn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator. This should only be used on account initialization, when the bytes of the account are zeroed. Read more
sourcefn try_deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint
account into a token
Account
. Read more
sourceimpl AccountSerialize for MetadataAccount
impl AccountSerialize for MetadataAccount
sourceimpl Clone for MetadataAccount
impl Clone for MetadataAccount
sourcefn clone(&self) -> MetadataAccount
fn clone(&self) -> MetadataAccount
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 MetadataAccount
impl Debug for MetadataAccount
sourceimpl Deref for MetadataAccount
impl Deref for MetadataAccount
sourceimpl PartialEq<MetadataAccount> for MetadataAccount
impl PartialEq<MetadataAccount> for MetadataAccount
sourcefn eq(&self, other: &MetadataAccount) -> bool
fn eq(&self, other: &MetadataAccount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for MetadataAccount
Auto Trait Implementations
impl RefUnwindSafe for MetadataAccount
impl Send for MetadataAccount
impl Sync for MetadataAccount
impl Unpin for MetadataAccount
impl UnwindSafe for MetadataAccount
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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