Struct imap_types::response::data::BasicFields
source · pub struct BasicFields<'a> {
pub parameter_list: Vec<(IString<'a>, IString<'a>)>,
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>)>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> 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 ==.impl<'a> Eq for BasicFields<'a>
impl<'a> StructuralEq for BasicFields<'a>
impl<'a> StructuralPartialEq for BasicFields<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BasicFields<'a>
impl<'a> Send for BasicFields<'a>
impl<'a> Sync for BasicFields<'a>
impl<'a> Unpin for BasicFields<'a>
impl<'a> UnwindSafe for BasicFields<'a>
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