Trait anchor_lang::Event
source · pub trait Event: AnchorSerialize + AnchorDeserialize + Discriminator {
// Required method
fn data(&self) -> Vec<u8> ⓘ;
}
Expand description
An event that can be emitted via a Solana log. See emit!
for an example.
Required Methods§
Object Safety§
This trait is not object safe.