add defaults

This commit is contained in:
Brett Mayson
2024-05-15 01:23:49 +00:00
parent c422306294
commit d51af24ec8
3 changed files with 4 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -49,7 +49,7 @@ checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457"
[[package]]
name = "arma3-wiki"
version = "0.1.17"
version = "0.1.18"
dependencies = [
"directories",
"fs_extra",

View File

@@ -2,7 +2,7 @@
name = "arma3-wiki"
description = "A project to store data about Arma 3 commands in a useable format"
license = "MIT"
version = "0.1.17"
version = "0.1.18"
edition = "2021"
[lints]

View File

@@ -15,6 +15,7 @@ pub struct Command {
#[serde(default)]
#[serde(skip_serializing_if = "Vec::is_empty")]
problem_notes: Vec<String>,
#[serde(default)]
groups: Vec<String>,
syntax: Vec<Syntax>,
argument_loc: Locality,
@@ -22,6 +23,7 @@ pub struct Command {
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]
server_exec: Option<bool>,
#[serde(default)]
since: Since,
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")]