Struct whirlpools::instruction::Swap
source · [−]pub struct Swap {
pub _amount: u64,
pub _other_amount_threshold: u64,
pub _sqrt_price_limit: u128,
pub _amount_specified_is_input: bool,
pub _a_to_b: bool,
}
Expand description
Instruction.
Fields
_amount: u64
_other_amount_threshold: u64
_sqrt_price_limit: u128
_amount_specified_is_input: bool
_a_to_b: bool
Trait Implementations
sourceimpl BorshDeserialize for Swap where
u64: BorshDeserialize,
u64: BorshDeserialize,
u128: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for Swap where
u64: BorshDeserialize,
u64: BorshDeserialize,
u128: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
Auto Trait Implementations
impl RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl UnwindSafe for Swap
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more