ContentTransferEncoding derives changes (#652)

This commit is contained in:
TornaxO7
2021-09-29 06:42:54 +02:00
committed by GitHub
parent 941a00bcaa
commit 3e8988ae55
2 changed files with 3 additions and 4 deletions

View File

@@ -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,

View File

@@ -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};