pub struct Email(/* private fields */);Expand description
The Email (35=C) message.
Implementations§
Source§impl Email
impl Email
pub const MSG_TYPE: &[u8] = b"C"
pub const KNOWN_TAGS: KnownTags<'static>
pub fn from_raw(raw: RawMessage) -> Self
pub fn raw(&self) -> &RawMessage
pub fn header(&self) -> Header<'_>
pub fn trailer(&self) -> Trailer<'_>
Sourcepub fn email_thread_id(&self) -> Result<Option<&str>, InvalidValue>
pub fn email_thread_id(&self) -> Result<Option<&str>, InvalidValue>
The EmailThreadID (164) field.
Sourcepub fn email_type(&self) -> Result<Option<EmailType<'_>>, InvalidValue>
pub fn email_type(&self) -> Result<Option<EmailType<'_>>, InvalidValue>
The EmailType (94) field.
Sourcepub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>
pub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>
The OrigTime (42) field.
Sourcepub fn encoded_subject_len(&self) -> Result<Option<i64>, InvalidValue>
pub fn encoded_subject_len(&self) -> Result<Option<i64>, InvalidValue>
The EncodedSubjectLen (356) field.
Sourcepub fn encoded_subject(&self) -> Option<&[u8]>
pub fn encoded_subject(&self) -> Option<&[u8]>
The EncodedSubject (357) field.
Sourcepub fn routing_ids(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>
pub fn routing_ids(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>
The instances of the NoRoutingIDs (215) group.
The instances of the NoRelatedSym (146) group.
Sourcepub fn lines_of_text(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>
pub fn lines_of_text(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>
The instances of the LinesOfText (33) group.
Sourcepub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>
pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>
The RawDataLength (95) field.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Email
impl Forget for Email
impl Move for Email
impl RefUnwindSafe for Email
impl Send for Email
impl Sync for Email
impl Unpin for Email
impl UnsafeUnpin for Email
impl UnwindSafe for Email
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