Crate webserver_rs
source ·Re-exports§
pub use assets::MemoryStream;
pub use web_core::config;
pub use route::build_cros;
pub use salvo;
pub use anyhow;
pub use chrono;
pub use futures;
pub use serde;
pub use serde_json;
pub use time;
pub use tokio;
pub use web_core::*;
pub use web_core::http_error::*;
Modules§
Macros§
- Conveniently generate an expiration time for a JWT
- Respond to clients an error with html structure string A similar usage as
json_err
- Respond to clients an error with JSON data structure
- Construct a router
- Start the service with the provided config and defined routers, optionally followed by a list of middleware(globally)
Traits§
- Trait for loading a struct from a configuration file. This trait is automatically implemented when serde::Deserialize is.