Struct add_decimals::WithdrawEvent
source · [−]pub struct WithdrawEvent {
pub owner: Pubkey,
pub underlying_mint: Pubkey,
pub wrapped_mint: Pubkey,
pub withdraw_amount: u64,
pub burn_amount: u64,
pub dust_amount: u64,
}Expand description
Called when tokens are withdrawn from the wrapper.
Fields
owner: PubkeyOwner of the account that withdrew.
underlying_mint: PubkeyUnderlying token mint
wrapped_mint: PubkeyWrapped token mint
withdraw_amount: u64Amount withdrawn.
burn_amount: u64Wrapped tokens burned.
dust_amount: u64Wrapped tokens remaining as dust.
Trait Implementations
sourceimpl BorshDeserialize for WithdrawEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for WithdrawEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for WithdrawEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for WithdrawEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Discriminator for WithdrawEvent
impl Discriminator for WithdrawEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations
impl RefUnwindSafe for WithdrawEvent
impl Send for WithdrawEvent
impl Sync for WithdrawEvent
impl Unpin for WithdrawEvent
impl UnwindSafe for WithdrawEvent
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