Struct backtalk::Request
[−]
[src]
pub struct Request { /* fields omitted */ }
A request containing data from the client.
Methods
impl Request
[src]
fn new(
resource: String,
method: Method,
id: Option<String>,
data: JsonObject,
params: JsonObject
) -> Request
resource: String,
method: Method,
id: Option<String>,
data: JsonObject,
params: JsonObject
) -> Request
fn into_reply(self, reply: JsonObject) -> Reply
fn method(&self) -> Method
fn resource(&self) -> &str
fn id(&self) -> &Option<String>
fn params(&self) -> &JsonObject
fn params_mut(&mut self) -> &mut JsonObject
fn param(&self, key: &str) -> &JsonValue
fn set_param(&mut self, key: String, val: JsonValue)
fn data(&self) -> &JsonObject
fn data_mut(&mut self) -> &mut JsonObject
fn boxed(self) -> BoxFuture<Request, Error>
fn and_then<F, B>(self, f: F) -> AndThen<FutureResult<Request, Error>, B, F> where
F: FnOnce(Request) -> B,
B: IntoFuture<Error = Error>,
F: FnOnce(Request) -> B,
B: IntoFuture<Error = Error>,
Trait Implementations
impl Debug for Request
[src]
impl IntoFuture for Request
[src]
type Item = Request
The item that the future may resolve with.
type Error = Error
The error that the future may resolve with.
type Future = FutureResult<Request, Error>
The future that this type can be converted into.
fn into_future(self) -> Self::Future
Consumes this object and produces a future.