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 the settlement state PDA (see
crate::pda::state::find_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 the native SOL buffer PDA (see
crate::pda::buffer::find_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