Struct ng_log::NgEvent
[−]
[src]
pub struct NgEvent { pub timestamp: String, pub event_class: Option<String>, pub event_id: String, pub event_params: Vec<String>, }
A type representing an ngLog event.
Fields
timestamp: String
A floating-point value representing the elapsed time since gameplay began.
event_class: Option<String>
The category to which this event belongs, if any.
event_id: String
The type of this event.
event_params: Vec<String>
Optional data points associated with this event.
Methods
impl NgEvent
[src]
fn new(
timestamp: String,
class: Option<String>,
id: String,
params: Vec<String>
) -> NgEvent
timestamp: String,
class: Option<String>,
id: String,
params: Vec<String>
) -> NgEvent
Constructs a new NgEvent
instance from the given arguments.
fn from_string(s: &String) -> IoResult<NgEvent>
Constructs a new NgEvent
instance from the given input string.
Failures
If the given data is malformed, this method returns an std::io::Error
instance describing the error.