All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rust-server.example-server-server.mustache Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
{{>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}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy