Struct lighthouse_sdk::instructions::MemoryCloseBuilder
source · pub struct MemoryCloseBuilder { /* private fields */ }Expand description
Instruction builder for MemoryClose.
§Accounts:
[]program_id[writable, signer]payer[writable]memory
Implementations§
source§impl MemoryCloseBuilder
impl MemoryCloseBuilder
pub fn new() -> Self
sourcepub fn program_id(&mut self, program_id: Pubkey) -> &mut Self
pub fn program_id(&mut self, program_id: Pubkey) -> &mut Self
Lighthouse program
pub fn memory_id(&mut self, memory_id: u8) -> &mut Self
pub fn memory_bump(&mut self, memory_bump: u8) -> &mut Self
sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for MemoryCloseBuilder
impl Default for MemoryCloseBuilder
source§fn default() -> MemoryCloseBuilder
fn default() -> MemoryCloseBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryCloseBuilder
impl RefUnwindSafe for MemoryCloseBuilder
impl Send for MemoryCloseBuilder
impl Sync for MemoryCloseBuilder
impl Unpin for MemoryCloseBuilder
impl UnwindSafe for MemoryCloseBuilder
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