Expand description
Provides the core mail type Mail
for the mail
crate.
This crate provides the type called Mail
as well as ways
to create it. It also provides the builder context interface
and the Resource
type, which is used to represent mail bodies.
Especially such which are attachments or embedded images.
Re-exports§
pub use ::context::Context;
pub use ::context::MaybeEncData;
Modules§
- compose
- This module provides utilities for composing multipart mails.
- context
- Provides the context needed for building/encoding mails.
- default_
impl - This module provides an number of default implementations for some of the interfaces.
- error
- Module containing all custom errors produced by this crate.
- mime
- Module containing some utilities for MIME usage/creation.
- utils
- Utilities.
Structs§
- Data
- A type containing some data and metadata for it.
- EncData
EncData
is likeData
but the buffer contains transfer encoded data.- Encodable
Mail - a mail with all contained futures resolved, so that it can be encoded
- IRI
- A minimal IRI (International Resource Identifier) implementation which just parses the scheme but no scheme specific part (and neither fragments wrt. those definitions in which fragments are not scheme specific parts).
- A type representing a Mail.
- Mail
Future - A future resolving to an encodable mail.
- Metadata
- POD type containing FileMeta, Content-Type and Content-Id
- Resource
Container Loading Future - Source
- POD containing the IRI which should be used to laod a resource well as an optional file name to use and a description about how the content type should be handled.
Enums§
- Mail
Body - A type which either represents a single body, or multiple modies.
- Resource
- A enum specifying a “resource” for a mail.
- Transfer
Encoding Hint - Hint to change how data should be transfer encoded.
- UseMedia
Type - Specifies how the content type should be handled when loading the data.