pub struct Close<'a, 'info> {
pub token_account: &'a AccountInfo<'info>,
pub dst_account: &'a AccountInfo<'info>,
pub mint: &'a AccountInfo<'info>,
pub owner: &'a AccountInfo<'info>,
pub upstream_authority: &'a AccountInfo<'info>,
pub freeze_authority: &'a AccountInfo<'info>,
pub token_program: &'a AccountInfo<'info>,
}Fields§
§token_account: &'a AccountInfo<'info>§dst_account: &'a AccountInfo<'info>§mint: &'a AccountInfo<'info>§owner: &'a AccountInfo<'info>§token_program: &'a AccountInfo<'info>Implementations§
Source§impl<'a, 'info> Close<'a, 'info>
impl<'a, 'info> Close<'a, 'info>
pub fn load(accounts: &'a [AccountInfo<'info>]) -> Result<Self, ProgramError>
Auto Trait Implementations§
impl<'a, 'info> Freeze for Close<'a, 'info>
impl<'a, 'info> !RefUnwindSafe for Close<'a, 'info>
impl<'a, 'info> !Send for Close<'a, 'info>
impl<'a, 'info> !Sync for Close<'a, 'info>
impl<'a, 'info> Unpin for Close<'a, 'info>
impl<'a, 'info> !UnwindSafe for Close<'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> 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