pub struct CreateCpiAccounts<'a, 'b> {
pub asset: &'b AccountInfo<'a>,
pub authority: (&'b AccountInfo<'a>, bool),
pub owner: &'b AccountInfo<'a>,
pub group: Option<&'b AccountInfo<'a>>,
pub group_authority: Option<&'b AccountInfo<'a>>,
pub payer: Option<&'b AccountInfo<'a>>,
pub system_program: Option<&'b AccountInfo<'a>>,
}Expand description
create CPI accounts.
Fields§
§asset: &'b AccountInfo<'a>Asset account
The authority of the asset
owner: &'b AccountInfo<'a>The owner of the asset
group: Option<&'b AccountInfo<'a>>Asset account of the group
The delegate authority for minting assets into a group
payer: Option<&'b AccountInfo<'a>>The account paying for the storage fees
system_program: Option<&'b AccountInfo<'a>>The system program
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !Send for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !Sync for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> Freeze for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> Unpin for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CreateCpiAccounts<'a, 'b>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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