Skip to main content

WithdrawNativeSol

Struct WithdrawNativeSol 

Source
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§authority: Pubkey§native_sol_buffer: Pubkey§recipient: Pubkey§amount: u64

Trait Implementations§

Source§

impl From<WithdrawNativeSol> for Instruction

Source§

fn from(builder: WithdrawNativeSol) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.