#[non_exhaustive]pub enum BodyType {
SevenBit,
EightBitMime,
BinaryMime,
}Expand description
Body transfer type for the MAIL FROM BODY= parameter.
RFC 1652 Section 3 (8BITMIME), RFC 3030 Section 2 (BINARYMIME).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SevenBit
7-bit content (default per RFC 5321 Section 4.5.2).
EightBitMime
8-bit content (RFC 1652 Section 3).
BinaryMime
Binary content (RFC 3030 Section 2).
Trait Implementations§
impl Copy for BodyType
impl Eq for BodyType
impl StructuralPartialEq for BodyType
Auto Trait Implementations§
impl Freeze for BodyType
impl RefUnwindSafe for BodyType
impl Send for BodyType
impl Sync for BodyType
impl Unpin for BodyType
impl UnsafeUnpin for BodyType
impl UnwindSafe for BodyType
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