Skip serializing place_id and game_id if null

This commit is contained in:
Lucien Greathouse
2021-05-20 15:46:40 -04:00
parent df1aced95d
commit 5c80cd6e50

View File

@@ -59,10 +59,12 @@ pub struct Project {
/// If specified, sets the current place's place ID when connecting to the
/// Rojo server from Roblox Studio.
#[serde(skip_serializing_if = "Option::is_none")]
pub place_id: Option<u64>,
/// If specified, sets the current place's game ID when connecting to the
/// Rojo server from Roblox Studio.
#[serde(skip_serializing_if = "Option::is_none")]
pub game_id: Option<u64>,
/// A list of globs, relative to the folder the project file is in, that