pub struct WithdrawNativeSol {
pub program_id: Pubkey,
pub state_pda: Pubkey,
pub authority: Pubkey,
pub native_sol_buffer: Pubkey,
pub recipient: Pubkey,
pub amount: u64,
}Expand description
Builder for a WithdrawNativeSol instruction.
state_pda must be crate::pda::state::STATE_PDA. authority must sign
and must match the settlement_owned_order_authority recorded in the state
PDA’s data. native_sol_buffer must be
crate::pda::buffer::NATIVE_SOL_BUFFER_PDA. recipient receives up to
amount lamports, capped to the buffer’s balance above rent.
Fields§
§program_id: Pubkey§state_pda: Pubkey§native_sol_buffer: Pubkey§recipient: Pubkey§amount: u64Trait Implementations§
Source§impl From<WithdrawNativeSol> for Instruction
impl From<WithdrawNativeSol> for Instruction
Source§fn from(builder: WithdrawNativeSol) -> Self
fn from(builder: WithdrawNativeSol) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WithdrawNativeSol
impl RefUnwindSafe for WithdrawNativeSol
impl Send for WithdrawNativeSol
impl Sync for WithdrawNativeSol
impl Unpin for WithdrawNativeSol
impl UnsafeUnpin for WithdrawNativeSol
impl UnwindSafe for WithdrawNativeSol
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