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