pub struct WithdrawCollateralSolBuilder { /* private fields */ }Expand description
Instruction builder for WithdrawCollateralSol.
§Accounts:
[writable, signer]signer[writable]order_state[writable]order_vault[]maker[writable]taker[writable]destination[optional]system (default to11111111111111111111111111111111)[]tlock_program
Implementations§
Source§impl WithdrawCollateralSolBuilder
impl WithdrawCollateralSolBuilder
pub fn new() -> Self
pub fn signer(&mut self, signer: Pubkey) -> &mut Self
pub fn order_state(&mut self, order_state: Pubkey) -> &mut Self
pub fn order_vault(&mut self, order_vault: Pubkey) -> &mut Self
pub fn maker(&mut self, maker: Pubkey) -> &mut Self
pub fn taker(&mut self, taker: Pubkey) -> &mut Self
pub fn destination(&mut self, destination: Pubkey) -> &mut Self
Sourcepub fn system(&mut self, system: Pubkey) -> &mut Self
pub fn system(&mut self, system: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
pub fn tlock_program(&mut self, tlock_program: Pubkey) -> &mut Self
Sourcepub fn to_maker(&mut self, to_maker: bool) -> &mut Self
pub fn to_maker(&mut self, to_maker: bool) -> &mut Self
[optional argument, defaults to 'true']
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 Clone for WithdrawCollateralSolBuilder
impl Clone for WithdrawCollateralSolBuilder
Source§fn clone(&self) -> WithdrawCollateralSolBuilder
fn clone(&self) -> WithdrawCollateralSolBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WithdrawCollateralSolBuilder
impl Debug for WithdrawCollateralSolBuilder
Source§impl Default for WithdrawCollateralSolBuilder
impl Default for WithdrawCollateralSolBuilder
Source§fn default() -> WithdrawCollateralSolBuilder
fn default() -> WithdrawCollateralSolBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WithdrawCollateralSolBuilder
impl RefUnwindSafe for WithdrawCollateralSolBuilder
impl Send for WithdrawCollateralSolBuilder
impl Sync for WithdrawCollateralSolBuilder
impl Unpin for WithdrawCollateralSolBuilder
impl UnsafeUnpin for WithdrawCollateralSolBuilder
impl UnwindSafe for WithdrawCollateralSolBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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