From a0fdb9abd8fe09db6833a8c5e0368d76a4331e91 Mon Sep 17 00:00:00 2001 From: Sir-Photch Date: Wed, 13 Mar 2024 18:51:47 +0100 Subject: [PATCH] derive Eq, PartialEq on MessageRole --- src/generation/chat/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generation/chat/mod.rs b/src/generation/chat/mod.rs index 613a995..c9e8018 100644 --- a/src/generation/chat/mod.rs +++ b/src/generation/chat/mod.rs @@ -164,7 +164,7 @@ impl ChatMessage { } } -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub enum MessageRole { #[serde(rename = "user")] User,