[−][src]Struct melib::email::attachments::Attachment
Immutable attachment type.
Fields
content_type: ContentType
content_transfer_encoding: ContentTransferEncoding
content_disposition: ContentDisposition
raw: Vec<u8>
body: StrBuilder
Implementations
impl Attachment
[src]
pub fn new(
content_type: ContentType,
content_transfer_encoding: ContentTransferEncoding,
raw: Vec<u8>
) -> Self
[src]
content_type: ContentType,
content_transfer_encoding: ContentTransferEncoding,
raw: Vec<u8>
) -> Self
pub fn raw(&self) -> &[u8]
[src]
pub fn body(&self) -> &[u8]
[src]
pub fn part_boundaries(&self) -> Vec<StrBuilder>
[src]
pub fn check_if_has_attachments_quick(bytes: &[u8], boundary: &[u8]) -> bool
[src]
fn get_text_recursive(&self, text: &mut Vec<u8>)
[src]
pub fn text(&self) -> String
[src]
pub fn mime_type(&self) -> String
[src]
pub fn attachments(&self) -> Vec<Attachment>
[src]
pub fn count_attachments(&self) -> usize
[src]
pub fn content_type(&self) -> &ContentType
[src]
pub fn content_transfer_encoding(&self) -> &ContentTransferEncoding
[src]
pub fn is_text(&self) -> bool
[src]
pub fn is_html(&self) -> bool
[src]
pub fn is_encrypted(&self) -> bool
[src]
pub fn is_signed(&self) -> bool
[src]
pub fn into_raw(&self) -> String
[src]
pub fn parameters(&self) -> Vec<(&[u8], &[u8])>
[src]
pub fn filename(&self) -> Option<String>
[src]
Trait Implementations
impl Clone for Attachment
[src]
fn clone(&self) -> Attachment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Attachment
[src]
impl<'de> Deserialize<'de> for Attachment
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Attachment
[src]
impl Eq for Attachment
[src]
impl From<Attachment> for AttachmentBuilder
[src]
fn from(val: Attachment) -> Self
[src]
impl From<AttachmentBuilder> for Attachment
[src]
fn from(val: AttachmentBuilder) -> Self
[src]
impl PartialEq<Attachment> for Attachment
[src]
fn eq(&self, other: &Attachment) -> bool
[src]
fn ne(&self, other: &Attachment) -> bool
[src]
impl Serialize for Attachment
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Attachment
[src]
impl StructuralPartialEq for Attachment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,