pub struct Assign<'a, 'b> {
pub account: &'a AccountView,
pub owner: &'b Address,
}Expand description
Builder for the system program’s Assign instruction.
Fields§
§account: &'a AccountView§owner: &'b AddressImplementations§
Source§impl Assign<'_, '_>
impl Assign<'_, '_>
Sourcepub fn invoke(&self) -> ProgramResult
pub fn invoke(&self) -> ProgramResult
Invoke the Assign instruction (no PDA signers).
Sourcepub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Invoke the Assign instruction with PDA signers.
Auto Trait Implementations§
impl<'a, 'b> Freeze for Assign<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Assign<'a, 'b>
impl<'a, 'b> Send for Assign<'a, 'b>
impl<'a, 'b> Sync for Assign<'a, 'b>
impl<'a, 'b> Unpin for Assign<'a, 'b>
impl<'a, 'b> UnsafeUnpin for Assign<'a, 'b>
impl<'a, 'b> UnwindSafe for Assign<'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