fix(rust): add serde default value
@@ -35,9 +35,14 @@ pub struct OckamConfig {
pub lookup: ConfigLookup,
pub default_identity: Option<Vec<u8>>,
pub default_vault_path: Option<PathBuf>,
+ #[serde(default = "default_node")]
pub default: Option<String>,
}
+fn default_node() -> Option<String> {
+ None
+}
+
impl ConfigValues for OckamConfig {
fn default_values(_node_dir: &Path) -> Self {
Self {
