Add some convenience derives to LemmyError

error-expose
SleeplessOne1917 2024-02-09 23:09:16 -05:00
parent 1e520be599
commit 88e76d1bba
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ use strum_macros::{Display, EnumIter};
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
#[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, EnumIter)]
#[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, Eq, EnumIter, Hash)]
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export))]
#[serde(tag = "error", content = "message", rename_all = "snake_case")]