From d0fb7a5ccc5729303b5aca2419ac06abf12e0133 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 19 Jun 2015 18:04:55 +0200 Subject: [PATCH] chore(cli): cli code update --- gen/adexchangebuyer1d3-cli/src/main.rs | 16 +- gen/admin1_directory-cli/src/main.rs | 58 +++---- gen/admin1_reports-cli/src/main.rs | 4 +- gen/admin2_email_migration-cli/src/main.rs | 2 +- gen/adsensehost4d1-cli/src/main.rs | 14 +- gen/analytics3-cli/src/main.rs | 72 ++++---- gen/androidenterprise1-cli/src/main.rs | 28 ++-- gen/androidpublisher2-cli/src/main.rs | 38 ++--- gen/appstate1-cli/src/main.rs | 2 +- gen/autoscaler1_beta2-cli/src/main.rs | 6 +- gen/bigquery2-cli/src/main.rs | 18 +- gen/blogger3-cli/src/main.rs | 12 +- gen/books1-cli/src/main.rs | 8 +- gen/calendar3-cli/src/main.rs | 38 ++--- gen/cloudlatencytest2-cli/src/main.rs | 4 +- gen/cloudmonitoring2_beta2-cli/src/main.rs | 10 +- gen/compute1-cli/src/main.rs | 98 +++++------ gen/container1_beta1-cli/src/main.rs | 2 +- gen/content2-cli/src/main.rs | 42 ++--- gen/coordinate1-cli/src/main.rs | 10 +- gen/datastore1_beta2-cli/src/main.rs | 12 +- gen/deploymentmanager2_beta1-cli/src/main.rs | 2 +- gen/dfareporting2d1-cli/src/main.rs | 156 +++++++++--------- gen/dns1-cli/src/main.rs | 4 +- gen/doubleclickbidmanager1-cli/src/main.rs | 8 +- gen/doubleclicksearch2-cli/src/main.rs | 12 +- gen/drive2-cli/src/main.rs | 46 +++--- gen/fitness1-cli/src/main.rs | 10 +- gen/fusiontables2-cli/src/main.rs | 24 +-- gen/games1-cli/src/main.rs | 24 +-- .../src/main.rs | 12 +- .../src/main.rs | 8 +- gen/gan1_beta1-cli/src/main.rs | 2 +- gen/genomics1_beta2-cli/src/main.rs | 76 ++++----- gen/gmail1-cli/src/main.rs | 22 +-- gen/groupssettings1-cli/src/main.rs | 4 +- gen/identitytoolkit3-cli/src/main.rs | 20 +-- gen/licensing1-cli/src/main.rs | 6 +- gen/logging1_beta3-cli/src/main.rs | 10 +- gen/manager1_beta2-cli/src/main.rs | 4 +- gen/mapsengine1-cli/src/main.rs | 54 +++--- gen/mirror1-cli/src/main.rs | 18 +- gen/plus1-cli/src/main.rs | 2 +- gen/plusdomains1-cli/src/main.rs | 12 +- gen/prediction1d6-cli/src/main.rs | 8 +- gen/pubsub1_beta2-cli/src/main.rs | 14 +- gen/qpxexpress1-cli/src/main.rs | 2 +- gen/replicapool1_beta2-cli/src/main.rs | 12 +- gen/replicapoolupdater1_beta1-cli/src/main.rs | 2 +- gen/reseller1_sandbox-cli/src/main.rs | 14 +- gen/resourceviews1_beta2-cli/src/main.rs | 8 +- gen/siteverification1-cli/src/main.rs | 8 +- gen/spectrum1_explorer-cli/src/main.rs | 12 +- gen/sqladmin1_beta4-cli/src/main.rs | 26 +-- gen/storage1-cli/src/main.rs | 40 ++--- gen/tagmanager1-cli/src/main.rs | 34 ++-- gen/taskqueue1_beta2-cli/src/main.rs | 6 +- gen/tasks1-cli/src/main.rs | 12 +- gen/urlshortener1-cli/src/main.rs | 2 +- gen/youtube3-cli/src/main.rs | 48 +++--- gen/youtubeanalytics1-cli/src/main.rs | 6 +- 61 files changed, 642 insertions(+), 642 deletions(-) diff --git a/gen/adexchangebuyer1d3-cli/src/main.rs b/gen/adexchangebuyer1d3-cli/src/main.rs index 565a4b3fc7..b04d19fc88 100644 --- a/gen/adexchangebuyer1d3-cli/src/main.rs +++ b/gen/adexchangebuyer1d3-cli/src/main.rs @@ -170,7 +170,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "maximum-total-qps" => Some(("maximumTotalQps", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -262,7 +262,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "maximum-total-qps" => Some(("maximumTotalQps", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -511,7 +511,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "budget-amount" => Some(("budgetAmount", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -601,7 +601,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "budget-amount" => Some(("budgetAmount", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -744,7 +744,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "product-categories" => Some(("productCategories", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Vec })), "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1172,7 +1172,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "billing-id" => Some(("billingId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "languages" => Some(("languages", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1328,7 +1328,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "billing-id" => Some(("billingId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "languages" => Some(("languages", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1432,7 +1432,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "billing-id" => Some(("billingId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "languages" => Some(("languages", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), diff --git a/gen/admin1_directory-cli/src/main.rs b/gen/admin1_directory-cli/src/main.rs index 59bac10873..bc3980c0eb 100644 --- a/gen/admin1_directory-cli/src/main.rs +++ b/gen/admin1_directory-cli/src/main.rs @@ -216,7 +216,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -428,7 +428,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mac-address" => Some(("macAddress", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-sync" => Some(("lastSync", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -538,7 +538,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mac-address" => Some(("macAddress", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-sync" => Some(("lastSync", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -693,7 +693,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "alias" => Some(("alias", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -931,7 +931,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "non-editable-aliases" => Some(("nonEditableAliases", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1092,7 +1092,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "non-editable-aliases" => Some(("nonEditableAliases", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1186,7 +1186,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "non-editable-aliases" => Some(("nonEditableAliases", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1377,7 +1377,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1528,7 +1528,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1618,7 +1618,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1708,7 +1708,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "action" => Some(("action", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -2114,7 +2114,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "body" => Some(("body", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2206,7 +2206,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "body" => Some(("body", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2395,7 +2395,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "parent-org-unit-path" => Some(("parentOrgUnitPath", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2546,7 +2546,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "parent-org-unit-path" => Some(("parentOrgUnitPath", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2639,7 +2639,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "parent-org-unit-path" => Some(("parentOrgUnitPath", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2829,7 +2829,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "etag" => Some(("etag", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2969,7 +2969,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "etag" => Some(("etag", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3057,7 +3057,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "etag" => Some(("etag", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3339,7 +3339,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "alias" => Some(("alias", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3483,7 +3483,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3686,7 +3686,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-delegated-admin" => Some(("isDelegatedAdmin", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "suspended" => Some(("suspended", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -3884,7 +3884,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), _ => { @@ -3962,7 +3962,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-delegated-admin" => Some(("isDelegatedAdmin", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "suspended" => Some(("suspended", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4169,7 +4169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4261,7 +4261,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4353,7 +4353,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "org-unit-path" => Some(("orgUnitPath", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -4431,7 +4431,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-delegated-admin" => Some(("isDelegatedAdmin", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "suspended" => Some(("suspended", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4541,7 +4541,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/admin1_reports-cli/src/main.rs b/gen/admin1_reports-cli/src/main.rs index 95ed120f13..c5815ae2be 100644 --- a/gen/admin1_reports-cli/src/main.rs +++ b/gen/admin1_reports-cli/src/main.rs @@ -141,7 +141,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -259,7 +259,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/admin2_email_migration-cli/src/main.rs b/gen/admin2_email_migration-cli/src/main.rs index 655a0ff113..14ea998036 100644 --- a/gen/admin2_email_migration-cli/src/main.rs +++ b/gen/admin2_email_migration-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-trash" => Some(("isTrash", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/adsensehost4d1-cli/src/main.rs b/gen/adsensehost4d1-cli/src/main.rs index e912e79f7e..6991539622 100644 --- a/gen/adsensehost4d1-cli/src/main.rs +++ b/gen/adsensehost4d1-cli/src/main.rs @@ -334,7 +334,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -502,7 +502,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -609,7 +609,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1217,7 +1217,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "code" => Some(("code", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1363,7 +1363,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "code" => Some(("code", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1451,7 +1451,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "code" => Some(("code", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1664,7 +1664,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/analytics3-cli/src/main.rs b/gen/analytics3-cli/src/main.rs index 0e41310606..296d1617a6 100644 --- a/gen/analytics3-cli/src/main.rs +++ b/gen/analytics3-cli/src/main.rs @@ -378,7 +378,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "entity.account-ref.kind" => Some(("entity.accountRef.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -545,7 +545,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "entity.account-ref.kind" => Some(("entity.accountRef.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -822,7 +822,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "index" => Some(("index", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -977,7 +977,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "index" => Some(("index", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1077,7 +1077,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "index" => Some(("index", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1229,7 +1229,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "index" => Some(("index", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1387,7 +1387,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "index" => Some(("index", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1490,7 +1490,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "index" => Some(("index", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1690,7 +1690,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "traffic-coverage" => Some(("trafficCoverage", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "web-property-id" => Some(("webPropertyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1860,7 +1860,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "traffic-coverage" => Some(("trafficCoverage", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "web-property-id" => Some(("webPropertyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1972,7 +1972,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "traffic-coverage" => Some(("trafficCoverage", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "web-property-id" => Some(("webPropertyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2188,7 +2188,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2366,7 +2366,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2486,7 +2486,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2658,7 +2658,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "visit-time-on-site-details.comparison-type" => Some(("visitTimeOnSiteDetails.comparisonType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2824,7 +2824,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "visit-time-on-site-details.comparison-type" => Some(("visitTimeOnSiteDetails.comparisonType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2932,7 +2932,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "visit-time-on-site-details.comparison-type" => Some(("visitTimeOnSiteDetails.comparisonType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3137,7 +3137,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "rank" => Some(("rank", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -3295,7 +3295,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "rank" => Some(("rank", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -3395,7 +3395,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "rank" => Some(("rank", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -3540,7 +3540,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "entity.account-ref.kind" => Some(("entity.accountRef.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3707,7 +3707,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "entity.account-ref.kind" => Some(("entity.accountRef.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3913,7 +3913,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "currency" => Some(("currency", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "e-commerce-tracking" => Some(("eCommerceTracking", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4081,7 +4081,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "currency" => Some(("currency", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "e-commerce-tracking" => Some(("eCommerceTracking", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4191,7 +4191,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "currency" => Some(("currency", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "e-commerce-tracking" => Some(("eCommerceTracking", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4411,7 +4411,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4573,7 +4573,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "custom-data-import-uids" => Some(("customDataImportUids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -4914,7 +4914,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5067,7 +5067,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5162,7 +5162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5309,7 +5309,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "website-url" => Some(("websiteUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5469,7 +5469,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "website-url" => Some(("websiteUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5571,7 +5571,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "website-url" => Some(("websiteUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5718,7 +5718,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "entity.account-ref.kind" => Some(("entity.accountRef.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5885,7 +5885,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "entity.account-ref.kind" => Some(("entity.accountRef.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6046,7 +6046,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "profile.currency" => Some(("profile.currency", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "profile.e-commerce-tracking" => Some(("profile.eCommerceTracking", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), diff --git a/gen/androidenterprise1-cli/src/main.rs b/gen/androidenterprise1-cli/src/main.rs index 2a1083b057..95130034f6 100644 --- a/gen/androidenterprise1-cli/src/main.rs +++ b/gen/androidenterprise1-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "product-id" => Some(("productId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -303,7 +303,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "product-id" => Some(("productId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -392,7 +392,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "product-id" => Some(("productId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -630,7 +630,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-email" => Some(("primaryEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -717,7 +717,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-email" => Some(("primaryEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -960,7 +960,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "account-state" => Some(("accountState", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1091,7 +1091,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-domain" => Some(("primaryDomain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1231,7 +1231,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-domain" => Some(("primaryDomain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1371,7 +1371,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "account-email" => Some(("accountEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1651,7 +1651,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reason" => Some(("reason", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1741,7 +1741,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reason" => Some(("reason", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2136,7 +2136,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "install-state" => Some(("installState", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "version-code" => Some(("versionCode", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -2224,7 +2224,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "install-state" => Some(("installState", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "version-code" => Some(("versionCode", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -2529,7 +2529,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "product-id" => Some(("productId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/androidpublisher2-cli/src/main.rs b/gen/androidpublisher2-cli/src/main.rs index 6fb8fa8eab..c6a0855a96 100644 --- a/gen/androidpublisher2-cli/src/main.rs +++ b/gen/androidpublisher2-cli/src/main.rs @@ -263,7 +263,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "recent-changes" => Some(("recentChanges", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "language" => Some(("language", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -350,7 +350,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "recent-changes" => Some(("recentChanges", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "language" => Some(("language", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -437,7 +437,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "externally-hosted-apk.icon-base64" => Some(("externallyHostedApk.iconBase64", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "externally-hosted-apk.certificate-base64s" => Some(("externallyHostedApk.certificateBase64s", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -792,7 +792,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "contact-email" => Some(("contactEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "contact-phone" => Some(("contactPhone", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -880,7 +880,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "contact-email" => Some(("contactEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "contact-phone" => Some(("contactPhone", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1021,7 +1021,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "references-version" => Some(("referencesVersion", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "file-size" => Some(("fileSize", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1108,7 +1108,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "references-version" => Some(("referencesVersion", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "file-size" => Some(("fileSize", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1509,7 +1509,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "expiry-time-seconds" => Some(("expiryTimeSeconds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1789,7 +1789,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "short-description" => Some(("shortDescription", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "video" => Some(("video", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1878,7 +1878,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "short-description" => Some(("shortDescription", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "video" => Some(("video", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2019,7 +2019,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "google-groups" => Some(("googleGroups", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "google-plus-communities" => Some(("googlePlusCommunities", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -2105,7 +2105,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "google-groups" => Some(("googleGroups", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "google-plus-communities" => Some(("googlePlusCommunities", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -2295,7 +2295,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "track" => Some(("track", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "user-fraction" => Some(("userFraction", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), @@ -2382,7 +2382,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "track" => Some(("track", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "user-fraction" => Some(("userFraction", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), @@ -2521,7 +2521,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -2702,7 +2702,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sku" => Some(("sku", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2863,7 +2863,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sku" => Some(("sku", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2963,7 +2963,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sku" => Some(("sku", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3160,7 +3160,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "deferral-info.expected-expiry-time-millis" => Some(("deferralInfo.expectedExpiryTimeMillis", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "deferral-info.desired-expiry-time-millis" => Some(("deferralInfo.desiredExpiryTimeMillis", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/appstate1-cli/src/main.rs b/gen/appstate1-cli/src/main.rs index 0d61e989cf..8037af6d9a 100644 --- a/gen/appstate1-cli/src/main.rs +++ b/gen/appstate1-cli/src/main.rs @@ -275,7 +275,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "data" => Some(("data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/autoscaler1_beta2-cli/src/main.rs b/gen/autoscaler1_beta2-cli/src/main.rs index 12de8ce763..af8409c1cc 100644 --- a/gen/autoscaler1_beta2-cli/src/main.rs +++ b/gen/autoscaler1_beta2-cli/src/main.rs @@ -169,7 +169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -326,7 +326,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -422,7 +422,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/bigquery2-cli/src/main.rs b/gen/bigquery2-cli/src/main.rs index 897c84e6a3..071166dd10 100644 --- a/gen/bigquery2-cli/src/main.rs +++ b/gen/bigquery2-cli/src/main.rs @@ -165,7 +165,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -321,7 +321,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -416,7 +416,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -627,7 +627,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.state" => Some(("status.state", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status.error-result.debug-info" => Some(("status.errorResult.debugInfo", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -860,7 +860,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "timeout-ms" => Some(("timeoutMs", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1011,7 +1011,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ignore-unknown-values" => Some(("ignoreUnknownValues", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1256,7 +1256,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-modified-time" => Some(("lastModifiedTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1414,7 +1414,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-modified-time" => Some(("lastModifiedTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1514,7 +1514,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-modified-time" => Some(("lastModifiedTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/blogger3-cli/src/main.rs b/gen/blogger3-cli/src/main.rs index 04aa020e5f..5a4a26f17e 100644 --- a/gen/blogger3-cli/src/main.rs +++ b/gen/blogger3-cli/src/main.rs @@ -851,7 +851,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content" => Some(("content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1020,7 +1020,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content" => Some(("content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1229,7 +1229,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content" => Some(("content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1635,7 +1635,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content" => Some(("content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1835,7 +1835,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content" => Some(("content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2124,7 +2124,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content" => Some(("content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/books1-cli/src/main.rs b/gen/books1-cli/src/main.rs index ce5334a13b..c1ebe1fc4f 100644 --- a/gen/books1-cli/src/main.rs +++ b/gen/books1-cli/src/main.rs @@ -348,7 +348,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "title" => Some(("title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "processing-state" => Some(("processingState", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1140,7 +1140,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "notes-export.is-enabled" => Some(("notesExport.isEnabled", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -1275,7 +1275,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "page-ids" => Some(("pageIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1553,7 +1553,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "page-ids" => Some(("pageIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), diff --git a/gen/calendar3-cli/src/main.rs b/gen/calendar3-cli/src/main.rs index e2b6c9b6a5..57968dad47 100644 --- a/gen/calendar3-cli/src/main.rs +++ b/gen/calendar3-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "scope.type" => Some(("scope.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "scope.value" => Some(("scope.value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -316,7 +316,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "scope.type" => Some(("scope.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "scope.value" => Some(("scope.value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -406,7 +406,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "scope.type" => Some(("scope.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "scope.value" => Some(("scope.value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -496,7 +496,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -699,7 +699,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "foreground-color" => Some(("foregroundColor", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -872,7 +872,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "foreground-color" => Some(("foregroundColor", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -975,7 +975,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "foreground-color" => Some(("foregroundColor", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1078,7 +1078,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1332,7 +1332,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1423,7 +1423,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1514,7 +1514,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1605,7 +1605,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1853,7 +1853,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "extended-properties.shared" => Some(("extendedProperties.shared", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), "extended-properties.private" => Some(("extendedProperties.private", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), @@ -1993,7 +1993,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "extended-properties.shared" => Some(("extendedProperties.shared", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), "extended-properties.private" => Some(("extendedProperties.private", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), @@ -2376,7 +2376,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "extended-properties.shared" => Some(("extendedProperties.shared", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), "extended-properties.private" => Some(("extendedProperties.private", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), @@ -2580,7 +2580,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "extended-properties.shared" => Some(("extendedProperties.shared", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), "extended-properties.private" => Some(("extendedProperties.private", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), @@ -2729,7 +2729,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2874,7 +2874,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "time-max" => Some(("timeMax", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "calendar-expansion-max" => Some(("calendarExpansionMax", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -3076,7 +3076,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/cloudlatencytest2-cli/src/main.rs b/gen/cloudlatencytest2-cli/src/main.rs index 66c82d952b..31a2a6f56f 100644 --- a/gen/cloudlatencytest2-cli/src/main.rs +++ b/gen/cloudlatencytest2-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -149,7 +149,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "time" => Some(("time", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), _ => { diff --git a/gen/cloudmonitoring2_beta2-cli/src/main.rs b/gen/cloudmonitoring2_beta2-cli/src/main.rs index 8aa229e3a6..98d4313ea8 100644 --- a/gen/cloudmonitoring2_beta2-cli/src/main.rs +++ b/gen/cloudmonitoring2_beta2-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "project" => Some(("project", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "type-descriptor.value-type" => Some(("typeDescriptor.valueType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -206,7 +206,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -300,7 +300,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -406,7 +406,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "common-labels" => Some(("commonLabels", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), _ => { @@ -491,7 +491,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { diff --git a/gen/compute1-cli/src/main.rs b/gen/compute1-cli/src/main.rs index 12501e1ec7..ae0ca3d9d9 100644 --- a/gen/compute1-cli/src/main.rs +++ b/gen/compute1-cli/src/main.rs @@ -230,7 +230,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -489,7 +489,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "group" => Some(("group", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -574,7 +574,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "protocol" => Some(("protocol", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -731,7 +731,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "protocol" => Some(("protocol", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -827,7 +827,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "protocol" => Some(("protocol", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1158,7 +1158,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1359,7 +1359,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "source-snapshot" => Some(("sourceSnapshot", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1627,7 +1627,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1782,7 +1782,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1876,7 +1876,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2135,7 +2135,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2291,7 +2291,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target" => Some(("target", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -2480,7 +2480,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2739,7 +2739,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2895,7 +2895,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target" => Some(("target", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -3303,7 +3303,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3461,7 +3461,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3558,7 +3558,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3707,7 +3707,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "deleted" => Some(("deleted", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "deprecated" => Some(("deprecated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3848,7 +3848,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4118,7 +4118,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4278,7 +4278,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "type" => Some(("type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4427,7 +4427,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "device-name" => Some(("deviceName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4788,7 +4788,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "cpu-platform" => Some(("cpuPlatform", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5056,7 +5056,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "fingerprint" => Some(("fingerprint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5142,7 +5142,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "automatic-restart" => Some(("automaticRestart", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "on-host-maintenance" => Some(("onHostMaintenance", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5228,7 +5228,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "items" => Some(("items", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "fingerprint" => Some(("fingerprint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5748,7 +5748,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5953,7 +5953,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target-disk" => Some(("targetDisk", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "destination-zone" => Some(("destinationZone", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6039,7 +6039,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target-instance" => Some(("targetInstance", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "destination-zone" => Some(("destinationZone", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6125,7 +6125,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "fingerprint" => Some(("fingerprint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6211,7 +6211,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "bucket-name" => Some(("bucketName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "report-name-prefix" => Some(("reportNamePrefix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6672,7 +6672,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "next-hop-gateway" => Some(("nextHopGateway", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "priority" => Some(("priority", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -7101,7 +7101,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -7253,7 +7253,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "url-map" => Some(("urlMap", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -7503,7 +7503,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "nat-policy" => Some(("natPolicy", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -7657,7 +7657,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -7741,7 +7741,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -7990,7 +7990,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "instance" => Some(("instance", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -8075,7 +8075,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "failover-ratio" => Some(("failoverRatio", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8232,7 +8232,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -8316,7 +8316,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -8400,7 +8400,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target" => Some(("target", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -8653,7 +8653,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8913,7 +8913,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9066,7 +9066,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9158,7 +9158,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9250,7 +9250,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource.kind" => Some(("resource.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "resource.description" => Some(("resource.description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9507,7 +9507,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "detailed-status" => Some(("detailedStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "ike-version" => Some(("ikeVersion", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), diff --git a/gen/container1_beta1-cli/src/main.rs b/gen/container1_beta1-cli/src/main.rs index 4e9a9bc2da..2ddd7e0ed6 100644 --- a/gen/container1_beta1-cli/src/main.rs +++ b/gen/container1_beta1-cli/src/main.rs @@ -169,7 +169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "cluster.status" => Some(("cluster.status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "cluster.container-ipv4-cidr" => Some(("cluster.containerIpv4Cidr", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/content2-cli/src/main.rs b/gen/content2-cli/src/main.rs index c4b5cd2736..63ce259586 100644 --- a/gen/content2-cli/src/main.rs +++ b/gen/content2-cli/src/main.rs @@ -117,7 +117,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -298,7 +298,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "reviews-url" => Some(("reviewsUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -447,7 +447,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "reviews-url" => Some(("reviewsUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -538,7 +538,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "reviews-url" => Some(("reviewsUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -629,7 +629,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -826,7 +826,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "account-id" => Some(("accountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -915,7 +915,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "account-id" => Some(("accountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1004,7 +1004,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -1198,7 +1198,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -1395,7 +1395,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "account-id" => Some(("accountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1484,7 +1484,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "account-id" => Some(("accountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1573,7 +1573,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -1754,7 +1754,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content-type" => Some(("contentType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1915,7 +1915,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content-type" => Some(("contentType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2018,7 +2018,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content-type" => Some(("contentType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2121,7 +2121,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -2315,7 +2315,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -2399,7 +2399,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sale-price-effective-date" => Some(("salePriceEffectiveDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "price.currency" => Some(("price.currency", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2490,7 +2490,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -2677,7 +2677,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "display-ads-title" => Some(("displayAdsTitle", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "color" => Some(("color", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2896,7 +2896,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); diff --git a/gen/coordinate1-cli/src/main.rs b/gen/coordinate1-cli/src/main.rs index ad4cfa78fb..393b048cc9 100644 --- a/gen/coordinate1-cli/src/main.rs +++ b/gen/coordinate1-cli/src/main.rs @@ -169,7 +169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -345,7 +345,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -473,7 +473,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -711,7 +711,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "duration" => Some(("duration", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -812,7 +812,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "duration" => Some(("duration", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/datastore1_beta2-cli/src/main.rs b/gen/datastore1_beta2-cli/src/main.rs index 36cdf2ea96..f70ef4dc10 100644 --- a/gen/datastore1_beta2-cli/src/main.rs +++ b/gen/datastore1_beta2-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -149,7 +149,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "isolation-level" => Some(("isolationLevel", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -234,7 +234,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ignore-read-only" => Some(("ignoreReadOnly", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "transaction" => Some(("transaction", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -322,7 +322,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "read-options.transaction" => Some(("readOptions.transaction", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "read-options.read-consistency" => Some(("readOptions.readConsistency", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -408,7 +408,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "transaction" => Some(("transaction", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -493,7 +493,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "query.filter.composite-filter.operator" => Some(("query.filter.compositeFilter.operator", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "query.filter.property-filter.operator" => Some(("query.filter.propertyFilter.operator", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/deploymentmanager2_beta1-cli/src/main.rs b/gen/deploymentmanager2_beta1-cli/src/main.rs index 9dac02f432..ee384b2611 100644 --- a/gen/deploymentmanager2_beta1-cli/src/main.rs +++ b/gen/deploymentmanager2_beta1-cli/src/main.rs @@ -169,7 +169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target-config" => Some(("targetConfig", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "manifest" => Some(("manifest", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/dfareporting2d1-cli/src/main.rs b/gen/dfareporting2d1-cli/src/main.rs index e01582d931..5ad27fcbcb 100644 --- a/gen/dfareporting2d1-cli/src/main.rs +++ b/gen/dfareporting2d1-cli/src/main.rs @@ -377,7 +377,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -564,7 +564,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -672,7 +672,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -905,7 +905,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "teaser-size-limit" => Some(("teaserSizeLimit", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1011,7 +1011,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "teaser-size-limit" => Some(("teaserSizeLimit", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1169,7 +1169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "click-through-url-suffix-properties.click-through-url-suffix" => Some(("clickThroughUrlSuffixProperties.clickThroughUrlSuffix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "click-through-url-suffix-properties.override-inherited-suffix" => Some(("clickThroughUrlSuffixProperties.overrideInheritedSuffix", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -1441,7 +1441,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "click-through-url-suffix-properties.click-through-url-suffix" => Some(("clickThroughUrlSuffixProperties.clickThroughUrlSuffix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "click-through-url-suffix-properties.override-inherited-suffix" => Some(("clickThroughUrlSuffixProperties.overrideInheritedSuffix", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -1589,7 +1589,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "click-through-url-suffix-properties.click-through-url-suffix" => Some(("clickThroughUrlSuffixProperties.clickThroughUrlSuffix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "click-through-url-suffix-properties.override-inherited-suffix" => Some(("clickThroughUrlSuffixProperties.overrideInheritedSuffix", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -1834,7 +1834,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1992,7 +1992,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2080,7 +2080,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2220,7 +2220,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2416,7 +2416,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2524,7 +2524,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2684,7 +2684,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "creative-id" => Some(("creativeId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2883,7 +2883,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "start-date" => Some(("startDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3098,7 +3098,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "start-date" => Some(("startDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3222,7 +3222,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "start-date" => Some(("startDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3745,7 +3745,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3903,7 +3903,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3991,7 +3991,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4183,7 +4183,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "warned-validation-rules" => Some(("warnedValidationRules", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "detected-features" => Some(("detectedFeatures", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -4373,7 +4373,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4530,7 +4530,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4617,7 +4617,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4801,7 +4801,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4970,7 +4970,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5066,7 +5066,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5214,7 +5214,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5387,7 +5387,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5484,7 +5484,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5633,7 +5633,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "artwork-type" => Some(("artworkType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "latest-trafficked-creative-id" => Some(("latestTraffickedCreativeId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5885,7 +5885,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "artwork-type" => Some(("artworkType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "latest-trafficked-creative-id" => Some(("latestTraffickedCreativeId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6037,7 +6037,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "artwork-type" => Some(("artworkType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "latest-trafficked-creative-id" => Some(("latestTraffickedCreativeId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6189,7 +6189,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "dimension-name" => Some(("dimensionName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "start-date" => Some(("startDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6460,7 +6460,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "country-id" => Some(("countryId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -6760,7 +6760,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "site-ids" => Some(("siteIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -6953,7 +6953,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "site-ids" => Some(("siteIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -7064,7 +7064,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "site-ids" => Some(("siteIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -7454,7 +7454,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "tag-string" => Some(("tagString", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "secure" => Some(("secure", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -7670,7 +7670,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "tag-string" => Some(("tagString", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "secure" => Some(("secure", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -7795,7 +7795,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "tag-string" => Some(("tagString", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "secure" => Some(("secure", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -8017,7 +8017,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8207,7 +8207,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8318,7 +8318,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8536,7 +8536,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "natural-search-conversion-attribution-option" => Some(("naturalSearchConversionAttributionOption", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8649,7 +8649,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "natural-search-conversion-attribution-option" => Some(("naturalSearchConversionAttributionOption", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -8987,7 +8987,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "default" => Some(("default", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "url" => Some(("url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9128,7 +9128,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "default" => Some(("default", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "url" => Some(("url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9217,7 +9217,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "default" => Some(("default", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "url" => Some(("url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -9978,7 +9978,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-placement-id" => Some(("primaryPlacementId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -10228,7 +10228,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-placement-id" => Some(("primaryPlacementId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -10381,7 +10381,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "primary-placement-id" => Some(("primaryPlacementId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -10631,7 +10631,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -10789,7 +10789,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -10877,7 +10877,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -11078,7 +11078,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "campaign-id" => Some(("campaignId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -11349,7 +11349,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "campaign-id" => Some(("campaignId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -11514,7 +11514,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "comment" => Some(("comment", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "campaign-id" => Some(("campaignId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -12116,7 +12116,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "shared-advertiser-ids" => Some(("sharedAdvertiserIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -12204,7 +12204,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "shared-advertiser-ids" => Some(("sharedAdvertiserIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -12344,7 +12344,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "list-population-rule.floodlight-activity-name" => Some(("listPopulationRule.floodlightActivityName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "list-population-rule.floodlight-activity-id" => Some(("listPopulationRule.floodlightActivityId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -12520,7 +12520,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "list-population-rule.floodlight-activity-name" => Some(("listPopulationRule.floodlightActivityName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "list-population-rule.floodlight-activity-id" => Some(("listPopulationRule.floodlightActivityId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -12623,7 +12623,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "list-population-rule.floodlight-activity-name" => Some(("listPopulationRule.floodlightActivityName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "list-population-rule.floodlight-activity-id" => Some(("listPopulationRule.floodlightActivityId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -12726,7 +12726,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "criteria.activities.kind" => Some(("criteria.activities.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "criteria.activities.metric-names" => Some(("criteria.activities.metricNames", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -13112,7 +13112,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "criteria.activities.kind" => Some(("criteria.activities.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "criteria.activities.metric-names" => Some(("criteria.activities.metricNames", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -13344,7 +13344,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "criteria.activities.kind" => Some(("criteria.activities.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "criteria.activities.metric-names" => Some(("criteria.activities.metricNames", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -13564,7 +13564,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "criteria.activities.kind" => Some(("criteria.activities.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "criteria.activities.metric-names" => Some(("criteria.activities.metricNames", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -13781,7 +13781,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -13993,7 +13993,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -14108,7 +14108,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "subaccount-id" => Some(("subaccountId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -14275,7 +14275,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "width" => Some(("width", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -14480,7 +14480,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "available-permission-ids" => Some(("availablePermissionIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -14639,7 +14639,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "available-permission-ids" => Some(("availablePermissionIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -14728,7 +14728,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "available-permission-ids" => Some(("availablePermissionIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -15351,7 +15351,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "default-user-role" => Some(("defaultUserRole", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -15518,7 +15518,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "default-user-role" => Some(("defaultUserRole", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -15609,7 +15609,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "default-user-role" => Some(("defaultUserRole", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/dns1-cli/src/main.rs b/gen/dns1-cli/src/main.rs index b8309b5280..1a24e76110 100644 --- a/gen/dns1-cli/src/main.rs +++ b/gen/dns1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -269,7 +269,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/doubleclickbidmanager1-cli/src/main.rs b/gen/doubleclickbidmanager1-cli/src/main.rs index 75d2c0bf9e..0740821f08 100644 --- a/gen/doubleclickbidmanager1-cli/src/main.rs +++ b/gen/doubleclickbidmanager1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "filter-type" => Some(("filterType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "filter-ids" => Some(("filterIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -149,7 +149,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "line-items" => Some(("lineItems", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "dry-run" => Some(("dryRun", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -233,7 +233,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule.end-time-ms" => Some(("schedule.endTimeMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -478,7 +478,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "report-data-end-time-ms" => Some(("reportDataEndTimeMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "timezone-code" => Some(("timezoneCode", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/doubleclicksearch2-cli/src/main.rs b/gen/doubleclicksearch2-cli/src/main.rs index 638612b10a..598b15be79 100644 --- a/gen/doubleclicksearch2-cli/src/main.rs +++ b/gen/doubleclicksearch2-cli/src/main.rs @@ -133,7 +133,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -218,7 +218,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -307,7 +307,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -392,7 +392,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -476,7 +476,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "report-scope.ad-group-id" => Some(("reportScope.adGroupId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "report-scope.agency-id" => Some(("reportScope.agencyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -690,7 +690,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "report-scope.ad-group-id" => Some(("reportScope.adGroupId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "report-scope.agency-id" => Some(("reportScope.agencyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/drive2-cli/src/main.rs b/gen/drive2-cli/src/main.rs index 4dfec7c8c3..067eec0d20 100644 --- a/gen/drive2-cli/src/main.rs +++ b/gen/drive2-cli/src/main.rs @@ -358,7 +358,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -467,7 +467,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -651,7 +651,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "child-link" => Some(("childLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -900,7 +900,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1068,7 +1068,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1172,7 +1172,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1276,7 +1276,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-viewed-by-me-date" => Some(("lastViewedByMeDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1642,7 +1642,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-viewed-by-me-date" => Some(("lastViewedByMeDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1920,7 +1920,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-viewed-by-me-date" => Some(("lastViewedByMeDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2295,7 +2295,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "last-viewed-by-me-date" => Some(("lastViewedByMeDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2518,7 +2518,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2729,7 +2729,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "self-link" => Some(("selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3019,7 +3019,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "with-link" => Some(("withLink", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3175,7 +3175,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "with-link" => Some(("withLink", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3276,7 +3276,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "with-link" => Some(("withLink", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3480,7 +3480,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "value" => Some(("value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3622,7 +3622,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "value" => Some(("value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3715,7 +3715,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "value" => Some(("value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4020,7 +4020,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "author.picture.url" => Some(("author.picture.url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4179,7 +4179,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "author.picture.url" => Some(("author.picture.url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4277,7 +4277,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "author.picture.url" => Some(("author.picture.url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4524,7 +4524,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "pinned" => Some(("pinned", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4631,7 +4631,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "mime-type" => Some(("mimeType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "pinned" => Some(("pinned", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), diff --git a/gen/fitness1-cli/src/main.rs b/gen/fitness1-cli/src/main.rs index 313eaa9142..16250a6d96 100644 --- a/gen/fitness1-cli/src/main.rs +++ b/gen/fitness1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "data-stream-name" => Some(("dataStreamName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -272,7 +272,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "min-start-time-ns" => Some(("minStartTimeNs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "next-page-token" => Some(("nextPageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -522,7 +522,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "data-stream-name" => Some(("dataStreamName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -620,7 +620,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "data-stream-name" => Some(("dataStreamName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -830,7 +830,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "modified-time-millis" => Some(("modifiedTimeMillis", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "end-time-millis" => Some(("endTimeMillis", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/fusiontables2-cli/src/main.rs b/gen/fusiontables2-cli/src/main.rs index 4f5ed2c7cf..a5282208e7 100644 --- a/gen/fusiontables2-cli/src/main.rs +++ b/gen/fusiontables2-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "graph-predicate" => Some(("graphPredicate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -317,7 +317,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "graph-predicate" => Some(("graphPredicate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -414,7 +414,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "graph-predicate" => Some(("graphPredicate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -742,7 +742,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "marker-options.icon-styler.gradient.max" => Some(("markerOptions.iconStyler.gradient.max", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "marker-options.icon-styler.gradient.min" => Some(("markerOptions.iconStyler.gradient.min", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), @@ -921,7 +921,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "marker-options.icon-styler.gradient.max" => Some(("markerOptions.iconStyler.gradient.max", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "marker-options.icon-styler.gradient.min" => Some(("markerOptions.iconStyler.gradient.min", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), @@ -1043,7 +1043,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "marker-options.icon-styler.gradient.max" => Some(("markerOptions.iconStyler.gradient.max", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), "marker-options.icon-styler.gradient.min" => Some(("markerOptions.iconStyler.gradient.min", JsonTypeInfo { jtype: JsonType::Float, ctype: ComplexType::Pod })), @@ -1450,7 +1450,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "table-properties-json-schema" => Some(("tablePropertiesJsonSchema", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1604,7 +1604,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "table-properties-json-schema" => Some(("tablePropertiesJsonSchema", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1774,7 +1774,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "table-properties-json-schema" => Some(("tablePropertiesJsonSchema", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2130,7 +2130,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "body" => Some(("body", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2278,7 +2278,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "body" => Some(("body", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2369,7 +2369,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "body" => Some(("body", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/games1-cli/src/main.rs b/gen/games1-cli/src/main.rs index a5dc16c483..03c9e686c3 100644 --- a/gen/games1-cli/src/main.rs +++ b/gen/games1-cli/src/main.rs @@ -403,7 +403,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -713,7 +713,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "request-id" => Some(("requestId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1148,7 +1148,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "ios.apns-device-token" => Some(("ios.apns_device_token", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1228,7 +1228,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "client-revision" => Some(("clientRevision", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1524,7 +1524,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "auto-matching-criteria.kind" => Some(("autoMatchingCriteria.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1784,7 +1784,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "network-diagnostics.kind" => Some(("networkDiagnostics.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "network-diagnostics.ios-network-type" => Some(("networkDiagnostics.iosNetworkType", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -1882,7 +1882,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reason" => Some(("reason", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2039,7 +2039,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -2377,7 +2377,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -2626,7 +2626,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "invited-player-ids" => Some(("invitedPlayerIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2821,7 +2821,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "data.kind" => Some(("data.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3331,7 +3331,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "data.kind" => Some(("data.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/gamesconfiguration1_configuration-cli/src/main.rs b/gen/gamesconfiguration1_configuration-cli/src/main.rs index f02fb7dc5f..f2102c6dff 100644 --- a/gen/gamesconfiguration1_configuration-cli/src/main.rs +++ b/gen/gamesconfiguration1_configuration-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "achievement-type" => Some(("achievementType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "steps-to-unlock" => Some(("stepsToUnlock", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -322,7 +322,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "achievement-type" => Some(("achievementType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "steps-to-unlock" => Some(("stepsToUnlock", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -424,7 +424,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "achievement-type" => Some(("achievementType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "steps-to-unlock" => Some(("stepsToUnlock", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -679,7 +679,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "score-order" => Some(("scoreOrder", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -853,7 +853,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "score-order" => Some(("scoreOrder", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -969,7 +969,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "score-order" => Some(("scoreOrder", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/gamesmanagement1_management-cli/src/main.rs b/gen/gamesmanagement1_management-cli/src/main.rs index a10119a16d..47c2c63742 100644 --- a/gen/gamesmanagement1_management-cli/src/main.rs +++ b/gen/gamesmanagement1_management-cli/src/main.rs @@ -259,7 +259,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "achievement-ids" => Some(("achievement_ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -576,7 +576,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "event-ids" => Some(("event_ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -925,7 +925,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "quest-ids" => Some(("quest_ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1288,7 +1288,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "leaderboard-ids" => Some(("leaderboard_ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/gan1_beta1-cli/src/main.rs b/gen/gan1_beta1-cli/src/main.rs index 1acb086501..3944f553ae 100644 --- a/gen/gan1_beta1-cli/src/main.rs +++ b/gen/gan1_beta1-cli/src/main.rs @@ -388,7 +388,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "link-type" => Some(("linkType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "start-date" => Some(("startDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/genomics1_beta2-cli/src/main.rs b/gen/genomics1_beta2-cli/src/main.rs index 6003efff64..3fe90ada94 100644 --- a/gen/genomics1_beta2-cli/src/main.rs +++ b/gen/genomics1_beta2-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "source-uri" => Some(("sourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -252,7 +252,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "source-uri" => Some(("sourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -342,7 +342,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "page-size" => Some(("pageSize", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -432,7 +432,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "source-uri" => Some(("sourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -522,7 +522,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -606,7 +606,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "transcript.coding-sequence.start" => Some(("transcript.codingSequence.start", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -805,7 +805,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "transcript.coding-sequence.start" => Some(("transcript.codingSequence.start", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -907,7 +907,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "page-token" => Some(("pageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "range.start" => Some(("range.start", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -998,7 +998,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "transcript.coding-sequence.start" => Some(("transcript.codingSequence.start", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1100,7 +1100,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sample-id" => Some(("sampleId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1286,7 +1286,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sample-id" => Some(("sampleId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1375,7 +1375,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "page-token" => Some(("pageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "variant-set-ids" => Some(("variantSetIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1463,7 +1463,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sample-id" => Some(("sampleId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1552,7 +1552,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-public" => Some(("isPublic", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1798,7 +1798,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-public" => Some(("isPublic", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1938,7 +1938,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "is-public" => Some(("isPublic", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2026,7 +2026,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "paired-source-uris" => Some(("pairedSourceUris", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "align" => Some(("align", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -2213,7 +2213,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "created-after" => Some(("createdAfter", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2303,7 +2303,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "interleaved-fastq-source.source-uris" => Some(("interleavedFastqSource.sourceUris", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "interleaved-fastq-source.metadata.read-group-name" => Some(("interleavedFastqSource.metadata.readGroupName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2403,7 +2403,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "source-uris" => Some(("sourceUris", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "read-group-set-id" => Some(("readGroupSetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2605,7 +2605,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "export-uri" => Some(("exportUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reference-names" => Some(("referenceNames", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -2745,7 +2745,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "reference-set-id" => Some(("referenceSetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "source-uris" => Some(("sourceUris", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -2833,7 +2833,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "filename" => Some(("filename", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reference-set-id" => Some(("referenceSetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2922,7 +2922,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "page-token" => Some(("pageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "dataset-ids" => Some(("datasetIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -3010,7 +3010,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "filename" => Some(("filename", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reference-set-id" => Some(("referenceSetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3099,7 +3099,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "read-group-set-ids" => Some(("readGroupSetIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "read-group-ids" => Some(("readGroupIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -3306,7 +3306,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "md5checksums" => Some(("md5checksums", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "page-token" => Some(("pageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3447,7 +3447,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "md5checksums" => Some(("md5checksums", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "assembly-id" => Some(("assemblyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3536,7 +3536,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "read-group-set-ids" => Some(("readGroupSetIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "end" => Some(("end", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3621,7 +3621,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "variant-set-id" => Some(("variantSetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "end" => Some(("end", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3813,7 +3813,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "end" => Some(("end", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "page-size" => Some(("pageSize", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -3906,7 +3906,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "variant-set-id" => Some(("variantSetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "end" => Some(("end", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4046,7 +4046,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "bigquery-dataset" => Some(("bigqueryDataset", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "format" => Some(("format", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4187,7 +4187,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "source-uris" => Some(("sourceUris", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "format" => Some(("format", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4273,7 +4273,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -4350,7 +4350,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "dataset-id" => Some(("datasetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4436,7 +4436,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "page-token" => Some(("pageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "dataset-ids" => Some(("datasetIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -4523,7 +4523,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "dataset-id" => Some(("datasetId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/gmail1-cli/src/main.rs b/gen/gmail1-cli/src/main.rs index 325857d3c0..c9d5ffb26c 100644 --- a/gen/gmail1-cli/src/main.rs +++ b/gen/gmail1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "message.history-id" => Some(("message.historyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "message.payload.body.data" => Some(("message.payload.body.data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -325,7 +325,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "message.history-id" => Some(("message.historyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "message.payload.body.data" => Some(("message.payload.body.data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -427,7 +427,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "message.history-id" => Some(("message.historyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "message.payload.body.data" => Some(("message.payload.body.data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -645,7 +645,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "messages-total" => Some(("messagesTotal", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -887,7 +887,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "messages-total" => Some(("messagesTotal", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -980,7 +980,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "messages-total" => Some(("messagesTotal", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -1228,7 +1228,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "history-id" => Some(("historyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "payload.body.data" => Some(("payload.body.data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1341,7 +1341,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "history-id" => Some(("historyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "payload.body.data" => Some(("payload.body.data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1515,7 +1515,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "remove-label-ids" => Some(("removeLabelIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "add-label-ids" => Some(("addLabelIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1601,7 +1601,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "history-id" => Some(("historyId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "payload.body.data" => Some(("payload.body.data", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1976,7 +1976,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "remove-label-ids" => Some(("removeLabelIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "add-label-ids" => Some(("addLabelIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), diff --git a/gen/groupssettings1-cli/src/main.rs b/gen/groupssettings1-cli/src/main.rs index 5bea4faa97..231f88d9df 100644 --- a/gen/groupssettings1-cli/src/main.rs +++ b/gen/groupssettings1-cli/src/main.rs @@ -117,7 +117,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "allow-external-members" => Some(("allowExternalMembers", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "who-can-post-message" => Some(("whoCanPostMessage", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -229,7 +229,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "allow-external-members" => Some(("allowExternalMembers", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "who-can-post-message" => Some(("whoCanPostMessage", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/identitytoolkit3-cli/src/main.rs b/gen/identitytoolkit3-cli/src/main.rs index 031085d5be..fe371655aa 100644 --- a/gen/identitytoolkit3-cli/src/main.rs +++ b/gen/identitytoolkit3-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "openid-realm" => Some(("openidRealm", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "oauth-scope" => Some(("oauthScope", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -156,7 +156,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "local-id" => Some(("localId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -238,7 +238,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "next-page-token" => Some(("nextPageToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "max-results" => Some(("maxResults", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -321,7 +321,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "id-token" => Some(("idToken", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "email" => Some(("email", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -405,7 +405,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "request-type" => Some(("requestType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -592,7 +592,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "new-password" => Some(("newPassword", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "old-password" => Some(("oldPassword", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -677,7 +677,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "local-id" => Some(("localId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -769,7 +769,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "salt-separator" => Some(("saltSeparator", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "hash-algorithm" => Some(("hashAlgorithm", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -855,7 +855,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "request-uri" => Some(("requestUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "post-body" => Some(("postBody", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -940,7 +940,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "captcha-response" => Some(("captchaResponse", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "captcha-challenge" => Some(("captchaChallenge", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/licensing1-cli/src/main.rs b/gen/licensing1-cli/src/main.rs index 75c0f7ea38..71309b42b4 100644 --- a/gen/licensing1-cli/src/main.rs +++ b/gen/licensing1-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "user-id" => Some(("userId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -363,7 +363,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sku-id" => Some(("skuId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -453,7 +453,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "sku-id" => Some(("skuId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/logging1_beta3-cli/src/main.rs b/gen/logging1_beta3-cli/src/main.rs index 5f53ddb278..e9659cbb91 100644 --- a/gen/logging1_beta3-cli/src/main.rs +++ b/gen/logging1_beta3-cli/src/main.rs @@ -193,7 +193,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "destination" => Some(("destination", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -435,7 +435,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "destination" => Some(("destination", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -573,7 +573,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "common-labels" => Some(("commonLabels", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), _ => { @@ -722,7 +722,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "destination" => Some(("destination", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -964,7 +964,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "destination" => Some(("destination", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/manager1_beta2-cli/src/main.rs b/gen/manager1_beta2-cli/src/main.rs index 8aad563c0a..fd0ca428ae 100644 --- a/gen/manager1_beta2-cli/src/main.rs +++ b/gen/manager1_beta2-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "state.status" => Some(("state.status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "state.details" => Some(("state.details", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -407,7 +407,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/mapsengine1-cli/src/main.rs b/gen/mapsengine1-cli/src/main.rs index 5f11d229f9..2ad04a43aa 100644 --- a/gen/mapsengine1-cli/src/main.rs +++ b/gen/mapsengine1-cli/src/main.rs @@ -370,7 +370,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "style.feature-info.content" => Some(("style.featureInfo.content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "style.type" => Some(("style.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -838,7 +838,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "style.feature-info.content" => Some(("style.featureInfo.content", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "style.type" => Some(("style.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -934,7 +934,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -1019,7 +1019,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -1314,7 +1314,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "processing-status" => Some(("processingStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1718,7 +1718,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "processing-status" => Some(("processingStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1811,7 +1811,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -1896,7 +1896,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -2139,7 +2139,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2452,7 +2452,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "attribution" => Some(("attribution", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2798,7 +2798,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "attribution" => Some(("attribution", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "description" => Some(("description", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2891,7 +2891,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -2976,7 +2976,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -3164,7 +3164,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -3249,7 +3249,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -3711,7 +3711,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "acquisition-time.start" => Some(("acquisitionTime.start", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "acquisition-time.end" => Some(("acquisitionTime.end", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3807,7 +3807,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -3892,7 +3892,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -4080,7 +4080,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "acquisition-time.start" => Some(("acquisitionTime.start", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "acquisition-time.end" => Some(("acquisitionTime.end", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4183,7 +4183,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schema.primary-geometry" => Some(("schema.primaryGeometry", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schema.primary-key" => Some(("schema.primaryKey", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4329,7 +4329,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "gx-ids" => Some(("gx_ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "primary-keys" => Some(("primaryKeys", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -4408,7 +4408,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "normalize-geometries" => Some(("normalizeGeometries", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), _ => { @@ -4486,7 +4486,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "normalize-geometries" => Some(("normalizeGeometries", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), _ => { @@ -4954,7 +4954,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schema.primary-geometry" => Some(("schema.primaryGeometry", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schema.primary-key" => Some(("schema.primaryKey", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5048,7 +5048,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ids" => Some(("ids", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -5133,7 +5133,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -5321,7 +5321,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schema.primary-geometry" => Some(("schema.primaryGeometry", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schema.primary-key" => Some(("schema.primaryKey", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/mirror1-cli/src/main.rs b/gen/mirror1-cli/src/main.rs index e7ca7e3244..721dd284d2 100644 --- a/gen/mirror1-cli/src/main.rs +++ b/gen/mirror1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "password" => Some(("password", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "features" => Some(("features", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -245,7 +245,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -392,7 +392,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -487,7 +487,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -783,7 +783,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "notification.item-id" => Some(("notification.itemId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -932,7 +932,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "notification.item-id" => Some(("notification.itemId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1339,7 +1339,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "display-time" => Some(("displayTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "creator.kind" => Some(("creator.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1541,7 +1541,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "display-time" => Some(("displayTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "creator.kind" => Some(("creator.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1666,7 +1666,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "display-time" => Some(("displayTime", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "creator.kind" => Some(("creator.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/plus1-cli/src/main.rs b/gen/plus1-cli/src/main.rs index d003150fc4..108df77866 100644 --- a/gen/plus1-cli/src/main.rs +++ b/gen/plus1-cli/src/main.rs @@ -352,7 +352,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "start-date" => Some(("startDate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/plusdomains1-cli/src/main.rs b/gen/plusdomains1-cli/src/main.rs index 5dffab55df..2b3bd4e6d4 100644 --- a/gen/plusdomains1-cli/src/main.rs +++ b/gen/plusdomains1-cli/src/main.rs @@ -117,7 +117,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "place-name" => Some(("placeName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -481,7 +481,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -630,7 +630,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -817,7 +817,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -960,7 +960,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "plusoners.total-items" => Some(("plusoners.totalItems", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -1120,7 +1120,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "updated" => Some(("updated", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "display-name" => Some(("displayName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/prediction1d6-cli/src/main.rs b/gen/prediction1d6-cli/src/main.rs index 1e42e4d4bc..27feca8fd6 100644 --- a/gen/prediction1d6-cli/src/main.rs +++ b/gen/prediction1d6-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -298,7 +298,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "storage-data-location" => Some(("storageDataLocation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "model-type" => Some(("modelType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -446,7 +446,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); @@ -530,7 +530,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "output" => Some(("output", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { diff --git a/gen/pubsub1_beta2-cli/src/main.rs b/gen/pubsub1_beta2-cli/src/main.rs index 01db34f6a6..b89403b69a 100644 --- a/gen/pubsub1_beta2-cli/src/main.rs +++ b/gen/pubsub1_beta2-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ack-ids" => Some(("ackIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -150,7 +150,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ack-deadline-seconds" => Some(("ackDeadlineSeconds", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "topic" => Some(("topic", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -401,7 +401,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "ack-deadline-seconds" => Some(("ackDeadlineSeconds", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "ack-id" => Some(("ackId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -487,7 +487,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "push-config.attributes" => Some(("pushConfig.attributes", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })), "push-config.push-endpoint" => Some(("pushConfig.pushEndpoint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -573,7 +573,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "return-immediately" => Some(("returnImmediately", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "max-messages" => Some(("maxMessages", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -659,7 +659,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -906,7 +906,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { _ => { let suggestion = FieldCursor::did_you_mean(key, &vec![]); diff --git a/gen/qpxexpress1-cli/src/main.rs b/gen/qpxexpress1-cli/src/main.rs index 61ca67465e..147a07bfb2 100644 --- a/gen/qpxexpress1-cli/src/main.rs +++ b/gen/qpxexpress1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "request.refundable" => Some(("request.refundable", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "request.passengers.kind" => Some(("request.passengers.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/replicapool1_beta2-cli/src/main.rs b/gen/replicapool1_beta2-cli/src/main.rs index edf44262aa..7eae2be0b8 100644 --- a/gen/replicapool1_beta2-cli/src/main.rs +++ b/gen/replicapool1_beta2-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "instances" => Some(("instances", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -202,7 +202,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "instances" => Some(("instances", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -339,7 +339,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target-size" => Some(("targetSize", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), "group" => Some(("group", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -498,7 +498,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "instances" => Some(("instances", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -636,7 +636,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "instance-template" => Some(("instanceTemplate", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -721,7 +721,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target-pools" => Some(("targetPools", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "fingerprint" => Some(("fingerprint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/replicapoolupdater1_beta1-cli/src/main.rs b/gen/replicapoolupdater1_beta1-cli/src/main.rs index 4020ee05b9..cae44d2e46 100644 --- a/gen/replicapoolupdater1_beta1-cli/src/main.rs +++ b/gen/replicapoolupdater1_beta1-cli/src/main.rs @@ -169,7 +169,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/reseller1_sandbox-cli/src/main.rs b/gen/reseller1_sandbox-cli/src/main.rs index 8e68de5fce..089911f93d 100644 --- a/gen/reseller1_sandbox-cli/src/main.rs +++ b/gen/reseller1_sandbox-cli/src/main.rs @@ -117,7 +117,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "customer-domain" => Some(("customerDomain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "alternate-email" => Some(("alternateEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -220,7 +220,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "customer-domain" => Some(("customerDomain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "alternate-email" => Some(("alternateEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -320,7 +320,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "customer-domain" => Some(("customerDomain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "alternate-email" => Some(("alternateEmail", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -472,7 +472,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "plan-name" => Some(("planName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -563,7 +563,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "renewal-type" => Some(("renewalType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -649,7 +649,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "number-of-seats" => Some(("numberOfSeats", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -834,7 +834,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "renewal-settings.kind" => Some(("renewalSettings.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "renewal-settings.renewal-type" => Some(("renewalSettings.renewalType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/resourceviews1_beta2-cli/src/main.rs b/gen/resourceviews1_beta2-cli/src/main.rs index 79c25aa3a3..8d391336d8 100644 --- a/gen/resourceviews1_beta2-cli/src/main.rs +++ b/gen/resourceviews1_beta2-cli/src/main.rs @@ -178,7 +178,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resources" => Some(("resources", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -422,7 +422,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "network" => Some(("network", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -641,7 +641,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resources" => Some(("resources", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), _ => { @@ -726,7 +726,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-name" => Some(("resourceName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "fingerprint" => Some(("fingerprint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/siteverification1-cli/src/main.rs b/gen/siteverification1-cli/src/main.rs index 6113260c3c..1be80ce1ab 100644 --- a/gen/siteverification1-cli/src/main.rs +++ b/gen/siteverification1-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "verification-method" => Some(("verificationMethod", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "site.identifier" => Some(("site.identifier", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -249,7 +249,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "owners" => Some(("owners", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -389,7 +389,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "owners" => Some(("owners", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -477,7 +477,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "owners" => Some(("owners", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "id" => Some(("id", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/spectrum1_explorer-cli/src/main.rs b/gen/spectrum1_explorer-cli/src/main.rs index dd13583732..d3cddb261a 100644 --- a/gen/spectrum1_explorer-cli/src/main.rs +++ b/gen/spectrum1_explorer-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "device-desc.etsi-en-device-type" => Some(("deviceDesc.etsiEnDeviceType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "device-desc.fcc-id" => Some(("deviceDesc.fccId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -198,7 +198,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "device-desc.etsi-en-device-type" => Some(("deviceDesc.etsiEnDeviceType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "device-desc.fcc-id" => Some(("deviceDesc.fccId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -325,7 +325,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "device-desc.etsi-en-device-type" => Some(("deviceDesc.etsiEnDeviceType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "device-desc.fcc-id" => Some(("deviceDesc.fccId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -424,7 +424,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "device-desc.etsi-en-device-type" => Some(("deviceDesc.etsiEnDeviceType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "device-desc.fcc-id" => Some(("deviceDesc.fccId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -523,7 +523,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "device-desc.etsi-en-device-type" => Some(("deviceDesc.etsiEnDeviceType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "device-desc.fcc-id" => Some(("deviceDesc.fccId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -645,7 +645,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "version" => Some(("version", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "type" => Some(("type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/sqladmin1_beta4-cli/src/main.rs b/gen/sqladmin1_beta4-cli/src/main.rs index c26506b012..4e7f44e3cd 100644 --- a/gen/sqladmin1_beta4-cli/src/main.rs +++ b/gen/sqladmin1_beta4-cli/src/main.rs @@ -279,7 +279,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -423,7 +423,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -515,7 +515,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -659,7 +659,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "clone-context.bin-log-coordinates.bin-log-position" => Some(("cloneContext.binLogCoordinates.binLogPosition", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "clone-context.bin-log-coordinates.kind" => Some(("cloneContext.binLogCoordinates.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -800,7 +800,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "export-context.kind" => Some(("exportContext.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "export-context.file-type" => Some(("exportContext.fileType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -942,7 +942,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "import-context.file-type" => Some(("importContext.fileType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "import-context.database" => Some(("importContext.database", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1032,7 +1032,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "on-premises-configuration.kind" => Some(("onPremisesConfiguration.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "on-premises-configuration.host-port" => Some(("onPremisesConfiguration.hostPort", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1230,7 +1230,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "on-premises-configuration.kind" => Some(("onPremisesConfiguration.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "on-premises-configuration.host-port" => Some(("onPremisesConfiguration.hostPort", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1526,7 +1526,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "restore-backup-context.kind" => Some(("restoreBackupContext.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "restore-backup-context.backup-run-id" => Some(("restoreBackupContext.backupRunId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1716,7 +1716,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "on-premises-configuration.kind" => Some(("onPremisesConfiguration.kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "on-premises-configuration.host-port" => Some(("onPremisesConfiguration.hostPort", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2070,7 +2070,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "common-name" => Some(("commonName", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), _ => { @@ -2311,7 +2311,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2454,7 +2454,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/storage1-cli/src/main.rs b/gen/storage1-cli/src/main.rs index 0ef71785a3..0350d73303 100644 --- a/gen/storage1-cli/src/main.rs +++ b/gen/storage1-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "bucket" => Some(("bucket", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -310,7 +310,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "bucket" => Some(("bucket", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -406,7 +406,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "bucket" => Some(("bucket", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -614,7 +614,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "website.not-found-page" => Some(("website.notFoundPage", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "website.main-page-suffix" => Some(("website.mainPageSuffix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -788,7 +788,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "website.not-found-page" => Some(("website.notFoundPage", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "website.main-page-suffix" => Some(("website.mainPageSuffix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -904,7 +904,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "website.not-found-page" => Some(("website.notFoundPage", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "website.main-page-suffix" => Some(("website.mainPageSuffix", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1020,7 +1020,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1204,7 +1204,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1360,7 +1360,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1458,7 +1458,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1659,7 +1659,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1815,7 +1815,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1916,7 +1916,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "domain" => Some(("domain", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2017,7 +2017,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "destination.self-link" => Some(("destination.selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2143,7 +2143,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "self-link" => Some(("selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2430,7 +2430,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "self-link" => Some(("selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2637,7 +2637,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "self-link" => Some(("selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2766,7 +2766,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "self-link" => Some(("selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2913,7 +2913,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "self-link" => Some(("selfLink", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "generation" => Some(("generation", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3050,7 +3050,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "resource-uri" => Some(("resourceUri", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/tagmanager1-cli/src/main.rs b/gen/tagmanager1-cli/src/main.rs index e16a6097b9..f48ebd74f9 100644 --- a/gen/tagmanager1-cli/src/main.rs +++ b/gen/tagmanager1-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "time-zone-id" => Some(("timeZoneId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "enabled-built-in-variable" => Some(("enabledBuiltInVariable", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -309,7 +309,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schedule-start-ms" => Some(("scheduleStartMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule-end-ms" => Some(("scheduleEndMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -553,7 +553,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schedule-start-ms" => Some(("scheduleStartMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule-end-ms" => Some(("scheduleEndMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -651,7 +651,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "container-id" => Some(("containerId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "rule-id" => Some(("ruleId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -890,7 +890,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "container-id" => Some(("containerId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "rule-id" => Some(("ruleId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -983,7 +983,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schedule-start-ms" => Some(("scheduleStartMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule-end-ms" => Some(("scheduleEndMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1233,7 +1233,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schedule-start-ms" => Some(("scheduleStartMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule-end-ms" => Some(("scheduleEndMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1337,7 +1337,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "video-percentage-list.type" => Some(("videoPercentageList.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "video-percentage-list.value" => Some(("videoPercentageList.value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1603,7 +1603,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "video-percentage-list.type" => Some(("videoPercentageList.type", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "video-percentage-list.value" => Some(("videoPercentageList.value", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1723,7 +1723,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "time-zone-id" => Some(("timeZoneId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "enabled-built-in-variable" => Some(("enabledBuiltInVariable", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1821,7 +1821,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schedule-start-ms" => Some(("scheduleStartMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule-end-ms" => Some(("scheduleEndMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2065,7 +2065,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "schedule-start-ms" => Some(("scheduleStartMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "schedule-end-ms" => Some(("scheduleEndMs", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2163,7 +2163,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "notes" => Some(("notes", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2561,7 +2561,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "container.time-zone-id" => Some(("container.timeZoneId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "container.enabled-built-in-variable" => Some(("container.enabledBuiltInVariable", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -2770,7 +2770,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "account-access.permission" => Some(("accountAccess.permission", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "email-address" => Some(("emailAddress", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3007,7 +3007,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "account-access.permission" => Some(("accountAccess.permission", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), "email-address" => Some(("emailAddress", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3095,7 +3095,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "share-data" => Some(("shareData", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "fingerprint" => Some(("fingerprint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/taskqueue1_beta2-cli/src/main.rs b/gen/taskqueue1_beta2-cli/src/main.rs index 9ba0c76131..ab8ffc6904 100644 --- a/gen/taskqueue1_beta2-cli/src/main.rs +++ b/gen/taskqueue1_beta2-cli/src/main.rs @@ -217,7 +217,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "lease-timestamp" => Some(("leaseTimestamp", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -421,7 +421,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "lease-timestamp" => Some(("leaseTimestamp", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -514,7 +514,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "lease-timestamp" => Some(("leaseTimestamp", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/tasks1-cli/src/main.rs b/gen/tasks1-cli/src/main.rs index c539d22917..c31f30ea2e 100644 --- a/gen/tasks1-cli/src/main.rs +++ b/gen/tasks1-cli/src/main.rs @@ -162,7 +162,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "title" => Some(("title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -310,7 +310,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "title" => Some(("title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -400,7 +400,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "title" => Some(("title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -632,7 +632,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -876,7 +876,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -974,7 +974,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/urlshortener1-cli/src/main.rs b/gen/urlshortener1-cli/src/main.rs index a9d80da2a9..c5f089a882 100644 --- a/gen/urlshortener1-cli/src/main.rs +++ b/gen/urlshortener1-cli/src/main.rs @@ -120,7 +120,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status" => Some(("status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/youtube3-cli/src/main.rs b/gen/youtube3-cli/src/main.rs index cda8c930db..a5e36e5f6d 100644 --- a/gen/youtube3-cli/src/main.rs +++ b/gen/youtube3-cli/src/main.rs @@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.thumbnails.default.url" => Some(("snippet.thumbnails.default.url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.thumbnails.default.width" => Some(("snippet.thumbnails.default.width", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -428,7 +428,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.status" => Some(("snippet.status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.audio-track-type" => Some(("snippet.audioTrackType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -602,7 +602,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.status" => Some(("snippet.status", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.audio-track-type" => Some(("snippet.audioTrackType", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -715,7 +715,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "url" => Some(("url", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -857,7 +857,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "targeting.languages" => Some(("targeting.languages", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1029,7 +1029,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "targeting.languages" => Some(("targeting.languages", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })), @@ -1213,7 +1213,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status.is-linked" => Some(("status.isLinked", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -1396,7 +1396,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.is-public" => Some(("snippet.isPublic", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "snippet.channel-id" => Some(("snippet.channelId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1589,7 +1589,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.is-public" => Some(("snippet.isPublic", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "snippet.channel-id" => Some(("snippet.channelId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -1745,7 +1745,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.author-channel-url" => Some(("snippet.authorChannelUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.viewer-rating" => Some(("snippet.viewerRating", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2008,7 +2008,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.author-channel-url" => Some(("snippet.authorChannelUrl", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.viewer-rating" => Some(("snippet.viewerRating", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2461,7 +2461,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.recording-status" => Some(("status.recordingStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2723,7 +2723,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.recording-status" => Some(("status.recordingStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -2905,7 +2905,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.is-default-stream" => Some(("status.isDefaultStream", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "status.stream-status" => Some(("status.streamStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3081,7 +3081,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.is-default-stream" => Some(("status.isDefaultStream", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), "status.stream-status" => Some(("status.streamStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3232,7 +3232,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3423,7 +3423,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3589,7 +3589,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -3785,7 +3785,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.privacy-status" => Some(("status.privacyStatus", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -4089,7 +4089,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "content-details.new-item-count" => Some(("contentDetails.newItemCount", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })), @@ -4581,7 +4581,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.license" => Some(("status.license", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status.embeddable" => Some(("status.embeddable", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -4972,7 +4972,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "secondary-reason-id" => Some(("secondaryReasonId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "reason-id" => Some(("reasonId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -5057,7 +5057,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "status.license" => Some(("status.license", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "status.embeddable" => Some(("status.embeddable", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })), @@ -5302,7 +5302,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "target-channel-id" => Some(("targetChannelId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "position.corner-position" => Some(("position.cornerPosition", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), diff --git a/gen/youtubeanalytics1-cli/src/main.rs b/gen/youtubeanalytics1-cli/src/main.rs index 5a75868c2b..23b93a8e7e 100644 --- a/gen/youtubeanalytics1-cli/src/main.rs +++ b/gen/youtubeanalytics1-cli/src/main.rs @@ -217,7 +217,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "kind" => Some(("kind", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "etag" => Some(("etag", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -413,7 +413,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.published-at" => Some(("snippet.publishedAt", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.title" => Some(("snippet.title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), @@ -568,7 +568,7 @@ impl<'n, 'a> Engine<'n, 'a> { continue; } - let type_info = + let type_info: Option<(&'static str, JsonTypeInfo)> = match &temp_cursor.to_string()[..] { "snippet.published-at" => Some(("snippet.publishedAt", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })), "snippet.title" => Some(("snippet.title", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),