[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

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