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

A floating-point value representing the elapsed time since gameplay began.

event_class

The category to which this event belongs, if any.

event_id

The type of this event.

event_params

Optional data points associated with this event.

Methods

impl NgEvent

fn new(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.

Trait Implementations

impl ToString for NgEvent

fn to_string(&self) -> String