Struct devol_accounts_kit::accounts::mints::mints_account::MintsAccount
source · #[repr(C)]pub struct MintsAccount {
pub header: AccountHeader,
pub count: u32,
pub data: [Mint; 32],
}Fields§
§header: AccountHeader§count: u32§data: [Mint; 32]Trait Implementations§
source§impl Clone for MintsAccount
impl Clone for MintsAccount
source§fn clone(&self) -> MintsAccount
fn clone(&self) -> MintsAccount
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 DevolAccount for MintsAccount
impl DevolAccount for MintsAccount
fn expected_size() -> usize
fn expected_tag() -> u8
fn expected_version() -> u32
fn account_header<'a>(data: Ref<'_, &mut [u8]>) -> &'a AccountHeader
fn check_basic( account_info: &AccountInfo<'_>, root_addr: &Pubkey, program_id: &Pubkey ) -> Result<(), DvlError>
fn check_size( tag: AccountTag, account_data: Ref<'_, &mut [u8]> ) -> Result<(), DvlError>
fn check_tag_and_version( tag: AccountTag, header: &AccountHeader ) -> Result<(), DvlError>
fn check_root( tag: AccountTag, header: &AccountHeader, root_addr: &Pubkey ) -> Result<(), DvlError>
fn check_program_id( tag: AccountTag, account_info: &AccountInfo<'_>, program_id: &Pubkey ) -> Result<(), DvlError>
source§fn from_account_info_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
fn from_account_info_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a reference of Self for on-chain use without the intent to modify the data.source§fn from_account_info_mut_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
fn from_account_info_mut_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a mutable reference of Self for on-chain use with the intent to modify the data.
Ensures the account is marked as writable.source§impl DevolRegularAccount for MintsAccount
impl DevolRegularAccount for MintsAccount
fn check_all( account_info: &AccountInfo<'_>, root_addr: &Pubkey, program_id: &Pubkey ) -> Result<(), DvlError>
source§fn from_account_info<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
fn from_account_info<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a reference of Self for on-chain use without the intent to modify the data.source§fn from_account_info_mut<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
fn from_account_info_mut<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a mutable reference of Self for on-chain use with the intent to modify the data.
Ensures the account is marked as writable.source§impl DvlReadable for MintsAccount
impl DvlReadable for MintsAccount
type DvlReadParams<'a> = ()
fn get_public_key<'a, 'life0, 'life1, 'async_trait>(
dvl_client: &'life0 DvlClient,
_params: &'life1 Self::DvlReadParams<'a>
) -> Pin<Box<dyn Future<Output = Result<Box<Pubkey>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read<'a, 'life0, 'life1, 'async_trait>(
dvl_client: &'life0 DvlClient,
params: &'life1 Self::DvlReadParams<'a>
) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_by_public_key<'life0, 'life1, 'async_trait>(
client: &'life0 DvlClient,
public_key: &'life1 Pubkey
) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sized + DevolAccount + Copy + Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Copy for MintsAccount
Auto Trait Implementations§
impl Freeze for MintsAccount
impl RefUnwindSafe for MintsAccount
impl Send for MintsAccount
impl Sync for MintsAccount
impl Unpin for MintsAccount
impl UnwindSafe for MintsAccount
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more