pub trait TransactionEventDecodable: Sized {
// Required method
fn from_event<'a>(
event: impl Into<StringOrBytes<'a>>,
) -> Result<Self, String>;
}
Required Methods§
Sourcefn from_event<'a>(event: impl Into<StringOrBytes<'a>>) -> Result<Self, String>
fn from_event<'a>(event: impl Into<StringOrBytes<'a>>) -> Result<Self, String>
Decodes the SCALE encoded Event
If you need to decode Hex string call decode_hex_event
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.