pub struct ProgramBuilder<'a> { /* private fields */ }Implementations§
Source§impl ProgramBuilder<'_>
impl ProgramBuilder<'_>
pub fn call<I>(self, instruction: I) -> Selfwhere
I: InstructionData,
pub fn accounts<A>(self, accounts: A) -> Selfwhere
A: ToAccountMetas,
pub fn remaining_accounts(self, accounts: Vec<Pubkey>) -> Self
pub fn remaining_accounts_metas(self, metas: Vec<AccountMeta>) -> Self
pub fn signers(self, signers: &[&Keypair]) -> Self
pub fn fee_payer(self, fee_payer: &Keypair) -> Self
pub fn send(self) -> Result<TxOutcome>
pub fn add_transaction(self) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for ProgramBuilder<'a>
impl<'a> !RefUnwindSafe for ProgramBuilder<'a>
impl<'a> Send for ProgramBuilder<'a>
impl<'a> Sync for ProgramBuilder<'a>
impl<'a> Unpin for ProgramBuilder<'a>
impl<'a> UnsafeUnpin for ProgramBuilder<'a>
impl<'a> !UnwindSafe for ProgramBuilder<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more