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

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.

impl OutputCoercible for ()
[src]

The empty type is OutputCoercible, for simplicity

impl OutputCoercible for Vec<u8>
[src]

A vector of bytes is OutputCoercible, for simplicity

impl OutputCoercible for String
[src]

String is OutputCoercible, for simplicity

impl OutputCoercible for Value
[src]

serde_json::Value is OutputCoercible, for simplicity

Implementors