Trait fdk::OutputCoercible
[−]
[src]
pub trait OutputCoercible { fn try_encode(self) -> Result<Response, FunctionError>; }
An OutputCoercible
type can be converted to a hyper::Response
.
Required Methods
fn try_encode(self) -> Result<Response, FunctionError>
Consume an instance of the type and try to convert it into a response. If this fails, report an appropriate FunctionError.
Implementations on Foreign Types
impl OutputCoercible for Response
[src]
Response is coercible to itself.
fn try_encode(self) -> Result<Response, FunctionError>
[src]
impl OutputCoercible for ()
[src]
The empty type is OutputCoercible, for simplicity
fn try_encode(self) -> Result<Response, FunctionError>
[src]
impl OutputCoercible for Vec<u8>
[src]
A vector of bytes is OutputCoercible, for simplicity
fn try_encode(self) -> Result<Response, FunctionError>
[src]
impl OutputCoercible for String
[src]
String is OutputCoercible, for simplicity
fn try_encode(self) -> Result<Response, FunctionError>
[src]
impl OutputCoercible for Value
[src]
serde_json::Value is OutputCoercible, for simplicity