From df4b7127c67f1b4b54d1e0e07e01b3049c7483b2 Mon Sep 17 00:00:00 2001 From: Eric Kidd Date: Sat, 7 Sep 2019 09:19:49 -0400 Subject: [PATCH] v0.4.0-alpha.3: Allow sources be created without a `name` --- bigml-parallel/Cargo.toml | 4 ++-- bigml/Cargo.toml | 2 +- bigml/src/resource/source.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bigml-parallel/Cargo.toml b/bigml-parallel/Cargo.toml index 9358405..31635ba 100644 --- a/bigml-parallel/Cargo.toml +++ b/bigml-parallel/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bigml-parallel" -version = "0.4.0-alpha.2" +version = "0.4.0-alpha.3" authors = ["Eric Kidd "] edition = "2018" @@ -14,7 +14,7 @@ documentation = "https://github.com/faradayio/bigml-rs/tree/master/bigml-paralle cli_test_dir = "0.1.5" [dependencies] -bigml = { version = "=0.4.0-alpha.2", path = "../bigml" } +bigml = { version = "=0.4.0-alpha.3", path = "../bigml" } bytes = "0.4.12" common_failures = "0.1.1" # This makes the executable bigger, but it makes --help much nicer. diff --git a/bigml/Cargo.toml b/bigml/Cargo.toml index 4405b02..a6b9f12 100644 --- a/bigml/Cargo.toml +++ b/bigml/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bigml" -version = "0.4.0-alpha.2" +version = "0.4.0-alpha.3" authors = ["Eric Kidd "] description = "Unofficial BigML client bindings" diff --git a/bigml/src/resource/source.rs b/bigml/src/resource/source.rs index e260109..c5451a1 100644 --- a/bigml/src/resource/source.rs +++ b/bigml/src/resource/source.rs @@ -65,6 +65,7 @@ pub struct Args { pub disable_datetime: Option, /// The name of this source. + #[serde(skip_serializing_if = "Option::is_none")] pub name: Option, /// Placeholder to allow extensibility without breaking the API.