pub struct MintAccountInfo<'a, 'info> {
pub mint: Mint,
pub info: &'a AccountInfo<'info>,
}
Fields§
§mint: Mint
§info: &'a AccountInfo<'info>
Implementations§
Source§impl<'a, 'info> MintAccountInfo<'a, 'info>
impl<'a, 'info> MintAccountInfo<'a, 'info>
pub fn new( info: &'a AccountInfo<'info>, ) -> Result<MintAccountInfo<'a, 'info>, ProgramError>
Trait Implementations§
Source§impl<'a, 'info> AsRef<AccountInfo<'info>> for MintAccountInfo<'a, 'info>
impl<'a, 'info> AsRef<AccountInfo<'info>> for MintAccountInfo<'a, 'info>
Source§fn as_ref(&self) -> &AccountInfo<'info>
fn as_ref(&self) -> &AccountInfo<'info>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a, 'info> Clone for MintAccountInfo<'a, 'info>
impl<'a, 'info> Clone for MintAccountInfo<'a, 'info>
Source§fn clone(&self) -> MintAccountInfo<'a, 'info>
fn clone(&self) -> MintAccountInfo<'a, 'info>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a, 'info> Freeze for MintAccountInfo<'a, 'info>
impl<'a, 'info> !RefUnwindSafe for MintAccountInfo<'a, 'info>
impl<'a, 'info> !Send for MintAccountInfo<'a, 'info>
impl<'a, 'info> !Sync for MintAccountInfo<'a, 'info>
impl<'a, 'info> Unpin for MintAccountInfo<'a, 'info>
impl<'a, 'info> !UnwindSafe for MintAccountInfo<'a, 'info>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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