Struct cosmwasm_std::Event [−][src]
Expand description
A full Cosmos SDK event as documented in https://docs.cosmos.network/v0.42/core/events.html.
This version uses string attributes (similar to
https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/base/abci/v1beta1/abci.proto#L56-L70),
which then get magically converted to bytes for Tendermint somewhere between
the Rust-Go interface, JSON deserialization and the NewEvent call in Cosmos SDK.
Fields
ty: StringThe event type. This is renamed to “ty” because “type” is reserved in Rust. This sucks, we know.
attributes: Vec<Attribute>Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Eventimpl UnwindSafe for EventBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self