[Protocol] Add derives and serde derives to GatheringSettings

This commit is contained in:
CosminPerRam 2023-05-08 02:08:22 +03:00
parent 726bfd429f
commit fc52f3fe91
2 changed files with 5 additions and 1 deletions

View file

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

View file

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