Crate mailpot_web
source ·Re-exports
pub use cal::calendarize;
pub use typed_paths::tsr::RouterExt;
pub use auth::*;
pub use cal::*;
pub use help::*;
pub use lists::*;
pub use minijinja_utils::*;
pub use settings::*;
pub use topics::*;
pub use typed_paths::*;
pub use utils::*;
Modules
- Utils for templates with the
minijinja
crate.
Structs
- Layer that provides session-based authentication via
AuthContext
. - An ephemeral store, useful for testing and demonstration purposes.
- Extractor and response for extensions.
- URL encoded extractor and response.
- An HTML response.
- in-memory session store
- Extractor that will get captures from the URL and parse them using
serde
. - Extractor that deserializes query strings into some type.
- An extractor which provides a readable session. Sessions may have many readers.
- Response that redirects the request to another location.
- Represents an HTTP request.
- A wrapper around
tower_http::auth::RequireAuthorizationLayer
which provides login authorization. - Represents an HTTP response
- The router type for composing handlers and services.
- Layer that provides cookie-based sessions.
- Extractor for state.
- An HTTP status code (
status-code
in RFC 7230 et al.). - An extractor which provides a writable session. Sessions may have only one writer.
Enums
Constants
Traits
- A trait which defines methods that allow an arbitrary user type to be authenticated.
- Trait for async functions that can be used to handle requests.
- Trait for generating responses.
- A type safe path.
Functions
- Route
GET
requests to the given handler. - Route
POST
requests to the given handler.
Type Definitions
Vec
types containing secret value
Derive Macros
- Derive an implementation of
axum_extra::routing::TypedPath
.