pub struct TokenInitParam<'a, AI>where
AI: AccountInfoTrait,{
pub account: &'a AI,
pub mint: &'a AI,
pub owner: [u8; 32],
pub seeds: &'a [&'a [u8]],
}Expand description
Parameters for a single token vault to create.
Fields§
§account: &'a AIThe token vault account.
mint: &'a AIThe mint account for this vault.
owner: [u8; 32]Owner of the token account (as raw bytes).
seeds: &'a [&'a [u8]]PDA seeds for the vault (with bump as last element).
Auto Trait Implementations§
impl<'a, AI> Freeze for TokenInitParam<'a, AI>
impl<'a, AI> RefUnwindSafe for TokenInitParam<'a, AI>where
AI: RefUnwindSafe,
impl<'a, AI> Send for TokenInitParam<'a, AI>where
AI: Sync,
impl<'a, AI> Sync for TokenInitParam<'a, AI>where
AI: Sync,
impl<'a, AI> Unpin for TokenInitParam<'a, AI>
impl<'a, AI> UnsafeUnpin for TokenInitParam<'a, AI>
impl<'a, AI> UnwindSafe for TokenInitParam<'a, AI>where
AI: RefUnwindSafe,
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> 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