rust-server.example-server_lib.mustache Maven / Gradle / Ivy
//! Main library entry point for {{{externCrateName}}} implementation.
mod server;
mod errors {
error_chain!{}
}
pub use self::errors::*;
use std::io;
use std::clone::Clone;
use std::marker::PhantomData;
use hyper;
use {{{externCrateName}}};
use swagger::{Has, XSpanIdString};
{{#hasAuthMethods}}
use swagger::auth::Authorization;
{{/hasAuthMethods}}
pub struct NewService{
marker: PhantomData
}
impl NewService{
pub fn new() -> Self {
NewService{marker:PhantomData}
}
}
impl hyper::server::NewService for NewService where C: Has {{#hasAuthMethods}}+ Has
© 2015 - 2024 Weber Informatics LLC | Privacy Policy