Struct imap_codec::response::data::BasicFields
source · pub struct BasicFields<'a> {
pub parameter_list: Vec<(IString<'a>, IString<'a>), Global>,
pub id: NString<'a>,
pub description: NString<'a>,
pub content_transfer_encoding: IString<'a>,
pub size: u32,
}Expand description
The basic fields of a non-multipart body part.
Fields§
§parameter_list: Vec<(IString<'a>, IString<'a>), Global>List of attribute/value pairs ([MIME-IMB].)
id: NString<'a>Content id ([MIME-IMB].)
description: NString<'a>Content description ([MIME-IMB].)
content_transfer_encoding: IString<'a>Content transfer encoding ([MIME-IMB].)
size: u32Size of the body in octets.
Note that this size is the size in its transfer encoding and not the resulting size after any decoding.
Trait Implementations§
source§impl<'a> Clone for BasicFields<'a>
impl<'a> Clone for BasicFields<'a>
source§fn clone(&self) -> BasicFields<'a>
fn clone(&self) -> BasicFields<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for BasicFields<'a>
impl<'a> Debug for BasicFields<'a>
source§impl<'a> Encode for BasicFields<'a>
impl<'a> Encode for BasicFields<'a>
source§impl<'a> Hash for BasicFields<'a>
impl<'a> Hash for BasicFields<'a>
source§impl<'a> PartialEq<BasicFields<'a>> for BasicFields<'a>
impl<'a> PartialEq<BasicFields<'a>> for BasicFields<'a>
source§fn eq(&self, other: &BasicFields<'a>) -> bool
fn eq(&self, other: &BasicFields<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.