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

rust.api_mod.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
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