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 typed_paths::*;
pub use utils::*;
Modules
- A lightweight logging facade.
- A crate that performs mail client operations such as
- Utils for templates with the [
minijinja
] crate. - Generate configuration for the postfix mail server.
- Rusqlite is an ergonomic wrapper for using SQLite from Rust.
- Serde
- Serde JSON
- Submit e-mail through SMTP.
Structs
- Layer that provides session-based authentication via [
AuthContext
]. - An ephemeral store, useful for testing and demonstration purposes.
- The configuration for the mailpot database and the mail server.
- A connection to a
mailpot
database. - A database entry and its primary key. Derefs to its inner type.
- Extractor and response for extensions.
- URL encoded extractor and response.
- An HTML response.
- A
mailto:
value. - 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.
- A queue entry.
- 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.). - A named template.
- Helper type for
Connection::send_reply_with_list_template
. - An extractor which provides a writable session. Sessions may have only one writer.
Enums
- The kind of an error.
- In-database queues of mail.
- How to send e-mail.
Traits
- A trait which defines methods that allow an arbitrary user type to be authenticated.
- This trait is implemented on all the errors generated by the
error_chain
macro. - Provides the
context
method forResult
. - Trait for async functions that can be used to handle requests.
- Trait for generating responses.
- See the method documentation.
- Additional methods for
Result
, for easy interaction with this crate. - 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
.