[−][src]Struct mail::header_components::MessageId
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) -> MessageId
[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<MessageId, ComponentCreationError>
[src]
left_part: &SoftAsciiStr,
right_part: &SoftAsciiStr
) -> Result<MessageId, ComponentCreationError>
pub fn as_str(&self) -> &str
[src]
Trait Implementations
impl Hash for MessageId
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for MessageId
[src]
fn clone(&self) -> MessageId
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> HeaderTryFrom<T> for MessageId where
T: HeaderTryInto<Input>,
[src]
T: HeaderTryInto<Input>,
fn try_from(input: T) -> Result<MessageId, ComponentCreationError>
[src]
impl Serialize for MessageId
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl Display for MessageId
[src]
impl Eq for MessageId
[src]
impl<'de> Deserialize<'de> for MessageId
[src]
fn deserialize<D>(
deserializer: D
) -> Result<MessageId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<MessageId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl EncodableInHeader for MessageId
[src]
fn encode(&self, handle: &mut EncodingWriter) -> Result<(), EncodingError>
[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader + 'static>
[src]
impl PartialEq<MessageId> for MessageId
[src]
impl Debug for MessageId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<F, T> HeaderTryInto for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,