subxt 0.50.0

Interact with Substrate based chains on the Polkadot Network
Documentation
1
2
3
4
5
6
7
8
9
use scale_decode::DecodeAsFields;

/// This trait can be implemented for any type which implements [`DecodeAsFields`].
/// This adds information to the type about which event it is, which enforces that
/// only the correct event can be decoded into it.
pub trait DecodeAsEvent: DecodeAsFields {
    /// Returns true if the given pallet and event names match this event.
    fn is_event(pallet: &str, event: &str) -> bool;
}