[−][src]Trait limiting_factor::api::replies::ApiResponse
This trait allows to consume an object into an HTTP response.
Required methods
fn into_json_response(self) -> ApiJsonResponse<T>
Consumes the value and creates a JSON or a Status result response.
Implementations on Foreign Types
impl<T> ApiResponse<T> for Json<T>
[src]
Prepares an API response from a JSON.
fn into_json_response(self) -> ApiJsonResponse<T>
[src]
Implementors
impl<T> ApiResponse<T> for T where
T: Serialize,
[src]
T: Serialize,
Prepares an API response from a Serde-serializable result.
This is probably the easiest way to convert most struct into API responders.