Struct imap_types::body::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: u32
Size 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, 'arbitrary: 'a> Arbitrary<'arbitrary> for BasicFields<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for BasicFields<'a>
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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<'de, 'a> Deserialize<'de> for BasicFields<'a>
impl<'de, 'a> Deserialize<'de> for BasicFields<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Hash for BasicFields<'a>
impl<'a> Hash for BasicFields<'a>
source§impl<'a> IntoBoundedStatic for BasicFields<'a>
impl<'a> IntoBoundedStatic for BasicFields<'a>
§type Static = BasicFields<'static>
type Static = BasicFields<'static>
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.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 ==
.source§impl<'a> Serialize for BasicFields<'a>
impl<'a> Serialize for BasicFields<'a>
source§impl<'a> ToBoundedStatic for BasicFields<'a>
impl<'a> ToBoundedStatic for BasicFields<'a>
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