[−][src]Struct melib::email::attachments::AttachmentBuilder
Fields
content_type: ContentType
content_transfer_encoding: ContentTransferEncoding
content_disposition: ContentDisposition
raw: Vec<u8>
body: StrBuilder
Implementations
impl AttachmentBuilder
[src]
pub fn new(content: &[u8]) -> Self
[src]
pub fn raw(&self) -> &[u8]
[src]
pub fn body(&self) -> &[u8]
[src]
pub fn set_raw(&mut self, raw: Vec<u8>) -> &mut Self
[src]
pub fn set_body_to_raw(&mut self) -> &mut Self
[src]
Set body to the entire raw contents, use this if raw contains only data and no headers If raw contains data and headers pass it through AttachmentBuilder::new().
pub fn set_content_type(&mut self, val: ContentType) -> &mut Self
[src]
pub fn content_type(&self) -> &ContentType
[src]
pub fn set_content_transfer_encoding(
&mut self,
val: ContentTransferEncoding
) -> &mut Self
[src]
&mut self,
val: ContentTransferEncoding
) -> &mut Self
pub fn set_content_disposition(&mut self, val: ContentDisposition) -> &mut Self
[src]
pub fn content_disposition(&self) -> &ContentDisposition
[src]
pub fn content_transfer_encoding(&self) -> &ContentTransferEncoding
[src]
pub fn set_content_type_from_bytes(&mut self, value: &[u8]) -> &mut Self
[src]
pub fn build(self) -> Attachment
[src]
pub fn parts(raw: &[u8], boundary: &[u8]) -> Vec<Attachment>
[src]
Trait Implementations
impl Clone for AttachmentBuilder
[src]
fn clone(&self) -> AttachmentBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AttachmentBuilder
[src]
impl Default for AttachmentBuilder
[src]
fn default() -> AttachmentBuilder
[src]
impl<'de> Deserialize<'de> for AttachmentBuilder
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for AttachmentBuilder
[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<AttachmentBuilder> for AttachmentBuilder
[src]
fn eq(&self, other: &AttachmentBuilder) -> bool
[src]
fn ne(&self, other: &AttachmentBuilder) -> bool
[src]
impl Serialize for AttachmentBuilder
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AttachmentBuilder
[src]
impl StructuralPartialEq for AttachmentBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for AttachmentBuilder
impl Send for AttachmentBuilder
impl Sync for AttachmentBuilder
impl Unpin for AttachmentBuilder
impl UnwindSafe for AttachmentBuilder
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, 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>,