pub struct SwapCompleteEvent {
pub owner: Pubkey,
pub amount_in: TokenAmount,
pub amount_out: TokenAmount,
}
Fields§
§owner: Pubkey
§amount_in: TokenAmount
§amount_out: TokenAmount
Trait Implementations§
Source§impl BorshDeserialize for SwapCompleteEvent
impl BorshDeserialize for SwapCompleteEvent
Source§impl BorshSerialize for SwapCompleteEvent
impl BorshSerialize for SwapCompleteEvent
Source§impl Discriminator for SwapCompleteEvent
impl Discriminator for SwapCompleteEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for SwapCompleteEvent
impl RefUnwindSafe for SwapCompleteEvent
impl Send for SwapCompleteEvent
impl Sync for SwapCompleteEvent
impl Unpin for SwapCompleteEvent
impl UnwindSafe for SwapCompleteEvent
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
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