pub struct StoreBuilder { /* private fields */ }
Expand description
Implementations§
Source§impl StoreBuilder
impl StoreBuilder
pub fn new() -> Self
Sourcepub fn config_account(
&mut self,
config_account: Pubkey,
as_signer: bool,
) -> &mut Self
pub fn config_account( &mut self, config_account: Pubkey, as_signer: bool, ) -> &mut Self
The config account to be modified.
Must sign during the first call to store
to initialize the account,
or if no signers are configured in the config data.
pub fn keys(&mut self, keys: ConfigKeys) -> &mut Self
pub fn data(&mut self, data: RemainderVec<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 additional 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 Clone for StoreBuilder
impl Clone for StoreBuilder
Source§fn clone(&self) -> StoreBuilder
fn clone(&self) -> StoreBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StoreBuilder
impl Debug for StoreBuilder
Source§impl Default for StoreBuilder
impl Default for StoreBuilder
Source§fn default() -> StoreBuilder
fn default() -> StoreBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StoreBuilder
impl RefUnwindSafe for StoreBuilder
impl Send for StoreBuilder
impl Sync for StoreBuilder
impl Unpin for StoreBuilder
impl UnwindSafe for StoreBuilder
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