pub struct CreateNonceBuilder { /* private fields */ }Expand description
Instruction builder for CreateNonce.
§Accounts:
[writable, signer]user[writable]nonce[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl CreateNonceBuilder
impl CreateNonceBuilder
pub fn new() -> Self
pub fn user(&mut self, user: Pubkey) -> &mut Self
pub fn nonce(&mut self, nonce: Pubkey) -> &mut Self
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
pub fn guid(&mut self, guid: [u8; 16]) -> &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 CreateNonceBuilder
impl Default for CreateNonceBuilder
Source§fn default() -> CreateNonceBuilder
fn default() -> CreateNonceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateNonceBuilder
impl RefUnwindSafe for CreateNonceBuilder
impl Send for CreateNonceBuilder
impl Sync for CreateNonceBuilder
impl Unpin for CreateNonceBuilder
impl UnwindSafe for CreateNonceBuilder
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