proxmox/proxmox-router/src/lib.rs
Lukas Wagner add38769f8 router: re-export HttpError from proxmox-http-error
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-07-28 10:47:05 +02:00

30 lines
707 B
Rust

//! API Router and Command Line Interface utilities.
pub mod format;
#[cfg(feature = "cli")]
pub mod cli;
// this is public so the `http_err!` macro can access `http::StatusCode` through it
#[doc(hidden)]
#[cfg(feature = "server")]
pub mod error;
mod permission;
mod router;
mod rpc_environment;
mod serializable_return;
#[doc(inline)]
#[cfg(feature = "server")]
pub use error::*;
pub use permission::*;
pub use router::*;
pub use rpc_environment::{RpcEnvironment, RpcEnvironmentType};
pub use serializable_return::SerializableReturn;
// make list_subdirs_api_method! work without an explicit proxmox-schema dependency:
#[doc(hidden)]
pub use proxmox_schema::ObjectSchema as ListSubdirsObjectSchema;