From 636d54b43c490d2f457c4997ac9782faf402a9d3 Mon Sep 17 00:00:00 2001 From: circlesabound Date: Tue, 22 Oct 2024 19:36:28 +1100 Subject: [PATCH] Add missing skip serialisation for none value credentials --- src/schema.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schema.rs b/src/schema.rs index 14f8974..9ff2583 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -363,7 +363,9 @@ pub struct ServerSettingsConfig { pub autosave_only_on_server: bool, pub non_blocking_saving: bool, + #[serde(skip_serializing_if = "Option::is_none")] pub username: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub token: Option, pub game_password: String,