diff --git a/src/entities/attachment.rs b/src/entities/attachment.rs index 2115b9f..1ad9c3a 100644 --- a/src/entities/attachment.rs +++ b/src/entities/attachment.rs @@ -48,7 +48,7 @@ pub struct ImageDetails { } /// The type of media attachment. -#[derive(Debug, Deserialize, Serialize, Clone, Copy, PartialEq)] +#[derive(Debug, Deserialize, Serialize, Clone, Copy, PartialEq, Eq)] pub enum MediaType { /// An image. #[serde(rename = "image")]