Struct jmap_client::email::EmailBodyPart
source · [−]pub struct EmailBodyPart<State = Get> { /* private fields */ }Implementations
sourceimpl 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]>
sourceimpl EmailBodyPart
impl EmailBodyPart
pub fn new() -> EmailBodyPart<Set>
sourceimpl 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) -> Selfwhere
T: IntoIterator<Item = U>,
U: Into<String>,
pub fn content_location(self, content_location: impl Into<String>) -> Self
pub fn sub_part(self, sub_part: EmailBodyPart) -> Self
Trait Implementations
sourceimpl<State: Clone> Clone for EmailBodyPart<State>
impl<State: Clone> Clone for EmailBodyPart<State>
sourcefn clone(&self) -> EmailBodyPart<State>
fn clone(&self) -> EmailBodyPart<State>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<State: Debug> Debug for EmailBodyPart<State>
impl<State: Debug> Debug for EmailBodyPart<State>
sourceimpl<'de, State> Deserialize<'de> for EmailBodyPart<State>
impl<'de, State> Deserialize<'de> for EmailBodyPart<State>
sourcefn 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
sourceimpl<State> Serialize for EmailBodyPart<State>
impl<State> Serialize for EmailBodyPart<State>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more