Skip to main content

Module types

Module types 

Source
Expand description

Public API types for parsed and outgoing email messages.

All types are fully owned (String / Vec<u8>) with no lifetime parameters, per workspace conventions.

§References

  • RFC 5322 (Internet Message Format — address, date-time)
  • RFC 2045 (MIME — Content-Transfer-Encoding)
  • RFC 2183 (Content-Disposition)
  • RFC 3501 Section 6.4.5 (IMAP MIME section numbers)

Structs§

Address
An email address with optional display name.
BuiltMessage
The result of building an email message.
DateTime
Date-time with timezone offset preserved.
HeaderName
A validated RFC 5322 header field name.
MessageId
A validated RFC 5322 message-ID (bare, without angle brackets).
OutgoingAttachment
An attachment to include in an outgoing email.
OutgoingEmail
An outgoing email to be built into raw RFC 5322 bytes.
ParsedAttachment
Metadata for an attachment found during parsing.
ParsedEmail
A parsed email message.
ValidationError
Error returned when constructing a validated protocol type from an invalid string.

Enums§

TlsMode
TLS mode for the initial connection (RFC 8314).