[−][src]Trait webthing::event::Event
High-level Event trait.
Required methods
pub fn get_name(&self) -> String
[src]
Get the event's name.
pub fn get_data(&self) -> Option<Value>
[src]
Get the event's data.
pub fn get_time(&self) -> String
[src]
Get the event's timestamp.
Provided methods
pub fn as_event_description(&self) -> Map<String, Value>
[src]
Get the event description.
Returns a JSON map describing the event.