Crate mail_core

source ·
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

This module provides utilities for composing multipart mails.
Provides the context needed for building/encoding mails.
This module provides an number of default implementations for some of the interfaces.
Module containing all custom errors produced by this crate.
Module containing some utilities for MIME usage/creation.
Utilities.

Structs

A type containing some data and metadata for it.
EncData is like Data but the buffer contains transfer encoded data.
a mail with all contained futures resolved, so that it can be encoded
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.
A future resolving to an encodable mail.
POD type containing FileMeta, Content-Type and Content-Id
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

A type which either represents a single body, or multiple modies.
A enum specifying a “resource” for a mail.
Hint to change how data should be transfer encoded.
Specifies how the content type should be handled when loading the data.

Traits