Struct tendermint_rpc::event::Event [−][src]
pub struct Event {
pub query: String,
pub data: EventData,
pub events: Option<HashMap<String, Vec<String>>>,
}
Expand description
An incoming event produced by a Subscription
.
Fields
query: String
The query that produced the event.
data: EventData
The data associated with the event.
events: Option<HashMap<String, Vec<String>>>
Event type and attributes map.
Implementations
Returns the type associated with this event, if we recognize it.
Returns None
if we don’t yet support this event type.
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 Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more