[−][src]Struct mail_headers::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) -> 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]
left_part: &SoftAsciiStr,
right_part: &SoftAsciiStr
) -> Result<Self, ComponentCreationError>
pub fn as_str(&self) -> &str[src]
Trait Implementations
impl Clone for MessageId[src]
impl Debug for MessageId[src]
impl Display for MessageId[src]
impl EncodableInHeader for MessageId[src]
fn encode(&self, handle: &mut EncodingWriter) -> Result<(), EncodingError>[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>[src]
impl Eq for MessageId[src]
impl Hash for MessageId[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<T> HeaderTryFrom<T> for MessageId where
T: HeaderTryInto<Input>, [src]
T: HeaderTryInto<Input>,
fn try_from(input: T) -> Result<Self, ComponentCreationError>[src]
impl PartialEq<MessageId> for MessageId[src]
impl StructuralEq for MessageId[src]
impl StructuralPartialEq for MessageId[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageId
impl Send for MessageId
impl Sync for MessageId
impl Unpin for MessageId
impl UnwindSafe for MessageId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,