pub struct Transfer<'a> {
pub from: &'a AccountView,
pub to: &'a AccountView,
pub lamports: u64,
}Expand description
Builder for the system program’s Transfer instruction.
Fields§
§from: &'a AccountView§to: &'a AccountView§lamports: u64Implementations§
Source§impl Transfer<'_>
impl Transfer<'_>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Auto Trait Implementations§
impl<'a> Freeze for Transfer<'a>
impl<'a> RefUnwindSafe for Transfer<'a>
impl<'a> Send for Transfer<'a>
impl<'a> Sync for Transfer<'a>
impl<'a> Unpin for Transfer<'a>
impl<'a> UnsafeUnpin for Transfer<'a>
impl<'a> UnwindSafe for Transfer<'a>
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