Expand description
Standard prelude to import needed tools at once.
Re-exports§
pub use crate::setup::GenericSetup;pub use crate::setup::GenericValues;pub use crate::setup::load_generic_config;pub use crate::setup::load_generic_state;pub use crate::startup::get_root_router;pub use crate::startup::get_root_router_autoinject;pub use crate::startup::start;pub use crate::otel;pub use impulse_utils;pub use salvo;pub use tracing;
Modules§
- endpoint
- Enhanced of handler for generate OpenAPI documentation.
- handler
- Handler module for handle
Request. - instrument
- Attach a span to a
std::future::Future.
Macros§
- file_
upload - File response.
- html
- Returns given HTML code.
- json
- Serializes to JSON and returns given object.
- msgpack
- Serializes to MsgPack and returns given object.
- ok
- Returns empty
200 OKresponse. - plain
- Returns given plain text.
Structs§
- Client
Error - Data structure responsible for client errors.
- Depot
- Store temp data for current request.
- Error
Response - Public error message.
- File
- Sends 200 and file.
- Html
- Sends 200 and HTML.
- Json
- Sends 200 and JSON.
- MsgPack
- Sends 200 and MsgPack.
- OK
- Sends 200 without data.
- Plain
- Sends 200 and plain text.
- Request
- Represents an HTTP request.
- Response
- Represents an HTTP response.
- Router
- Route request to different handlers.
- Server
Error - Data structure responsible for server errors.
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).
Traits§
- Collect
Server Error - Trait to recover public errors from server.
- MsgPack
Parser - MessagePack parser from
salvo::Request. - MsgPack
Request - MessagePack writer to
reqwest::RequestBuilder. - MsgPack
Response - Trait to parse MessagePack responses from
reqwestlibrary. - Redirect
Server Error - Trait to recover public errors from server.
- Simd
Json Parser - JSON parser from
salvo::Requestbysonic-rs.