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

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

There is a newer version: 7.6.0
Show newest version
{{>example-server-common}}
use {{{externCrateName}}}::CallbackApi;
{{#apiInfo}}
  {{#apis}}
    {{#operations}}
      {{#operation}}
        {{#callbacks}}
          {{#urls}}
            {{#requests}}
use {{{externCrateName}}}::{{{operationId}}}Response;
            {{/requests}}
          {{/urls}}
        {{/callbacks}}
      {{/operation}}
    {{/operations}}
  {{/apis}}
{{/apiInfo}}
use {{{externCrateName}}}::client::callbacks::MakeService;
use std::error::Error;
use swagger::ApiError;

#[async_trait]
impl CallbackApi for Server where C: Has + Send + Sync
{
{{#apiInfo}}
  {{#apis}}
    {{#operations}}
      {{#operation}}
        {{#callbacks}}
          {{#urls}}
            {{#requests}}
{{>example-server-operation}}
            {{/requests}}
          {{/urls}}
        {{/callbacks}}
      {{/operation}}
    {{/operations}}
  {{/apis}}
{{/apiInfo}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy