ContentTransferEncoding derives changes (#652)
This commit is contained in:
@@ -11,7 +11,8 @@ use crate::BoxError;
|
||||
/// The `Message` builder takes care of choosing the most
|
||||
/// efficient encoding based on the chosen body, so in most
|
||||
/// use-caches this header shouldn't be set manually.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub enum ContentTransferEncoding {
|
||||
/// ASCII
|
||||
SevenBit,
|
||||
|
||||
@@ -83,9 +83,7 @@ impl Display for ContentTypeErr {
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------
|
||||
// Serialization and Deserialization
|
||||
// --------------------------------------
|
||||
// -- Serialization and Deserialization --
|
||||
#[cfg(feature = "serde")]
|
||||
mod serde {
|
||||
use serde::de::{self, Deserialize, Deserializer, Visitor};
|
||||
|
||||
Reference in New Issue
Block a user