[][src]Struct mail_headers::header_components::MessageId

pub struct MessageId { /* fields omitted */ }

Implementation Details

This is used for both message-id/content-id, but depending on usage and support for obsolete parts there are two "kind" of id's one which allows FWS(/CFWS) in some places and one which doesn't. This implementation only supports the later one.

Methods

impl MessageId[src]

pub fn from_unchecked(string: String) -> Self[src]

creates a message id from a string without checking for validity

The string is expected to have the format <left_part> "@" <right_part>, i.e. it should not include the "<", ">" surrounding message id's in more or less all places they are used.

pub fn new(
    left_part: &SoftAsciiStr,
    right_part: &SoftAsciiStr
) -> Result<Self, ComponentCreationError>
[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl<T> HeaderTryFrom<T> for MessageId where
    T: HeaderTryInto<Input>, 
[src]

impl PartialEq<MessageId> for MessageId[src]

impl Clone for MessageId[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for MessageId[src]

impl Display for MessageId[src]

impl Debug for MessageId[src]

impl Hash for MessageId[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for MessageId[src]

impl<'de> Deserialize<'de> for MessageId[src]

impl EncodableInHeader for MessageId[src]

Auto Trait Implementations

impl Send for MessageId

impl Sync for MessageId

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Erased for T[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]