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};
use swagger::auth::Authorization;
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