Trait chromiumoxide_types::Command [−][src]
pub trait Command: Serialize + Method { type Response: DeserializeOwned + Debug; fn response_from_value(response: Value) -> Result<Self::Response> { ... } }
Expand description
Trait that all the request types have to implement.
Associated Types
type Response: DeserializeOwned + Debug
type Response: DeserializeOwned + Debug
The type of the response this request triggers on the chromium server
Provided methods
fn response_from_value(response: Value) -> Result<Self::Response>
fn response_from_value(response: Value) -> Result<Self::Response>
deserialize the response from json