
rust.api_mod.mustache Maven / Gradle / Ivy
use hyper;
use serde_json;
#[derive(Debug)]
pub enum Error {
Hyper(hyper::Error),
Serde(serde_json::Error),
}
impl From for Error {
fn from(e: hyper::Error) -> Self {
return Error::Hyper(e)
}
}
impl From for Error {
fn from(e: serde_json::Error) -> Self {
return Error::Serde(e)
}
}
use super::models::*;
{{#apiInfo}}
{{#apis}}
mod {{classFilename}};
{{#operations}}
{{#operation}}
{{#-last}}
pub use self::{{classFilename}}::{ {{classname}}, {{classname}}Client };
{{/-last}}
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}
pub mod configuration;
pub mod client;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy