Enum deltachat::headerdef::HeaderDef

source ·
pub enum HeaderDef {
Show 47 variants MessageId, Subject, Date, From_, To, AutoSubmitted, Cc, Disposition, OriginalMessageId, AdditionalMessageIds, XMicrosoftOriginalMessageId, XMozillaDraftInfo, ListId, ListPost, ListHelp, References, InReplyTo, Precedence, ContentType, ContentId, ChatVersion, ChatGroupId, ChatGroupName, ChatGroupNameChanged, ChatVerified, ChatGroupAvatar, ChatUserAvatar, ChatVoiceMessage, ChatGroupMemberRemoved, ChatGroupMemberAdded, ChatContent, ChatDuration, ChatDispositionNotificationTo, ChatWebrtcRoom, Autocrypt, AutocryptSetupMessage, SecureJoin, SecureJoinGroup, SecureJoinFingerprint, SecureJoinInvitenumber, SecureJoinAuth, Sender, EphemeralTimer, Received, AuthenticationResults, IrohNodeAddr, IrohGossipTopic,
}

Variants§

§

MessageId

§

Subject

§

Date

§

From_

§

To

§

AutoSubmitted

§

Cc

Carbon copy.

§

Disposition

§

OriginalMessageId

Used in the “Body Part Header” of MDNs as of RFC 8098. Indicates the Message-ID of the message for which the MDN is being issued.

§

AdditionalMessageIds

Delta Chat extension for message IDs in combined MDNs

§

XMicrosoftOriginalMessageId

Outlook-SMTP-server replace the Message-ID:-header and write the original ID to X-Microsoft-Original-Message-ID. To sort things correctly and to not show outgoing messages twice, we need to check that header as well.

§

XMozillaDraftInfo

Thunderbird header used to store Draft information.

Thunderbird 78.11.0 does not set \Draft flag on messages saved as “Template”, but sets this header, so it can be used to ignore such messages.

§

ListId

Mailing list ID defined in RFC 2919.

§

ListPost

§

ListHelp

List-Help header defined in RFC 2369.

§

References

§

InReplyTo

In-Reply-To header containing Message-ID of the parent message.

§

Precedence

Used to detect mailing lists if contains “list” value as described in RFC 3834

§

ContentType

§

ContentId

§

ChatVersion

§

ChatGroupId

§

ChatGroupName

§

ChatGroupNameChanged

§

ChatVerified

§

ChatGroupAvatar

§

ChatUserAvatar

§

ChatVoiceMessage

§

ChatGroupMemberRemoved

§

ChatGroupMemberAdded

§

ChatContent

§

ChatDuration

Duration of the attached media file.

§

ChatDispositionNotificationTo

§

ChatWebrtcRoom

§

Autocrypt

Autocrypt header.

§

AutocryptSetupMessage

§

SecureJoin

§

SecureJoinGroup

Deprecated header containing Group-ID in vg-request-with-auth message.

It is not used by Alice as Alice knows the group corresponding to the AUTH token. Bob still sends it for backwards compatibility.

§

SecureJoinFingerprint

§

SecureJoinInvitenumber

§

SecureJoinAuth

§

Sender

§

EphemeralTimer

Ephemeral message timer.

§

Received

§

AuthenticationResults

A header that includes the results of the DKIM, SPF and DMARC checks. See https://datatracker.ietf.org/doc/html/rfc8601

§

IrohNodeAddr

Node address from iroh where direct addresses have been removed.

§

IrohGossipTopic

Advertised gossip topic for one webxdc.

Implementations§

source§

impl HeaderDef

source

pub fn get_headername(&self) -> &'static str

Returns the corresponding header string.

Trait Implementations§

source§

impl Clone for HeaderDef

source§

fn clone(&self) -> HeaderDef

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HeaderDef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for HeaderDef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'_derivative_strum> From<&'_derivative_strum HeaderDef> for &'static str

source§

fn from(x: &'_derivative_strum HeaderDef) -> &'static str

Converts to this type from the input type.
source§

impl From<HeaderDef> for &'static str

source§

fn from(x: HeaderDef) -> &'static str

Converts to this type from the input type.
source§

impl PartialEq for HeaderDef

source§

fn eq(&self, other: &HeaderDef) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for HeaderDef

source§

impl StructuralPartialEq for HeaderDef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more