pub struct EmailBodyPart<State = Get> { /* private fields */ }
Implementations§
Source§impl EmailBodyPart<Get>
impl EmailBodyPart<Get>
pub fn part_id(&self) -> Option<&str>
pub fn blob_id(&self) -> Option<&str>
pub fn size(&self) -> usize
pub fn headers(&self) -> Option<&[EmailHeader]>
pub fn header(&self, id: &Header) -> Option<&HeaderValue>
pub fn name(&self) -> Option<&str>
pub fn charset(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
pub fn content_disposition(&self) -> Option<&str>
pub fn content_id(&self) -> Option<&str>
pub fn content_language(&self) -> Option<&[String]>
pub fn content_location(&self) -> Option<&str>
pub fn sub_parts(&self) -> Option<&[EmailBodyPart]>
Source§impl EmailBodyPart
impl EmailBodyPart
pub fn new() -> EmailBodyPart<Set>
Source§impl EmailBodyPart<Set>
impl EmailBodyPart<Set>
pub fn part_id(self, part_id: impl Into<String>) -> Self
pub fn blob_id(self, blob_id: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn content_type(self, content_type: impl Into<String>) -> Self
pub fn content_id(self, content_id: impl Into<String>) -> Self
pub fn content_language<T, U>(self, content_language: T) -> Self
pub fn content_location(self, content_location: impl Into<String>) -> Self
pub fn sub_part(self, sub_part: EmailBodyPart) -> Self
Trait Implementations§
Source§impl<State: Clone> Clone for EmailBodyPart<State>
impl<State: Clone> Clone for EmailBodyPart<State>
Source§fn clone(&self) -> EmailBodyPart<State>
fn clone(&self) -> EmailBodyPart<State>
Returns a duplicate 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<State: Debug> Debug for EmailBodyPart<State>
impl<State: Debug> Debug for EmailBodyPart<State>
Source§impl<'de, State> Deserialize<'de> for EmailBodyPart<State>
impl<'de, State> Deserialize<'de> for EmailBodyPart<State>
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 From<EmailBodyPart<Set>> for EmailBodyPart<Get>
impl From<EmailBodyPart<Set>> for EmailBodyPart<Get>
Source§fn from(part: EmailBodyPart<Set>) -> Self
fn from(part: EmailBodyPart<Set>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<State> Freeze for EmailBodyPart<State>
impl<State> RefUnwindSafe for EmailBodyPart<State>where
State: RefUnwindSafe,
impl<State> Send for EmailBodyPart<State>where
State: Send,
impl<State> Sync for EmailBodyPart<State>where
State: Sync,
impl<State> Unpin for EmailBodyPart<State>where
State: Unpin,
impl<State> UnwindSafe for EmailBodyPart<State>where
State: UnwindSafe,
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