Skip to content

Commit

Permalink
Add missing skip serialisation for none value credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
circlesabound committed Oct 22, 2024
1 parent 51d5693 commit 636d54b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub token: Option<String>,

pub game_password: String,
Expand Down

0 comments on commit 636d54b

Please sign in to comment.