pub struct WithdrawEvent {
pub crate_key: Pubkey,
pub token: Pubkey,
pub destination: Pubkey,
pub amount: u64,
pub author_fee: u64,
pub protocol_fee: u64,
}Expand description
Emitted when crate tokens are withdrawn.
Fields§
§crate_key: PubkeyKey of the crate withdrawn from.
token: PubkeyMint of the withdrawn token.
destination: PubkeyDestination of tokens.
amount: u64Amount of tokens withdrawn.
Author fee.
protocol_fee: u64Protocol fee.
Trait Implementations§
Source§impl BorshDeserialize for WithdrawEvent
impl BorshDeserialize for WithdrawEvent
Source§impl BorshSerialize for WithdrawEvent
impl BorshSerialize for WithdrawEvent
Source§impl Discriminator for WithdrawEvent
impl Discriminator for WithdrawEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for WithdrawEvent
impl RefUnwindSafe for WithdrawEvent
impl Send for WithdrawEvent
impl Sync for WithdrawEvent
impl Unpin for WithdrawEvent
impl UnwindSafe for WithdrawEvent
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