From fc52f3fe91eec58e201c239d7b677bcd5aaa73f2 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Mon, 8 May 2023 02:08:22 +0300 Subject: [PATCH] [Protocol] Add derives and serde derives to GatheringSettings --- CHANGELOG.md | 4 +++- src/protocols/valve/types.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7ba3a..3243676 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ Who knows what the future holds... # 0.X.Y - DD/MM/2023 ### Changes: -To be made... +Protocols: +- Valve: +1. Added standard and serde derives to `GatheringSettings`. ### Breaking: Nothing, yet... diff --git a/src/protocols/valve/types.rs b/src/protocols/valve/types.rs index 82edeb2..39d9658 100644 --- a/src/protocols/valve/types.rs +++ b/src/protocols/valve/types.rs @@ -382,6 +382,8 @@ impl Engine { } /// What data to gather, purely used only with the query function. +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct GatheringSettings { pub players: bool, pub rules: bool,