Struct webdriver::command::WebDriverMessage [] [src]

pub struct WebDriverMessage<U: WebDriverExtensionRoute = VoidWebDriverExtensionRoute> {
    pub session_id: Option<String>,
    pub command: WebDriverCommand<U::Command>,
}

Fields

session_id: Option<String> command: WebDriverCommand<U::Command>

Methods

impl<U: WebDriverExtensionRoute> WebDriverMessage<U>
[src]

fn new(session_id: Option<String>, command: WebDriverCommand<U::Command>) -> WebDriverMessage<U>

fn from_http(match_type: Route<U>, params: &Captures, body: &str, requires_body: bool) -> WebDriverResult<WebDriverMessage<U>>

Trait Implementations

impl<U: PartialEq + WebDriverExtensionRoute> PartialEq for WebDriverMessage<U> where U::Command: PartialEq
[src]

fn eq(&self, __arg_0: &WebDriverMessage<U>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &WebDriverMessage<U>) -> bool

This method tests for !=.

impl<U: WebDriverExtensionRoute> ToJson for WebDriverMessage<U>
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON