rust-server.example-server-server.mustache Maven / Gradle / Ivy
{{>example-server-common}}
use {{{externCrateName}}}::{
Api,
{{#apiInfo}}
{{#apis}}
{{#operations}}
{{#operation}}
{{{operationId}}}Response,
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}
};
use {{{externCrateName}}}::server::MakeService;
use std::error::Error;
use swagger::ApiError;
#[async_trait]
impl Api for Server where C: Has + Send + Sync
{
{{#apiInfo}}
{{#apis}}
{{#operations}}
{{#operation}}
{{>example-server-operation}}
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}
}