#[non_exhaustive]pub enum HeaderName<'x> {
Show 141 variants
Subject,
From,
To,
Cc,
Date,
Bcc,
ReplyTo,
Sender,
Comments,
InReplyTo,
Keywords,
Received,
MessageId,
References,
ReturnPath,
MimeVersion,
ContentDescription,
ContentId,
ContentLanguage,
ContentLocation,
ContentTransferEncoding,
ContentType,
ContentDisposition,
ResentTo,
ResentFrom,
ResentBcc,
ResentCc,
ResentSender,
ResentDate,
ResentMessageId,
ListArchive,
ListHelp,
ListId,
ListOwner,
ListPost,
ListSubscribe,
ListUnsubscribe,
ArcAuthenticationResults,
ArcMessageSignature,
ArcSeal,
DkimSignature,
Dkim2Signature,
MessageInstance,
AcceptLanguage,
AlternateRecipient,
ArchivedAt,
AuthenticationResults,
AutoSubmitted,
Autoforwarded,
Autosubmitted,
ContentAlternative,
ContentDuration,
ContentFeatures,
ContentMd5,
ContentTranslationType,
Conversion,
ConversionWithLoss,
DlExpansionHistory,
DeferredDelivery,
DeliveryDate,
DiscardedX400IpmsExtensions,
DiscardedX400MtsExtensions,
DiscloseRecipients,
DispositionNotificationOptions,
DispositionNotificationTo,
DowngradedFinalRecipient,
DowngradedInReplyTo,
DowngradedMessageId,
DowngradedOriginalRecipient,
DowngradedReferences,
Encoding,
Expires,
GenerateDeliveryReport,
HpOuter,
Importance,
IncompleteCopy,
Language,
LatestDeliveryTime,
ListUnsubscribePost,
MessageContext,
MessageType,
MmhsExemptedAddress,
MmhsExtendedAuthorisationInfo,
MmhsSubjectIndicatorCodes,
MmhsHandlingInstructions,
MmhsMessageInstructions,
MmhsCodressMessageIndicator,
MmhsOriginatorReference,
MmhsPrimaryPrecedence,
MmhsCopyPrecedence,
MmhsMessageType,
MmhsOtherRecipientsIndicatorTo,
MmhsOtherRecipientsIndicatorCc,
MmhsAcp127MessageIdentifier,
MmhsOriginatorPlad,
MtPriority,
Organization,
OriginalEncodedInformationTypes,
OriginalFrom,
OriginalMessageId,
OriginalRecipient,
OriginatorReturnAddress,
OriginalSubject,
PicsLabel,
PreventNonDeliveryReport,
Priority,
ReceivedSpf,
ReplyBy,
RequireRecipientValidSince,
Sensitivity,
Solicitation,
Supersedes,
TlsReportDomain,
TlsReportSubmitter,
TlsRequired,
VbrInfo,
X400ContentIdentifier,
X400ContentReturn,
X400ContentType,
X400MtsIdentifier,
X400Originator,
X400Received,
X400Recipients,
X400Trace,
ApparentlyTo,
Author,
CfblAddress,
CfblFeedbackId,
DeliveredTo,
EdiintFeatures,
EesstVersion,
ErrorsTo,
Face,
FormSub,
JabberId,
MmhsAuthorizingUsers,
Privicon,
SioLabel,
SioLabelHistory,
WrongRecipient,
Other(Cow<'x, str>),
}Expand description
A header field
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Subject
From
To
Cc
Date
Bcc
ReplyTo
Sender
Comments
InReplyTo
Keywords
Received
MessageId
References
ReturnPath
MimeVersion
ContentDescription
ContentId
ContentLanguage
ContentLocation
ContentTransferEncoding
ContentType
ContentDisposition
ResentTo
ResentFrom
ResentBcc
ResentCc
ResentSender
ResentDate
ResentMessageId
ListArchive
ListHelp
ListId
ListOwner
ListPost
ListSubscribe
ListUnsubscribe
ArcAuthenticationResults
ArcMessageSignature
ArcSeal
DkimSignature
Dkim2Signature
MessageInstance
AcceptLanguage
AlternateRecipient
ArchivedAt
AuthenticationResults
AutoSubmitted
Autoforwarded
Autosubmitted
ContentAlternative
ContentDuration
ContentFeatures
ContentMd5
ContentTranslationType
Conversion
ConversionWithLoss
DlExpansionHistory
DeferredDelivery
DeliveryDate
DiscardedX400IpmsExtensions
DiscardedX400MtsExtensions
DiscloseRecipients
DispositionNotificationOptions
DispositionNotificationTo
DowngradedFinalRecipient
DowngradedInReplyTo
DowngradedMessageId
DowngradedOriginalRecipient
DowngradedReferences
Encoding
Expires
GenerateDeliveryReport
HpOuter
Importance
IncompleteCopy
Language
LatestDeliveryTime
ListUnsubscribePost
MessageContext
MessageType
MmhsExemptedAddress
MmhsExtendedAuthorisationInfo
MmhsSubjectIndicatorCodes
MmhsHandlingInstructions
MmhsMessageInstructions
MmhsCodressMessageIndicator
MmhsOriginatorReference
MmhsPrimaryPrecedence
MmhsCopyPrecedence
MmhsMessageType
MmhsOtherRecipientsIndicatorTo
MmhsOtherRecipientsIndicatorCc
MmhsAcp127MessageIdentifier
MmhsOriginatorPlad
MtPriority
Organization
OriginalEncodedInformationTypes
OriginalFrom
OriginalMessageId
OriginalRecipient
OriginatorReturnAddress
OriginalSubject
PicsLabel
PreventNonDeliveryReport
Priority
ReceivedSpf
ReplyBy
RequireRecipientValidSince
Sensitivity
Solicitation
Supersedes
TlsReportDomain
TlsReportSubmitter
TlsRequired
VbrInfo
X400ContentIdentifier
X400ContentReturn
X400ContentType
X400MtsIdentifier
X400Originator
X400Received
X400Recipients
X400Trace
ApparentlyTo
Author
CfblAddress
CfblFeedbackId
DeliveredTo
EdiintFeatures
EesstVersion
ErrorsTo
Face
FormSub
JabberId
MmhsAuthorizingUsers
Privicon
SioLabel
SioLabelHistory
WrongRecipient
Other(Cow<'x, str>)
Implementations§
Source§impl HeaderName<'_>
impl HeaderName<'_>
pub fn into_string(self) -> String
pub fn as_str(&self) -> &str
pub fn len(&self) -> usize
Sourcepub fn is_structured(&self) -> bool
pub fn is_structured(&self) -> bool
Returns true if the default parser yields a structured value for this header.
Sourcepub fn is_mime_header(&self) -> bool
pub fn is_mime_header(&self) -> bool
Returns true if it is a MIME header.
pub fn is_empty(&self) -> bool
Source§impl<'x> HeaderName<'x>
impl<'x> HeaderName<'x>
Source§impl HeaderName<'_>
impl HeaderName<'_>
pub fn as_static_str(&self) -> &'static str
pub fn id(&self) -> u8
pub fn to_owned(&self) -> HeaderName<'static>
pub fn into_owned(self) -> HeaderName<'static>
Trait Implementations§
Source§impl<'x> Clone for HeaderName<'x>
impl<'x> Clone for HeaderName<'x>
Source§fn clone(&self) -> HeaderName<'x>
fn clone(&self) -> HeaderName<'x>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'x> Debug for HeaderName<'x>
impl<'x> Debug for HeaderName<'x>
Source§impl Display for HeaderName<'_>
impl Display for HeaderName<'_>
impl Eq for HeaderName<'_>
Source§impl<'x> From<&'x str> for HeaderName<'x>
impl<'x> From<&'x str> for HeaderName<'x>
Source§impl From<HeaderName<'_>> for String
impl From<HeaderName<'_>> for String
Source§fn from(header: HeaderName<'_>) -> Self
fn from(header: HeaderName<'_>) -> Self
Converts to this type from the input type.
Source§impl<'x> From<HeaderName<'x>> for u8
impl<'x> From<HeaderName<'x>> for u8
Source§fn from(name: HeaderName<'x>) -> Self
fn from(name: HeaderName<'x>) -> Self
Converts to this type from the input type.
Source§impl<'x> From<HeaderName<'x>> for Cow<'x, str>
impl<'x> From<HeaderName<'x>> for Cow<'x, str>
Source§fn from(header: HeaderName<'x>) -> Self
fn from(header: HeaderName<'x>) -> Self
Converts to this type from the input type.
Source§impl From<String> for HeaderName<'_>
impl From<String> for HeaderName<'_>
Source§impl From<u8> for HeaderName<'_>
impl From<u8> for HeaderName<'_>
Source§impl Hash for HeaderName<'_>
impl Hash for HeaderName<'_>
Source§impl<'x> Ord for HeaderName<'x>
impl<'x> Ord for HeaderName<'x>
Source§fn cmp(&self, other: &HeaderName<'x>) -> Ordering
fn cmp(&self, other: &HeaderName<'x>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HeaderName<'_>
impl PartialEq for HeaderName<'_>
Source§impl<'x> PartialOrd for HeaderName<'x>
impl<'x> PartialOrd for HeaderName<'x>
Auto Trait Implementations§
impl<'x> Freeze for HeaderName<'x>
impl<'x> RefUnwindSafe for HeaderName<'x>
impl<'x> Send for HeaderName<'x>
impl<'x> Sync for HeaderName<'x>
impl<'x> Unpin for HeaderName<'x>
impl<'x> UnsafeUnpin for HeaderName<'x>
impl<'x> UnwindSafe for HeaderName<'x>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more