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§
- expire_
time - Conveniently generate an expiration time for a JWT
- html_
err - Respond to clients an error with html structure string
A similar usage as
json_err
- json_
err - Respond to clients an error with JSON data structure
- router
- Construct a router
- serve_
routes - Start the service with the provided config and defined routers, optionally followed by a list of middleware(globally)
Traits§
- From
Config File - Trait for loading a struct from a configuration file. This trait is automatically implemented when serde::Deserialize is.