pub struct InstructionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> InstructionsBuilder<S>
impl<S: State> InstructionsBuilder<S>
Sourcepub fn build(self) -> Instructionswhere
S: IsComplete,
pub fn build(self) -> Instructionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn fee_payer(self, value: Pubkey) -> InstructionsBuilder<SetFeePayer<S>>where
S::FeePayer: IsUnset,
pub fn fee_payer(self, value: Pubkey) -> InstructionsBuilder<SetFeePayer<S>>where
S::FeePayer: IsUnset,
Required.
Sourcepub fn signers(self, value: Vec<Wallet>) -> InstructionsBuilder<SetSigners<S>>where
S::Signers: IsUnset,
pub fn signers(self, value: Vec<Wallet>) -> InstructionsBuilder<SetSigners<S>>where
S::Signers: IsUnset,
Required.
Sourcepub fn instructions(
self,
value: Vec<Instruction>,
) -> InstructionsBuilder<SetInstructions<S>>where
S::Instructions: IsUnset,
pub fn instructions(
self,
value: Vec<Instruction>,
) -> InstructionsBuilder<SetInstructions<S>>where
S::Instructions: IsUnset,
Required.
Sourcepub fn lookup_tables(
self,
value: Vec<Pubkey>,
) -> InstructionsBuilder<SetLookupTables<S>>where
S::LookupTables: IsUnset,
pub fn lookup_tables(
self,
value: Vec<Pubkey>,
) -> InstructionsBuilder<SetLookupTables<S>>where
S::LookupTables: IsUnset,
Sourcepub fn maybe_lookup_tables(
self,
value: Option<Vec<Pubkey>>,
) -> InstructionsBuilder<SetLookupTables<S>>where
S::LookupTables: IsUnset,
pub fn maybe_lookup_tables(
self,
value: Option<Vec<Pubkey>>,
) -> InstructionsBuilder<SetLookupTables<S>>where
S::LookupTables: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for InstructionsBuilder<S>
impl<S> RefUnwindSafe for InstructionsBuilder<S>
impl<S> Send for InstructionsBuilder<S>
impl<S> Sync for InstructionsBuilder<S>
impl<S> Unpin for InstructionsBuilder<S>
impl<S> UnwindSafe for InstructionsBuilder<S>
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