diff --git a/Cargo.lock b/Cargo.lock index 987f7c18..c0fbb6e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2564,7 +2564,7 @@ checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" [[package]] name = "typify" version = "0.3.0" -source = "git+https://github.com/oxidecomputer/typify#eed9bee494c3421b194e5d078cd9c9520ef8bb3c" +source = "git+https://github.com/oxidecomputer/typify#681e31198870ceaee3ef07cf0e17702ce41b3a58" dependencies = [ "typify-impl", "typify-macro", @@ -2573,7 +2573,7 @@ dependencies = [ [[package]] name = "typify-impl" version = "0.3.0" -source = "git+https://github.com/oxidecomputer/typify#eed9bee494c3421b194e5d078cd9c9520ef8bb3c" +source = "git+https://github.com/oxidecomputer/typify#681e31198870ceaee3ef07cf0e17702ce41b3a58" dependencies = [ "heck", "log", @@ -2592,7 +2592,7 @@ dependencies = [ [[package]] name = "typify-macro" version = "0.3.0" -source = "git+https://github.com/oxidecomputer/typify#eed9bee494c3421b194e5d078cd9c9520ef8bb3c" +source = "git+https://github.com/oxidecomputer/typify#681e31198870ceaee3ef07cf0e17702ce41b3a58" dependencies = [ "proc-macro2", "quote", diff --git a/progenitor-impl/tests/output/src/buildomat_builder.rs b/progenitor-impl/tests/output/src/buildomat_builder.rs index 133c7bfd..1f6233bd 100644 --- a/progenitor-impl/tests/output/src/buildomat_builder.rs +++ b/progenitor-impl/tests/output/src/buildomat_builder.rs @@ -252,7 +252,7 @@ pub mod types { pub payload: ::std::string::String, pub seq: u32, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&TaskEvent> for TaskEvent { @@ -620,7 +620,7 @@ pub mod types { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub instance_id: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub lastping: ::std::option::Option>, + pub lastping: ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, pub recycle: bool, pub tasks: ::std::vec::Vec, } @@ -721,7 +721,7 @@ pub mod types { pub struct WorkerAppendTask { pub payload: ::std::string::String, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask { @@ -1205,8 +1205,10 @@ pub mod types { payload: ::std::result::Result<::std::string::String, ::std::string::String>, seq: ::std::result::Result, stream: ::std::result::Result<::std::string::String, ::std::string::String>, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for TaskEvent { @@ -1253,7 +1255,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value @@ -1717,7 +1719,7 @@ pub mod types { ::std::string::String, >, lastping: ::std::result::Result< - ::std::option::Option>, + ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, ::std::string::String, >, recycle: ::std::result::Result, @@ -1771,7 +1773,7 @@ pub mod types { pub fn lastping(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option>, + ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, >, T::Error: ::std::fmt::Display, { @@ -1911,8 +1913,10 @@ pub mod types { pub struct WorkerAppendTask { payload: ::std::result::Result<::std::string::String, ::std::string::String>, stream: ::std::result::Result<::std::string::String, ::std::string::String>, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for WorkerAppendTask { @@ -1948,7 +1952,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value diff --git a/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs b/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs index bff433dd..846195b9 100644 --- a/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs @@ -244,7 +244,7 @@ pub mod types { pub payload: ::std::string::String, pub seq: u32, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&TaskEvent> for TaskEvent { @@ -596,7 +596,7 @@ pub mod types { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub instance_id: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub lastping: ::std::option::Option>, + pub lastping: ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, pub recycle: bool, pub tasks: ::std::vec::Vec, } @@ -693,7 +693,7 @@ pub mod types { pub struct WorkerAppendTask { pub payload: ::std::string::String, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask { @@ -1163,8 +1163,10 @@ pub mod types { payload: ::std::result::Result<::std::string::String, ::std::string::String>, seq: ::std::result::Result, stream: ::std::result::Result<::std::string::String, ::std::string::String>, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for TaskEvent { @@ -1211,7 +1213,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value @@ -1675,7 +1677,7 @@ pub mod types { ::std::string::String, >, lastping: ::std::result::Result< - ::std::option::Option>, + ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, ::std::string::String, >, recycle: ::std::result::Result, @@ -1729,7 +1731,7 @@ pub mod types { pub fn lastping(mut self, value: T) -> Self where T: ::std::convert::TryInto< - ::std::option::Option>, + ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, >, T::Error: ::std::fmt::Display, { @@ -1869,8 +1871,10 @@ pub mod types { pub struct WorkerAppendTask { payload: ::std::result::Result<::std::string::String, ::std::string::String>, stream: ::std::result::Result<::std::string::String, ::std::string::String>, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for WorkerAppendTask { @@ -1906,7 +1910,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value diff --git a/progenitor-impl/tests/output/src/buildomat_cli.rs b/progenitor-impl/tests/output/src/buildomat_cli.rs index 8f86a06f..b4060666 100644 --- a/progenitor-impl/tests/output/src/buildomat_cli.rs +++ b/progenitor-impl/tests/output/src/buildomat_cli.rs @@ -221,7 +221,9 @@ impl Cli { .arg( ::clap::Arg::new("time") .long("time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required_unless_present("json-body"), ) .arg( @@ -671,7 +673,7 @@ impl Cli { request = request.task(value.clone()); } - if let Some(value) = matches.get_one::>("time") { + if let Some(value) = matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("time") { request = request.body_map(|body| body.time(value.clone())) } diff --git a/progenitor-impl/tests/output/src/buildomat_positional.rs b/progenitor-impl/tests/output/src/buildomat_positional.rs index 37fffddf..959b17e6 100644 --- a/progenitor-impl/tests/output/src/buildomat_positional.rs +++ b/progenitor-impl/tests/output/src/buildomat_positional.rs @@ -233,7 +233,7 @@ pub mod types { pub payload: ::std::string::String, pub seq: u32, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&TaskEvent> for TaskEvent { @@ -537,7 +537,7 @@ pub mod types { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub instance_id: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub lastping: ::std::option::Option>, + pub lastping: ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, pub recycle: bool, pub tasks: ::std::vec::Vec, } @@ -622,7 +622,7 @@ pub mod types { pub struct WorkerAppendTask { pub payload: ::std::string::String, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask { diff --git a/progenitor-impl/tests/output/src/keeper_builder.rs b/progenitor-impl/tests/output/src/keeper_builder.rs index f3fed6f4..af1836f1 100644 --- a/progenitor-impl/tests/output/src/keeper_builder.rs +++ b/progenitor-impl/tests/output/src/keeper_builder.rs @@ -154,7 +154,7 @@ pub mod types { pub struct OutputRecord { pub msg: ::std::string::String, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&OutputRecord> for OutputRecord { @@ -251,7 +251,7 @@ pub mod types { )] pub struct ReportFinishBody { pub duration_millis: usize, - pub end_time: chrono::DateTime, + pub end_time: ::chrono::DateTime<::chrono::offset::Utc>, pub exit_status: usize, pub id: ReportId, } @@ -312,7 +312,7 @@ pub mod types { pub host: ::std::string::String, pub job: ::std::string::String, pub pid: u64, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, pub uuid: ::std::string::String, } @@ -443,7 +443,7 @@ pub mod types { pub struct ReportStartBody { pub id: ReportId, pub script: ::std::string::String, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&ReportStartBody> for ReportStartBody { @@ -509,7 +509,7 @@ pub mod types { pub host: ::std::string::String, pub job: ::std::string::String, pub status: usize, - pub when: chrono::DateTime, + pub when: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&ReportSummary> for ReportSummary { @@ -635,8 +635,10 @@ pub mod types { pub struct OutputRecord { msg: ::std::result::Result<::std::string::String, ::std::string::String>, stream: ::std::result::Result<::std::string::String, ::std::string::String>, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for OutputRecord { @@ -672,7 +674,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value @@ -767,8 +769,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportFinishBody { duration_millis: ::std::result::Result, - end_time: - ::std::result::Result, ::std::string::String>, + end_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, exit_status: ::std::result::Result, id: ::std::result::Result, } @@ -797,7 +801,7 @@ pub mod types { } pub fn end_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.end_time = value @@ -857,8 +861,10 @@ pub mod types { host: ::std::result::Result<::std::string::String, ::std::string::String>, job: ::std::result::Result<::std::string::String, ::std::string::String>, pid: ::std::result::Result, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, uuid: ::std::result::Result<::std::string::String, ::std::string::String>, } @@ -907,7 +913,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value @@ -1062,8 +1068,10 @@ pub mod types { pub struct ReportStartBody { id: ::std::result::Result, script: ::std::result::Result<::std::string::String, ::std::string::String>, - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for ReportStartBody { @@ -1099,7 +1107,7 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -1139,8 +1147,10 @@ pub mod types { host: ::std::result::Result<::std::string::String, ::std::string::String>, job: ::std::result::Result<::std::string::String, ::std::string::String>, status: ::std::result::Result, - when: - ::std::result::Result, ::std::string::String>, + when: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for ReportSummary { @@ -1212,7 +1222,7 @@ pub mod types { } pub fn when(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.when = value diff --git a/progenitor-impl/tests/output/src/keeper_builder_tagged.rs b/progenitor-impl/tests/output/src/keeper_builder_tagged.rs index b94cfbc2..7baf8e47 100644 --- a/progenitor-impl/tests/output/src/keeper_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/keeper_builder_tagged.rs @@ -148,7 +148,7 @@ pub mod types { pub struct OutputRecord { pub msg: ::std::string::String, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&OutputRecord> for OutputRecord { @@ -241,7 +241,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ReportFinishBody { pub duration_millis: i32, - pub end_time: chrono::DateTime, + pub end_time: ::chrono::DateTime<::chrono::offset::Utc>, pub exit_status: i32, pub id: ReportId, } @@ -300,7 +300,7 @@ pub mod types { pub host: ::std::string::String, pub job: ::std::string::String, pub pid: u64, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, pub uuid: ::std::string::String, } @@ -425,7 +425,7 @@ pub mod types { pub struct ReportStartBody { pub id: ReportId, pub script: ::std::string::String, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&ReportStartBody> for ReportStartBody { @@ -489,7 +489,7 @@ pub mod types { pub host: ::std::string::String, pub job: ::std::string::String, pub status: i32, - pub when: chrono::DateTime, + pub when: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&ReportSummary> for ReportSummary { @@ -615,8 +615,10 @@ pub mod types { pub struct OutputRecord { msg: ::std::result::Result<::std::string::String, ::std::string::String>, stream: ::std::result::Result<::std::string::String, ::std::string::String>, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for OutputRecord { @@ -652,7 +654,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value @@ -747,8 +749,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportFinishBody { duration_millis: ::std::result::Result, - end_time: - ::std::result::Result, ::std::string::String>, + end_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, exit_status: ::std::result::Result, id: ::std::result::Result, } @@ -777,7 +781,7 @@ pub mod types { } pub fn end_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.end_time = value @@ -837,8 +841,10 @@ pub mod types { host: ::std::result::Result<::std::string::String, ::std::string::String>, job: ::std::result::Result<::std::string::String, ::std::string::String>, pid: ::std::result::Result, - time: - ::std::result::Result, ::std::string::String>, + time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, uuid: ::std::result::Result<::std::string::String, ::std::string::String>, } @@ -887,7 +893,7 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time = value @@ -1042,8 +1048,10 @@ pub mod types { pub struct ReportStartBody { id: ::std::result::Result, script: ::std::result::Result<::std::string::String, ::std::string::String>, - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for ReportStartBody { @@ -1079,7 +1087,7 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -1119,8 +1127,10 @@ pub mod types { host: ::std::result::Result<::std::string::String, ::std::string::String>, job: ::std::result::Result<::std::string::String, ::std::string::String>, status: ::std::result::Result, - when: - ::std::result::Result, ::std::string::String>, + when: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for ReportSummary { @@ -1192,7 +1202,7 @@ pub mod types { } pub fn when(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.when = value diff --git a/progenitor-impl/tests/output/src/keeper_cli.rs b/progenitor-impl/tests/output/src/keeper_cli.rs index 604308e1..78b770b5 100644 --- a/progenitor-impl/tests/output/src/keeper_cli.rs +++ b/progenitor-impl/tests/output/src/keeper_cli.rs @@ -95,7 +95,9 @@ impl Cli { .arg( ::clap::Arg::new("end-time") .long("end-time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required_unless_present("json-body"), ) .arg( @@ -163,7 +165,9 @@ impl Cli { .arg( ::clap::Arg::new("start-time") .long("start-time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required_unless_present("json-body"), ) .arg( @@ -281,7 +285,9 @@ impl Cli { request = request.body_map(|body| body.duration_millis(value.clone())) } - if let Some(value) = matches.get_one::>("end-time") { + if let Some(value) = + matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("end-time") + { request = request.body_map(|body| body.end_time(value.clone())) } @@ -345,7 +351,8 @@ impl Cli { request = request.body_map(|body| body.script(value.clone())) } - if let Some(value) = matches.get_one::>("start-time") + if let Some(value) = + matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("start-time") { request = request.body_map(|body| body.start_time(value.clone())) } diff --git a/progenitor-impl/tests/output/src/keeper_positional.rs b/progenitor-impl/tests/output/src/keeper_positional.rs index 3d67dcad..e952ffe9 100644 --- a/progenitor-impl/tests/output/src/keeper_positional.rs +++ b/progenitor-impl/tests/output/src/keeper_positional.rs @@ -137,7 +137,7 @@ pub mod types { pub struct OutputRecord { pub msg: ::std::string::String, pub stream: ::std::string::String, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&OutputRecord> for OutputRecord { @@ -218,7 +218,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ReportFinishBody { pub duration_millis: i32, - pub end_time: chrono::DateTime, + pub end_time: ::chrono::DateTime<::chrono::offset::Utc>, pub exit_status: i32, pub id: ReportId, } @@ -271,7 +271,7 @@ pub mod types { pub host: ::std::string::String, pub job: ::std::string::String, pub pid: u64, - pub time: chrono::DateTime, + pub time: ::chrono::DateTime<::chrono::offset::Utc>, pub uuid: ::std::string::String, } @@ -378,7 +378,7 @@ pub mod types { pub struct ReportStartBody { pub id: ReportId, pub script: ::std::string::String, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&ReportStartBody> for ReportStartBody { @@ -436,7 +436,7 @@ pub mod types { pub host: ::std::string::String, pub job: ::std::string::String, pub status: i32, - pub when: chrono::DateTime, + pub when: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&ReportSummary> for ReportSummary { diff --git a/progenitor-impl/tests/output/src/nexus_builder.rs b/progenitor-impl/tests/output/src/nexus_builder.rs index 0d6437ba..09e3a637 100644 --- a/progenitor-impl/tests/output/src/nexus_builder.rs +++ b/progenitor-impl/tests/output/src/nexus_builder.rs @@ -623,14 +623,14 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub service: ServiceUsingCertificate, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Certificate> for Certificate { @@ -829,11 +829,11 @@ pub mod types { pub struct ComponentUpdate { pub component_type: UpdateableComponentType, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -932,7 +932,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Cumulativedouble { - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, pub value: f64, } @@ -977,7 +977,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Cumulativeint64 { - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, pub value: i64, } @@ -1454,7 +1454,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DeviceAccessTokenRequest { - pub client_id: uuid::Uuid, + pub client_id: ::uuid::Uuid, pub device_code: ::std::string::String, pub grant_type: ::std::string::String, } @@ -1494,7 +1494,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DeviceAuthRequest { - pub client_id: uuid::Uuid, + pub client_id: ::uuid::Uuid, } impl ::std::convert::From<&DeviceAuthRequest> for DeviceAuthRequest { @@ -1683,20 +1683,20 @@ pub mod types { pub description: ::std::string::String, pub device_path: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub image_id: ::std::option::Option, + pub image_id: ::std::option::Option<::uuid::Uuid>, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub size: ByteCount, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub snapshot_id: ::std::option::Option, + pub snapshot_id: ::std::option::Option<::uuid::Uuid>, pub state: DiskState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Disk> for Disk { @@ -2127,13 +2127,13 @@ pub mod types { }, ///Create a disk from a disk snapshot #[serde(rename = "snapshot")] - Snapshot { snapshot_id: uuid::Uuid }, + Snapshot { snapshot_id: ::uuid::Uuid }, ///Create a disk from a project image #[serde(rename = "image")] - Image { image_id: uuid::Uuid }, + Image { image_id: ::uuid::Uuid }, ///Create a disk from a global image #[serde(rename = "global_image")] - GlobalImage { image_id: uuid::Uuid }, + GlobalImage { image_id: ::uuid::Uuid }, } impl ::std::convert::From<&Self> for DiskSource { @@ -2285,13 +2285,13 @@ pub mod types { Detached, ///Disk is being attached to the given Instance #[serde(rename = "attaching")] - Attaching(uuid::Uuid), + Attaching(::uuid::Uuid), ///Disk is attached to the given Instance #[serde(rename = "attached")] - Attached(uuid::Uuid), + Attached(::uuid::Uuid), ///Disk is being detached from the given Instance #[serde(rename = "detaching")] - Detaching(uuid::Uuid), + Detaching(::uuid::Uuid), #[serde(rename = "destroyed")] Destroyed, #[serde(rename = "faulted")] @@ -2432,7 +2432,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ExternalIp { - pub ip: std::net::IpAddr, + pub ip: ::std::net::IpAddr, pub kind: IpKind, } @@ -2987,7 +2987,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct FleetRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: FleetRole, } @@ -3117,15 +3117,15 @@ pub mod types { ///Image distribution pub distribution: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///total size in bytes pub size: ByteCount, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///URL source of this image, if any #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, @@ -3314,9 +3314,9 @@ pub mod types { pub struct Group { ///Human-readable name that can identify the group pub display_name: ::std::string::String, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Uuid of the silo to which this group belongs - pub silo_id: uuid::Uuid, + pub silo_id: ::uuid::Uuid, } impl ::std::convert::From<&Group> for Group { @@ -3496,7 +3496,7 @@ pub mod types { pub struct Histogramdouble { pub bins: ::std::vec::Vec, pub n_samples: u64, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Histogramdouble> for Histogramdouble { @@ -3622,7 +3622,7 @@ pub mod types { pub struct Histogramint64 { pub bins: ::std::vec::Vec, pub n_samples: u64, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Histogramint64> for Histogramint64 { @@ -3792,15 +3792,15 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///Identity provider type pub provider_type: IdentityProviderType, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IdentityProvider> for IdentityProvider { @@ -4219,17 +4219,17 @@ pub mod types { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub digest: ::std::option::Option, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///The project the disk belongs to - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, ///total size in bytes pub size: ByteCount, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///URL source of this image, if any #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, @@ -4444,7 +4444,7 @@ pub mod types { #[serde(rename = "url")] Url { url: ::std::string::String }, #[serde(rename = "snapshot")] - Snapshot { id: uuid::Uuid }, + Snapshot { id: ::uuid::Uuid }, #[serde(rename = "you_can_boot_anything_as_long_as_its_alpine")] YouCanBootAnythingAsLongAsItsAlpine, } @@ -4551,7 +4551,7 @@ pub mod types { ///RFC1035-compliant hostname for the Instance. pub hostname: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///memory allocated for this Instance pub memory: ByteCount, ///unique, mutable, user-controlled identifier for each resource @@ -4559,13 +4559,13 @@ pub mod types { ///number of CPUs allocated for this Instance pub ncpus: InstanceCpuCount, ///id for the project containing this Instance - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub run_state: InstanceState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, - pub time_run_state_updated: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, + pub time_run_state_updated: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Instance> for Instance { @@ -4920,7 +4920,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceMigrate { - pub dst_sled_id: uuid::Uuid, + pub dst_sled_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrate> for InstanceMigrate { @@ -5607,13 +5607,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IpPool> for IpPool { @@ -5706,9 +5706,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct IpPoolRange { - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub range: IpRange, - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IpPoolRange> for IpPoolRange { @@ -6093,8 +6093,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Ipv4Range { - pub first: std::net::Ipv4Addr, - pub last: std::net::Ipv4Addr, + pub first: ::std::net::Ipv4Addr, + pub last: ::std::net::Ipv4Addr, } impl ::std::convert::From<&Ipv4Range> for Ipv4Range { @@ -6251,8 +6251,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Ipv6Range { - pub first: std::net::Ipv6Addr, - pub last: std::net::Ipv6Addr, + pub first: ::std::net::Ipv6Addr, + pub last: ::std::net::Ipv6Addr, } impl ::std::convert::From<&Ipv6Range> for Ipv6Range { @@ -6517,7 +6517,7 @@ pub mod types { )] pub struct Measurement { pub datum: Datum, - pub timestamp: chrono::DateTime, + pub timestamp: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Measurement> for Measurement { @@ -6721,7 +6721,7 @@ pub mod types { )] #[serde(untagged)] pub enum NameOrId { - Id(uuid::Uuid), + Id(::uuid::Uuid), Name(Name), } @@ -6778,8 +6778,8 @@ pub mod types { } } - impl ::std::convert::From for NameOrId { - fn from(value: uuid::Uuid) -> Self { + impl ::std::convert::From<::uuid::Uuid> for NameOrId { + fn from(value: ::uuid::Uuid) -> Self { Self::Id(value) } } @@ -7088,11 +7088,11 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The Instance to which the interface belongs. - pub instance_id: uuid::Uuid, + pub instance_id: ::uuid::Uuid, ///The IP address assigned to this interface. - pub ip: std::net::IpAddr, + pub ip: ::std::net::IpAddr, ///The MAC address assigned to this interface. pub mac: MacAddr, ///unique, mutable, user-controlled identifier for each resource @@ -7101,13 +7101,13 @@ pub mod types { /// attached. pub primary: bool, ///The subnet to which the interface belongs. - pub subnet_id: uuid::Uuid, + pub subnet_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the interface belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&NetworkInterface> for NetworkInterface { @@ -7181,7 +7181,7 @@ pub mod types { ///The IP address for the interface. One will be auto-assigned if not /// provided. #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub ip: ::std::option::Option, + pub ip: ::std::option::Option<::std::net::IpAddr>, pub name: Name, ///The VPC Subnet in which to create the interface. pub subnet_name: Name, @@ -7479,13 +7479,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Organization> for Organization { @@ -7781,7 +7781,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct OrganizationRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: OrganizationRole, } @@ -8021,16 +8021,16 @@ pub mod types { pub struct PhysicalDisk { pub disk_type: PhysicalDiskType, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub model: ::std::string::String, pub serial: ::std::string::String, ///The sled to which this disk is attached, if any. #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub sled_id: ::std::option::Option, + pub sled_id: ::std::option::Option<::uuid::Uuid>, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub vendor: ::std::string::String, } @@ -8246,14 +8246,14 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub organization_id: uuid::Uuid, + pub organization_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Project> for Project { @@ -8549,7 +8549,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ProjectRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: ProjectRole, } @@ -8671,11 +8671,11 @@ pub mod types { )] pub struct Rack { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Rack> for Rack { @@ -9051,7 +9051,7 @@ pub mod types { pub enum RouteDestination { ///Route applies to traffic destined for a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///Route applies to traffic destined for a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -9069,8 +9069,8 @@ pub mod types { } } - impl ::std::convert::From for RouteDestination { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for RouteDestination { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -9198,7 +9198,7 @@ pub mod types { pub enum RouteTarget { ///Forward traffic to a particular IP address. #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///Forward traffic to a VPC #[serde(rename = "vpc")] Vpc(Name), @@ -9219,8 +9219,8 @@ pub mod types { } } - impl ::std::convert::From for RouteTarget { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for RouteTarget { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -9308,18 +9308,18 @@ pub mod types { pub description: ::std::string::String, pub destination: RouteDestination, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Describes the kind of router. Set at creation. `read-only` pub kind: RouterRouteKind, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub target: RouteTarget, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC Router to which the route belongs. - pub vpc_router_id: uuid::Uuid, + pub vpc_router_id: ::uuid::Uuid, } impl ::std::convert::From<&RouterRoute> for RouterRoute { @@ -9676,7 +9676,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Saga { - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub state: SagaState, } @@ -10043,7 +10043,7 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///idp's entity id pub idp_entity_id: ::std::string::String, ///unique, mutable, user-controlled identifier for each resource @@ -10059,9 +10059,9 @@ pub mod types { ///customer's technical contact for saml configuration pub technical_contact_email: ::std::string::String, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&SamlIdentityProvider> for SamlIdentityProvider { @@ -10457,15 +10457,15 @@ pub mod types { /// it will not be part of the "list all silos" output. pub discoverable: bool, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///How users and groups are managed in this Silo pub identity_mode: SiloIdentityMode, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Silo> for Silo { @@ -10903,7 +10903,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct SiloRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: SiloRole, } @@ -10968,12 +10968,12 @@ pub mod types { pub struct Sled { pub baseboard: Baseboard, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub service_address: ::std::string::String, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Sled> for Sled { @@ -11115,18 +11115,18 @@ pub mod types { pub struct Snapshot { ///human-readable free-form text about a resource pub description: ::std::string::String, - pub disk_id: uuid::Uuid, + pub disk_id: ::uuid::Uuid, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub size: ByteCount, pub state: SnapshotState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Snapshot> for Snapshot { @@ -11451,17 +11451,17 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` pub public_key: ::std::string::String, ///The user to whom this key belongs - pub silo_user_id: uuid::Uuid, + pub silo_user_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&SshKey> for SshKey { @@ -11718,11 +11718,11 @@ pub mod types { )] pub struct SystemUpdate { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -12022,7 +12022,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct TimeseriesSchema { - pub created: chrono::DateTime, + pub created: ::chrono::DateTime<::chrono::offset::Utc>, pub datum_type: DatumType, pub field_schema: ::std::vec::Vec, pub timeseries_name: TimeseriesName, @@ -12143,12 +12143,12 @@ pub mod types { )] pub struct UpdateDeployment { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub status: UpdateStatus, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -12392,13 +12392,13 @@ pub mod types { pub component_type: UpdateableComponentType, pub device_id: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub status: UpdateStatus, pub system_version: SemverVersion, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -12640,9 +12640,9 @@ pub mod types { pub struct User { ///Human-readable name that can identify the user pub display_name: ::std::string::String, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Uuid of the silo to which this user belongs - pub silo_id: uuid::Uuid, + pub silo_id: ::uuid::Uuid, } impl ::std::convert::From<&User> for User { @@ -12713,13 +12713,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&UserBuiltin> for UserBuiltin { @@ -13246,19 +13246,19 @@ pub mod types { ///The name used for the VPC in DNS. pub dns_name: Name, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The unique local IPv6 address range for subnets in this VPC pub ipv6_prefix: Ipv6Net, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///id for the project containing this VPC - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, ///id for the system router where subnet default routes are registered - pub system_router_id: uuid::Uuid, + pub system_router_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Vpc> for Vpc { @@ -13470,7 +13470,7 @@ pub mod types { ///reductions on the scope of the rule pub filters: VpcFirewallRuleFilter, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///the relative priority of this rule @@ -13480,11 +13480,11 @@ pub mod types { ///list of sets of instances that the rule applies to pub targets: ::std::vec::Vec, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///the VPC to which this rule belongs - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcFirewallRule> for VpcFirewallRule { @@ -13888,7 +13888,7 @@ pub mod types { Instance(Name), ///The rule applies to traffic from/to a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///The rule applies to traffic from/to a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -13900,8 +13900,8 @@ pub mod types { } } - impl ::std::convert::From for VpcFirewallRuleHostFilter { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for VpcFirewallRuleHostFilter { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -14216,7 +14216,7 @@ pub mod types { Instance(Name), ///The rule applies to a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///The rule applies to a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -14228,8 +14228,8 @@ pub mod types { } } - impl ::std::convert::From for VpcFirewallRuleTarget { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for VpcFirewallRuleTarget { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -14565,16 +14565,16 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub kind: VpcRouterKind, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the router belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcRouter> for VpcRouter { @@ -14923,7 +14923,7 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The IPv4 subnet CIDR block. pub ipv4_block: Ipv4Net, ///The IPv6 subnet CIDR block. @@ -14931,11 +14931,11 @@ pub mod types { ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the subnet belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcSubnet> for VpcSubnet { @@ -15436,13 +15436,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Certificate { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, service: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Certificate { @@ -15471,7 +15475,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -15501,7 +15505,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -15511,7 +15515,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -15718,11 +15722,15 @@ pub mod types { pub struct ComponentUpdate { component_type: ::std::result::Result, - id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -15751,7 +15759,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -15761,7 +15769,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -15771,7 +15779,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -15885,8 +15893,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativedouble { - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, value: ::std::result::Result, } @@ -15902,7 +15912,7 @@ pub mod types { impl Cumulativedouble { pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -15945,8 +15955,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativeint64 { - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, value: ::std::result::Result, } @@ -15962,7 +15974,7 @@ pub mod types { impl Cumulativeint64 { pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -16064,7 +16076,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAccessTokenRequest { - client_id: ::std::result::Result, + client_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, device_code: ::std::result::Result<::std::string::String, ::std::string::String>, grant_type: ::std::result::Result<::std::string::String, ::std::string::String>, } @@ -16082,7 +16094,7 @@ pub mod types { impl DeviceAccessTokenRequest { pub fn client_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.client_id = value @@ -16137,7 +16149,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthRequest { - client_id: ::std::result::Result, + client_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for DeviceAuthRequest { @@ -16151,7 +16163,7 @@ pub mod types { impl DeviceAuthRequest { pub fn client_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.client_id = value @@ -16230,19 +16242,23 @@ pub mod types { block_size: ::std::result::Result, description: ::std::result::Result<::std::string::String, ::std::string::String>, device_path: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, image_id: - ::std::result::Result<::std::option::Option, ::std::string::String>, + ::std::result::Result<::std::option::Option<::uuid::Uuid>, ::std::string::String>, name: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, size: ::std::result::Result, snapshot_id: - ::std::result::Result<::std::option::Option, ::std::string::String>, + ::std::result::Result<::std::option::Option<::uuid::Uuid>, ::std::string::String>, state: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Disk { @@ -16297,7 +16313,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -16307,7 +16323,7 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::uuid::Uuid>>, T::Error: ::std::fmt::Display, { self.image_id = value @@ -16327,7 +16343,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -16347,7 +16363,7 @@ pub mod types { } pub fn snapshot_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::uuid::Uuid>>, T::Error: ::std::fmt::Display, { self.snapshot_id = value @@ -16367,7 +16383,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -16377,7 +16393,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -16798,7 +16814,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct ExternalIp { - ip: ::std::result::Result, + ip: ::std::result::Result<::std::net::IpAddr, ::std::string::String>, kind: ::std::result::Result, } @@ -16814,7 +16830,7 @@ pub mod types { impl ExternalIp { pub fn ip(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::IpAddr>, T::Error: ::std::fmt::Display, { self.ip = value @@ -17043,7 +17059,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct FleetRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -17061,7 +17077,7 @@ pub mod types { impl FleetRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -17121,13 +17137,17 @@ pub mod types { digest: ::std::result::Result<::std::option::Option, ::std::string::String>, distribution: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, size: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, url: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -17196,7 +17216,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17226,7 +17246,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -17236,7 +17256,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -17472,8 +17492,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Group { display_name: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - silo_id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + silo_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for Group { @@ -17499,7 +17519,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17509,7 +17529,7 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.silo_id = value @@ -17608,8 +17628,10 @@ pub mod types { pub struct Histogramdouble { bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, n_samples: ::std::result::Result, - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Histogramdouble { @@ -17645,7 +17667,7 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -17682,8 +17704,10 @@ pub mod types { pub struct Histogramint64 { bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, n_samples: ::std::result::Result, - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Histogramint64 { @@ -17719,7 +17743,7 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -17755,14 +17779,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct IdentityProvider { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, provider_type: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for IdentityProvider { @@ -17791,7 +17819,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17821,7 +17849,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -17831,7 +17859,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -17941,14 +17969,18 @@ pub mod types { description: ::std::result::Result<::std::string::String, ::std::string::String>, digest: ::std::result::Result<::std::option::Option, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, size: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, url: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -18010,7 +18042,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -18030,7 +18062,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -18050,7 +18082,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -18060,7 +18092,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -18282,18 +18314,24 @@ pub mod types { pub struct Instance { description: ::std::result::Result<::std::string::String, ::std::string::String>, hostname: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, memory: ::std::result::Result, name: ::std::result::Result, ncpus: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, run_state: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - time_run_state_updated: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_run_state_updated: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Instance { @@ -18339,7 +18377,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -18379,7 +18417,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -18399,7 +18437,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -18409,7 +18447,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -18419,7 +18457,7 @@ pub mod types { } pub fn time_run_state_updated(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_run_state_updated = value.try_into().map_err(|e| { @@ -18656,7 +18694,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrate { - dst_sled_id: ::std::result::Result, + dst_sled_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrate { @@ -18670,7 +18708,7 @@ pub mod types { impl InstanceMigrate { pub fn dst_sled_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.dst_sled_id = value @@ -18826,12 +18864,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPool { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for IpPool { @@ -18859,7 +18901,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -18879,7 +18921,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -18889,7 +18931,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -18987,10 +19029,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRange { - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, range: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for IpPoolRange { @@ -19006,7 +19050,7 @@ pub mod types { impl IpPoolRange { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -19026,7 +19070,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -19248,8 +19292,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv4Range { - first: ::std::result::Result, - last: ::std::result::Result, + first: ::std::result::Result<::std::net::Ipv4Addr, ::std::string::String>, + last: ::std::result::Result<::std::net::Ipv4Addr, ::std::string::String>, } impl ::std::default::Default for Ipv4Range { @@ -19264,7 +19308,7 @@ pub mod types { impl Ipv4Range { pub fn first(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv4Addr>, T::Error: ::std::fmt::Display, { self.first = value @@ -19274,7 +19318,7 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv4Addr>, T::Error: ::std::fmt::Display, { self.last = value @@ -19307,8 +19351,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv6Range { - first: ::std::result::Result, - last: ::std::result::Result, + first: ::std::result::Result<::std::net::Ipv6Addr, ::std::string::String>, + last: ::std::result::Result<::std::net::Ipv6Addr, ::std::string::String>, } impl ::std::default::Default for Ipv6Range { @@ -19323,7 +19367,7 @@ pub mod types { impl Ipv6Range { pub fn first(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv6Addr>, T::Error: ::std::fmt::Display, { self.first = value @@ -19333,7 +19377,7 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv6Addr>, T::Error: ::std::fmt::Display, { self.last = value @@ -19367,8 +19411,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Measurement { datum: ::std::result::Result, - timestamp: - ::std::result::Result, ::std::string::String>, + timestamp: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Measurement { @@ -19393,7 +19439,7 @@ pub mod types { } pub fn timestamp(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.timestamp = value @@ -19490,18 +19536,22 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - instance_id: ::std::result::Result, - ip: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + instance_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + ip: ::std::result::Result<::std::net::IpAddr, ::std::string::String>, mac: ::std::result::Result, name: ::std::result::Result, primary: ::std::result::Result, - subnet_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + subnet_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for NetworkInterface { @@ -19535,7 +19585,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -19545,7 +19595,7 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.instance_id = value @@ -19555,7 +19605,7 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::IpAddr>, T::Error: ::std::fmt::Display, { self.ip = value @@ -19595,7 +19645,7 @@ pub mod types { } pub fn subnet_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.subnet_id = value @@ -19605,7 +19655,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -19615,7 +19665,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -19625,7 +19675,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -19678,7 +19728,7 @@ pub mod types { pub struct NetworkInterfaceCreate { description: ::std::result::Result<::std::string::String, ::std::string::String>, ip: ::std::result::Result< - ::std::option::Option, + ::std::option::Option<::std::net::IpAddr>, ::std::string::String, >, name: ::std::result::Result, @@ -19711,7 +19761,7 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::std::net::IpAddr>>, T::Error: ::std::fmt::Display, { self.ip = value @@ -19922,12 +19972,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct Organization { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Organization { @@ -19955,7 +20009,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -19975,7 +20029,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -19985,7 +20039,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20197,7 +20251,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -20215,7 +20269,7 @@ pub mod types { impl OrganizationRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -20337,15 +20391,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDisk { disk_type: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, model: ::std::result::Result<::std::string::String, ::std::string::String>, serial: ::std::result::Result<::std::string::String, ::std::string::String>, sled_id: - ::std::result::Result<::std::option::Option, ::std::string::String>, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + ::std::result::Result<::std::option::Option<::uuid::Uuid>, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } @@ -20377,7 +20435,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -20407,7 +20465,7 @@ pub mod types { } pub fn sled_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::uuid::Uuid>>, T::Error: ::std::fmt::Display, { self.sled_id = value @@ -20417,7 +20475,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -20427,7 +20485,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20546,13 +20604,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Project { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - organization_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + organization_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Project { @@ -20581,7 +20643,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -20601,7 +20663,7 @@ pub mod types { } pub fn organization_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.organization_id = value.try_into().map_err(|e| { @@ -20611,7 +20673,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -20621,7 +20683,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20834,7 +20896,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -20852,7 +20914,7 @@ pub mod types { impl ProjectRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -20969,11 +21031,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct Rack { - id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Rack { @@ -20989,7 +21055,7 @@ pub mod types { impl Rack { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -20999,7 +21065,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -21009,7 +21075,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -21225,15 +21291,19 @@ pub mod types { pub struct RouterRoute { description: ::std::result::Result<::std::string::String, ::std::string::String>, destination: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, kind: ::std::result::Result, name: ::std::result::Result, target: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_router_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_router_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for RouterRoute { @@ -21275,7 +21345,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -21315,7 +21385,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -21325,7 +21395,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -21335,7 +21405,7 @@ pub mod types { } pub fn vpc_router_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_router_id = value.try_into().map_err(|e| { @@ -21622,7 +21692,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct Saga { - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, state: ::std::result::Result, } @@ -21638,7 +21708,7 @@ pub mod types { impl Saga { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -21743,7 +21813,7 @@ pub mod types { pub struct SamlIdentityProvider { acs_url: ::std::result::Result<::std::string::String, ::std::string::String>, description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, idp_entity_id: ::std::result::Result<::std::string::String, ::std::string::String>, name: ::std::result::Result, public_cert: ::std::result::Result< @@ -21754,10 +21824,14 @@ pub mod types { sp_client_id: ::std::result::Result<::std::string::String, ::std::string::String>, technical_contact_email: ::std::result::Result<::std::string::String, ::std::string::String>, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for SamlIdentityProvider { @@ -21803,7 +21877,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -21876,7 +21950,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -21886,7 +21960,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22131,13 +22205,17 @@ pub mod types { pub struct Silo { description: ::std::result::Result<::std::string::String, ::std::string::String>, discoverable: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_mode: ::std::result::Result, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Silo { @@ -22177,7 +22255,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22207,7 +22285,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22217,7 +22295,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22478,7 +22556,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -22496,7 +22574,7 @@ pub mod types { impl SiloRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -22552,12 +22630,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct Sled { baseboard: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, service_address: ::std::result::Result<::std::string::String, ::std::string::String>, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Sled { @@ -22585,7 +22667,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22605,7 +22687,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22615,7 +22697,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22715,16 +22797,20 @@ pub mod types { #[derive(Clone, Debug)] pub struct Snapshot { description: ::std::result::Result<::std::string::String, ::std::string::String>, - disk_id: ::std::result::Result, - id: ::std::result::Result, + disk_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, size: ::std::result::Result, state: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Snapshot { @@ -22756,7 +22842,7 @@ pub mod types { } pub fn disk_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.disk_id = value @@ -22766,7 +22852,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22786,7 +22872,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -22816,7 +22902,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22826,7 +22912,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23054,14 +23140,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKey { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, public_key: ::std::result::Result<::std::string::String, ::std::string::String>, - silo_user_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + silo_user_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for SshKey { @@ -23091,7 +23181,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23121,7 +23211,7 @@ pub mod types { } pub fn silo_user_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.silo_user_id = value.try_into().map_err(|e| { @@ -23131,7 +23221,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23141,7 +23231,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23319,11 +23409,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdate { - id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -23341,7 +23435,7 @@ pub mod types { impl SystemUpdate { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23351,7 +23445,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23361,7 +23455,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23575,8 +23669,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchema { - created: - ::std::result::Result, ::std::string::String>, + created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, datum_type: ::std::result::Result, field_schema: ::std::result::Result<::std::vec::Vec, ::std::string::String>, @@ -23597,7 +23693,7 @@ pub mod types { impl TimeseriesSchema { pub fn created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.created = value @@ -23729,12 +23825,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateDeployment { - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, status: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -23753,7 +23853,7 @@ pub mod types { impl UpdateDeployment { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23773,7 +23873,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23783,7 +23883,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23900,13 +24000,17 @@ pub mod types { component_type: ::std::result::Result, device_id: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, status: ::std::result::Result, system_version: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -23948,7 +24052,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23978,7 +24082,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23988,7 +24092,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24113,8 +24217,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct User { display_name: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - silo_id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + silo_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for User { @@ -24140,7 +24244,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -24150,7 +24254,7 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.silo_id = value @@ -24184,12 +24288,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserBuiltin { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for UserBuiltin { @@ -24217,7 +24325,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -24237,7 +24345,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -24247,7 +24355,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24590,15 +24698,19 @@ pub mod types { pub struct Vpc { description: ::std::result::Result<::std::string::String, ::std::string::String>, dns_name: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, ipv6_prefix: ::std::result::Result, name: ::std::result::Result, - project_id: ::std::result::Result, - system_router_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + system_router_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Vpc { @@ -24640,7 +24752,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -24670,7 +24782,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -24680,7 +24792,7 @@ pub mod types { } pub fn system_router_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.system_router_id = value.try_into().map_err(|e| { @@ -24693,7 +24805,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -24703,7 +24815,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24841,7 +24953,7 @@ pub mod types { direction: ::std::result::Result, filters: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, priority: ::std::result::Result, status: ::std::result::Result, @@ -24849,11 +24961,15 @@ pub mod types { ::std::vec::Vec, ::std::string::String, >, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for VpcFirewallRule { @@ -24918,7 +25034,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -24968,7 +25084,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -24978,7 +25094,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24988,7 +25104,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -25435,14 +25551,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouter { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, kind: ::std::result::Result, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for VpcRouter { @@ -25472,7 +25592,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -25502,7 +25622,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -25512,7 +25632,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -25522,7 +25642,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -25749,15 +25869,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnet { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, ipv4_block: ::std::result::Result, ipv6_block: ::std::result::Result, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for VpcSubnet { @@ -25788,7 +25912,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -25828,7 +25952,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -25838,7 +25962,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -25848,7 +25972,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -29909,7 +30033,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct DiskViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> DiskViewById<'a> { @@ -29922,11 +30046,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -29969,7 +30093,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ImageViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> ImageViewById<'a> { @@ -29982,11 +30106,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30029,7 +30153,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> InstanceViewById<'a> { @@ -30042,11 +30166,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30089,7 +30213,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceNetworkInterfaceViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> InstanceNetworkInterfaceViewById<'a> { @@ -30102,11 +30226,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30151,7 +30275,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct OrganizationViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> OrganizationViewById<'a> { @@ -30164,11 +30288,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30211,7 +30335,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ProjectViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> ProjectViewById<'a> { @@ -30224,11 +30348,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30271,7 +30395,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SnapshotViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> SnapshotViewById<'a> { @@ -30284,11 +30408,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30331,7 +30455,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcRouterRouteViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcRouterRouteViewById<'a> { @@ -30344,11 +30468,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30391,7 +30515,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcRouterViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcRouterViewById<'a> { @@ -30404,11 +30528,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30451,7 +30575,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcSubnetViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcSubnetViewById<'a> { @@ -30464,11 +30588,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30511,7 +30635,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcViewById<'a> { @@ -30524,11 +30648,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30760,7 +30884,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct GroupList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -30777,10 +30901,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -31265,7 +31389,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct OrganizationList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -31282,10 +31406,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -31858,7 +31982,7 @@ pub mod builder { pub struct ProjectList<'a> { client: &'a super::Client, organization_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -31886,10 +32010,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -32376,7 +32500,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -32415,10 +32539,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -32851,10 +32975,10 @@ pub mod builder { project_name: Result, disk_name: Result, metric_name: Result, - end_time: Result>, String>, - limit: Result, String>, + end_time: Result>, String>, + limit: Result, String>, page_token: Result, String>, - start_time: Result>, String>, + start_time: Result>, String>, } impl<'a> DiskMetricsList<'a> { @@ -32914,10 +33038,11 @@ pub mod builder { pub fn end_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.end_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for end_time failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for end_time \ + failed" .to_string() }); self @@ -32925,10 +33050,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -32945,11 +33070,11 @@ pub mod builder { pub fn start_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.start_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for start_time \ - failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for \ + start_time failed" .to_string() }); self @@ -33079,7 +33204,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -33118,10 +33243,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -33552,7 +33677,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -33591,10 +33716,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -34029,7 +34154,7 @@ pub mod builder { organization_name: Result, project_name: Result, instance_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -34079,10 +34204,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -34686,7 +34811,7 @@ pub mod builder { organization_name: Result, project_name: Result, instance_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -34736,10 +34861,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -36098,7 +36223,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -36137,10 +36262,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -36574,7 +36699,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -36613,10 +36738,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -37398,7 +37523,7 @@ pub mod builder { organization_name: Result, project_name: Result, vpc_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -37448,10 +37573,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -38072,7 +38197,7 @@ pub mod builder { project_name: Result, vpc_name: Result, router_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -38133,10 +38258,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -38831,7 +38956,7 @@ pub mod builder { organization_name: Result, project_name: Result, vpc_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -38881,10 +39006,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -39505,7 +39630,7 @@ pub mod builder { project_name: Result, vpc_name: Result, subnet_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -39566,10 +39691,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -39825,7 +39950,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RoleList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -39840,10 +39965,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -40051,7 +40176,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SessionMeGroups<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -40068,10 +40193,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -40193,7 +40318,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SessionSshkeyList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -40210,10 +40335,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -40530,7 +40655,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemImageViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> SystemImageViewById<'a> { @@ -40543,11 +40668,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -40590,7 +40715,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct IpPoolViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> IpPoolViewById<'a> { @@ -40603,11 +40728,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -40650,7 +40775,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SiloViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> SiloViewById<'a> { @@ -40663,11 +40788,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -40710,7 +40835,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct CertificateList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -40727,10 +40852,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41049,7 +41174,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct PhysicalDiskList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41066,10 +41191,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41191,7 +41316,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RackList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41208,10 +41333,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41333,7 +41458,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RackView<'a> { client: &'a super::Client, - rack_id: Result, + rack_id: Result<::uuid::Uuid, String>, } impl<'a> RackView<'a> { @@ -41346,11 +41471,11 @@ pub mod builder { pub fn rack_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.rack_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for rack_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for rack_id failed".to_string()); self } @@ -41393,7 +41518,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SledList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41410,10 +41535,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41535,7 +41660,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SledView<'a> { client: &'a super::Client, - sled_id: Result, + sled_id: Result<::uuid::Uuid, String>, } impl<'a> SledView<'a> { @@ -41548,11 +41673,11 @@ pub mod builder { pub fn sled_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.sled_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for sled_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for sled_id failed".to_string()); self } @@ -41595,8 +41720,8 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SledPhysicalDiskList<'a> { client: &'a super::Client, - sled_id: Result, - limit: Result, String>, + sled_id: Result<::uuid::Uuid, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41614,20 +41739,20 @@ pub mod builder { pub fn sled_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.sled_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for sled_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for sled_id failed".to_string()); self } pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41755,7 +41880,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemImageList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41772,10 +41897,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -42088,7 +42213,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct IpPoolList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -42105,10 +42230,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -42510,7 +42635,7 @@ pub mod builder { pub struct IpPoolRangeList<'a> { client: &'a super::Client, pool_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -42536,10 +42661,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -42850,7 +42975,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct IpPoolServiceRangeList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -42865,10 +42990,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43090,11 +43215,11 @@ pub mod builder { pub struct SystemMetric<'a> { client: &'a super::Client, metric_name: Result, - end_time: Result>, String>, - id: Result, - limit: Result, String>, + end_time: Result>, String>, + id: Result<::uuid::Uuid, String>, + limit: Result, String>, page_token: Result, String>, - start_time: Result>, String>, + start_time: Result>, String>, } impl<'a> SystemMetric<'a> { @@ -43122,10 +43247,11 @@ pub mod builder { pub fn end_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.end_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for end_time failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for end_time \ + failed" .to_string() }); self @@ -43133,20 +43259,20 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43163,11 +43289,11 @@ pub mod builder { pub fn start_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.start_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for start_time \ - failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for \ + start_time failed" .to_string() }); self @@ -43352,7 +43478,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SagaList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -43369,10 +43495,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43494,7 +43620,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SagaView<'a> { client: &'a super::Client, - saga_id: Result, + saga_id: Result<::uuid::Uuid, String>, } impl<'a> SagaView<'a> { @@ -43507,11 +43633,11 @@ pub mod builder { pub fn saga_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.saga_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for saga_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for saga_id failed".to_string()); self } @@ -43554,7 +43680,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SiloList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -43571,10 +43697,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43886,7 +44012,7 @@ pub mod builder { pub struct SiloIdentityProviderList<'a> { client: &'a super::Client, silo_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -43914,10 +44040,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -44140,7 +44266,7 @@ pub mod builder { pub struct LocalIdpUserDelete<'a> { client: &'a super::Client, silo_name: Result, - user_id: Result, + user_id: Result<::uuid::Uuid, String>, } impl<'a> LocalIdpUserDelete<'a> { @@ -44164,11 +44290,11 @@ pub mod builder { pub fn user_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.user_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for user_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for user_id failed".to_string()); self } @@ -44219,7 +44345,7 @@ pub mod builder { pub struct LocalIdpUserSetPassword<'a> { client: &'a super::Client, silo_name: Result, - user_id: Result, + user_id: Result<::uuid::Uuid, String>, body: Result, } @@ -44245,11 +44371,11 @@ pub mod builder { pub fn user_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.user_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for user_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for user_id failed".to_string()); self } @@ -44649,7 +44775,7 @@ pub mod builder { pub struct SiloUsersList<'a> { client: &'a super::Client, silo_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -44677,10 +44803,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -44809,7 +44935,7 @@ pub mod builder { pub struct SiloUserView<'a> { client: &'a super::Client, silo_name: Result, - user_id: Result, + user_id: Result<::uuid::Uuid, String>, } impl<'a> SiloUserView<'a> { @@ -44833,11 +44959,11 @@ pub mod builder { pub fn user_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.user_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for user_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for user_id failed".to_string()); self } @@ -44887,7 +45013,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemUserList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -44904,10 +45030,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45089,7 +45215,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TimeseriesSchemaGet<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -45104,10 +45230,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45215,7 +45341,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct UserList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -45232,10 +45358,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45357,7 +45483,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct DiskListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, project: Result, String>, @@ -45378,10 +45504,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45838,7 +45964,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, project: Result, String>, @@ -45859,10 +45985,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -46320,7 +46446,7 @@ pub mod builder { pub struct InstanceDiskListV1<'a> { client: &'a super::Client, instance: Result, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, project: Result, String>, @@ -46352,10 +46478,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -47441,7 +47567,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct OrganizationListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -47458,10 +47584,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -48033,7 +48159,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ProjectListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, sort_by: Result, String>, @@ -48052,10 +48178,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -48755,7 +48881,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemComponentVersionList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -48772,10 +48898,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -48899,7 +49025,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct UpdateDeploymentsList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -48916,10 +49042,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -49042,7 +49168,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct UpdateDeploymentView<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> UpdateDeploymentView<'a> { @@ -49055,11 +49181,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -49259,7 +49385,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemUpdateList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -49276,10 +49402,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } diff --git a/progenitor-impl/tests/output/src/nexus_builder_tagged.rs b/progenitor-impl/tests/output/src/nexus_builder_tagged.rs index e9b849ec..df23eb2f 100644 --- a/progenitor-impl/tests/output/src/nexus_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/nexus_builder_tagged.rs @@ -609,14 +609,14 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub service: ServiceUsingCertificate, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Certificate> for Certificate { @@ -809,11 +809,11 @@ pub mod types { pub struct ComponentUpdate { pub component_type: UpdateableComponentType, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -908,7 +908,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Cumulativedouble { - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, pub value: f64, } @@ -951,7 +951,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Cumulativeint64 { - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, pub value: i64, } @@ -1421,7 +1421,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAccessTokenRequest { - pub client_id: uuid::Uuid, + pub client_id: ::uuid::Uuid, pub device_code: ::std::string::String, pub grant_type: ::std::string::String, } @@ -1459,7 +1459,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAuthRequest { - pub client_id: uuid::Uuid, + pub client_id: ::uuid::Uuid, } impl ::std::convert::From<&DeviceAuthRequest> for DeviceAuthRequest { @@ -1642,20 +1642,20 @@ pub mod types { pub description: ::std::string::String, pub device_path: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub image_id: ::std::option::Option, + pub image_id: ::std::option::Option<::uuid::Uuid>, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub size: ByteCount, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub snapshot_id: ::std::option::Option, + pub snapshot_id: ::std::option::Option<::uuid::Uuid>, pub state: DiskState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Disk> for Disk { @@ -2075,13 +2075,13 @@ pub mod types { }, ///Create a disk from a disk snapshot #[serde(rename = "snapshot")] - Snapshot { snapshot_id: uuid::Uuid }, + Snapshot { snapshot_id: ::uuid::Uuid }, ///Create a disk from a project image #[serde(rename = "image")] - Image { image_id: uuid::Uuid }, + Image { image_id: ::uuid::Uuid }, ///Create a disk from a global image #[serde(rename = "global_image")] - GlobalImage { image_id: uuid::Uuid }, + GlobalImage { image_id: ::uuid::Uuid }, } impl ::std::convert::From<&Self> for DiskSource { @@ -2231,13 +2231,13 @@ pub mod types { Detached, ///Disk is being attached to the given Instance #[serde(rename = "attaching")] - Attaching(uuid::Uuid), + Attaching(::uuid::Uuid), ///Disk is attached to the given Instance #[serde(rename = "attached")] - Attached(uuid::Uuid), + Attached(::uuid::Uuid), ///Disk is being detached from the given Instance #[serde(rename = "detaching")] - Detaching(uuid::Uuid), + Detaching(::uuid::Uuid), #[serde(rename = "destroyed")] Destroyed, #[serde(rename = "faulted")] @@ -2372,7 +2372,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ExternalIp { - pub ip: std::net::IpAddr, + pub ip: ::std::net::IpAddr, pub kind: IpKind, } @@ -2914,7 +2914,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct FleetRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: FleetRole, } @@ -3042,15 +3042,15 @@ pub mod types { ///Image distribution pub distribution: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///total size in bytes pub size: ByteCount, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///URL source of this image, if any #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, @@ -3233,9 +3233,9 @@ pub mod types { pub struct Group { ///Human-readable name that can identify the group pub display_name: ::std::string::String, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Uuid of the silo to which this group belongs - pub silo_id: uuid::Uuid, + pub silo_id: ::uuid::Uuid, } impl ::std::convert::From<&Group> for Group { @@ -3411,7 +3411,7 @@ pub mod types { pub struct Histogramdouble { pub bins: ::std::vec::Vec, pub n_samples: u64, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Histogramdouble> for Histogramdouble { @@ -3535,7 +3535,7 @@ pub mod types { pub struct Histogramint64 { pub bins: ::std::vec::Vec, pub n_samples: u64, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Histogramint64> for Histogramint64 { @@ -3702,15 +3702,15 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///Identity provider type pub provider_type: IdentityProviderType, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IdentityProvider> for IdentityProvider { @@ -4121,17 +4121,17 @@ pub mod types { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub digest: ::std::option::Option, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///The project the disk belongs to - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, ///total size in bytes pub size: ByteCount, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///URL source of this image, if any #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, @@ -4340,7 +4340,7 @@ pub mod types { #[serde(rename = "url")] Url { url: ::std::string::String }, #[serde(rename = "snapshot")] - Snapshot { id: uuid::Uuid }, + Snapshot { id: ::uuid::Uuid }, #[serde(rename = "you_can_boot_anything_as_long_as_its_alpine")] YouCanBootAnythingAsLongAsItsAlpine, } @@ -4445,7 +4445,7 @@ pub mod types { ///RFC1035-compliant hostname for the Instance. pub hostname: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///memory allocated for this Instance pub memory: ByteCount, ///unique, mutable, user-controlled identifier for each resource @@ -4453,13 +4453,13 @@ pub mod types { ///number of CPUs allocated for this Instance pub ncpus: InstanceCpuCount, ///id for the project containing this Instance - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub run_state: InstanceState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, - pub time_run_state_updated: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, + pub time_run_state_updated: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Instance> for Instance { @@ -4806,7 +4806,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrate { - pub dst_sled_id: uuid::Uuid, + pub dst_sled_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrate> for InstanceMigrate { @@ -5481,13 +5481,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IpPool> for IpPool { @@ -5576,9 +5576,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolRange { - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub range: IpRange, - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IpPoolRange> for IpPoolRange { @@ -5943,8 +5943,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Ipv4Range { - pub first: std::net::Ipv4Addr, - pub last: std::net::Ipv4Addr, + pub first: ::std::net::Ipv4Addr, + pub last: ::std::net::Ipv4Addr, } impl ::std::convert::From<&Ipv4Range> for Ipv4Range { @@ -6089,8 +6089,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Ipv6Range { - pub first: std::net::Ipv6Addr, - pub last: std::net::Ipv6Addr, + pub first: ::std::net::Ipv6Addr, + pub last: ::std::net::Ipv6Addr, } impl ::std::convert::From<&Ipv6Range> for Ipv6Range { @@ -6333,7 +6333,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Measurement { pub datum: Datum, - pub timestamp: chrono::DateTime, + pub timestamp: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Measurement> for Measurement { @@ -6523,7 +6523,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum NameOrId { - Id(uuid::Uuid), + Id(::uuid::Uuid), Name(Name), } @@ -6580,8 +6580,8 @@ pub mod types { } } - impl ::std::convert::From for NameOrId { - fn from(value: uuid::Uuid) -> Self { + impl ::std::convert::From<::uuid::Uuid> for NameOrId { + fn from(value: ::uuid::Uuid) -> Self { Self::Id(value) } } @@ -6886,11 +6886,11 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The Instance to which the interface belongs. - pub instance_id: uuid::Uuid, + pub instance_id: ::uuid::Uuid, ///The IP address assigned to this interface. - pub ip: std::net::IpAddr, + pub ip: ::std::net::IpAddr, ///The MAC address assigned to this interface. pub mac: MacAddr, ///unique, mutable, user-controlled identifier for each resource @@ -6899,13 +6899,13 @@ pub mod types { /// attached. pub primary: bool, ///The subnet to which the interface belongs. - pub subnet_id: uuid::Uuid, + pub subnet_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the interface belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&NetworkInterface> for NetworkInterface { @@ -6977,7 +6977,7 @@ pub mod types { ///The IP address for the interface. One will be auto-assigned if not /// provided. #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub ip: ::std::option::Option, + pub ip: ::std::option::Option<::std::net::IpAddr>, pub name: Name, ///The VPC Subnet in which to create the interface. pub subnet_name: Name, @@ -7268,13 +7268,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Organization> for Organization { @@ -7561,7 +7561,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: OrganizationRole, } @@ -7787,16 +7787,16 @@ pub mod types { pub struct PhysicalDisk { pub disk_type: PhysicalDiskType, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub model: ::std::string::String, pub serial: ::std::string::String, ///The sled to which this disk is attached, if any. #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub sled_id: ::std::option::Option, + pub sled_id: ::std::option::Option<::uuid::Uuid>, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub vendor: ::std::string::String, } @@ -8007,14 +8007,14 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub organization_id: uuid::Uuid, + pub organization_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Project> for Project { @@ -8301,7 +8301,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: ProjectRole, } @@ -8419,11 +8419,11 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Rack { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Rack> for Rack { @@ -8781,7 +8781,7 @@ pub mod types { pub enum RouteDestination { ///Route applies to traffic destined for a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///Route applies to traffic destined for a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -8799,8 +8799,8 @@ pub mod types { } } - impl ::std::convert::From for RouteDestination { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for RouteDestination { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -8926,7 +8926,7 @@ pub mod types { pub enum RouteTarget { ///Forward traffic to a particular IP address. #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///Forward traffic to a VPC #[serde(rename = "vpc")] Vpc(Name), @@ -8947,8 +8947,8 @@ pub mod types { } } - impl ::std::convert::From for RouteTarget { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for RouteTarget { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -9034,18 +9034,18 @@ pub mod types { pub description: ::std::string::String, pub destination: RouteDestination, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Describes the kind of router. Set at creation. `read-only` pub kind: RouterRouteKind, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub target: RouteTarget, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC Router to which the route belongs. - pub vpc_router_id: uuid::Uuid, + pub vpc_router_id: ::uuid::Uuid, } impl ::std::convert::From<&RouterRoute> for RouterRoute { @@ -9393,7 +9393,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Saga { - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub state: SagaState, } @@ -9752,7 +9752,7 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///idp's entity id pub idp_entity_id: ::std::string::String, ///unique, mutable, user-controlled identifier for each resource @@ -9768,9 +9768,9 @@ pub mod types { ///customer's technical contact for saml configuration pub technical_contact_email: ::std::string::String, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&SamlIdentityProvider> for SamlIdentityProvider { @@ -10151,15 +10151,15 @@ pub mod types { /// it will not be part of the "list all silos" output. pub discoverable: bool, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///How users and groups are managed in this Silo pub identity_mode: SiloIdentityMode, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Silo> for Silo { @@ -10587,7 +10587,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SiloRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: SiloRole, } @@ -10650,12 +10650,12 @@ pub mod types { pub struct Sled { pub baseboard: Baseboard, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub service_address: ::std::string::String, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Sled> for Sled { @@ -10793,18 +10793,18 @@ pub mod types { pub struct Snapshot { ///human-readable free-form text about a resource pub description: ::std::string::String, - pub disk_id: uuid::Uuid, + pub disk_id: ::uuid::Uuid, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub size: ByteCount, pub state: SnapshotState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Snapshot> for Snapshot { @@ -11120,17 +11120,17 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` pub public_key: ::std::string::String, ///The user to whom this key belongs - pub silo_user_id: uuid::Uuid, + pub silo_user_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&SshKey> for SshKey { @@ -11380,11 +11380,11 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SystemUpdate { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -11666,7 +11666,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TimeseriesSchema { - pub created: chrono::DateTime, + pub created: ::chrono::DateTime<::chrono::offset::Utc>, pub datum_type: DatumType, pub field_schema: ::std::vec::Vec, pub timeseries_name: TimeseriesName, @@ -11783,12 +11783,12 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateDeployment { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub status: UpdateStatus, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -12027,13 +12027,13 @@ pub mod types { pub component_type: UpdateableComponentType, pub device_id: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub status: UpdateStatus, pub system_version: SemverVersion, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -12270,9 +12270,9 @@ pub mod types { pub struct User { ///Human-readable name that can identify the user pub display_name: ::std::string::String, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Uuid of the silo to which this user belongs - pub silo_id: uuid::Uuid, + pub silo_id: ::uuid::Uuid, } impl ::std::convert::From<&User> for User { @@ -12341,13 +12341,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&UserBuiltin> for UserBuiltin { @@ -12850,19 +12850,19 @@ pub mod types { ///The name used for the VPC in DNS. pub dns_name: Name, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The unique local IPv6 address range for subnets in this VPC pub ipv6_prefix: Ipv6Net, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///id for the project containing this VPC - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, ///id for the system router where subnet default routes are registered - pub system_router_id: uuid::Uuid, + pub system_router_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Vpc> for Vpc { @@ -13070,7 +13070,7 @@ pub mod types { ///reductions on the scope of the rule pub filters: VpcFirewallRuleFilter, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///the relative priority of this rule @@ -13080,11 +13080,11 @@ pub mod types { ///list of sets of instances that the rule applies to pub targets: ::std::vec::Vec, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///the VPC to which this rule belongs - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcFirewallRule> for VpcFirewallRule { @@ -13482,7 +13482,7 @@ pub mod types { Instance(Name), ///The rule applies to traffic from/to a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///The rule applies to traffic from/to a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -13494,8 +13494,8 @@ pub mod types { } } - impl ::std::convert::From for VpcFirewallRuleHostFilter { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for VpcFirewallRuleHostFilter { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -13806,7 +13806,7 @@ pub mod types { Instance(Name), ///The rule applies to a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///The rule applies to a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -13818,8 +13818,8 @@ pub mod types { } } - impl ::std::convert::From for VpcFirewallRuleTarget { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for VpcFirewallRuleTarget { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -14145,16 +14145,16 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub kind: VpcRouterKind, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the router belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcRouter> for VpcRouter { @@ -14494,7 +14494,7 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The IPv4 subnet CIDR block. pub ipv4_block: Ipv4Net, ///The IPv6 subnet CIDR block. @@ -14502,11 +14502,11 @@ pub mod types { ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the subnet belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcSubnet> for VpcSubnet { @@ -14999,13 +14999,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Certificate { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, service: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Certificate { @@ -15034,7 +15038,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -15064,7 +15068,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -15074,7 +15078,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -15281,11 +15285,15 @@ pub mod types { pub struct ComponentUpdate { component_type: ::std::result::Result, - id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -15314,7 +15322,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -15324,7 +15332,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -15334,7 +15342,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -15448,8 +15456,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativedouble { - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, value: ::std::result::Result, } @@ -15465,7 +15475,7 @@ pub mod types { impl Cumulativedouble { pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -15508,8 +15518,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativeint64 { - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, value: ::std::result::Result, } @@ -15525,7 +15537,7 @@ pub mod types { impl Cumulativeint64 { pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -15627,7 +15639,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAccessTokenRequest { - client_id: ::std::result::Result, + client_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, device_code: ::std::result::Result<::std::string::String, ::std::string::String>, grant_type: ::std::result::Result<::std::string::String, ::std::string::String>, } @@ -15645,7 +15657,7 @@ pub mod types { impl DeviceAccessTokenRequest { pub fn client_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.client_id = value @@ -15700,7 +15712,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthRequest { - client_id: ::std::result::Result, + client_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for DeviceAuthRequest { @@ -15714,7 +15726,7 @@ pub mod types { impl DeviceAuthRequest { pub fn client_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.client_id = value @@ -15793,19 +15805,23 @@ pub mod types { block_size: ::std::result::Result, description: ::std::result::Result<::std::string::String, ::std::string::String>, device_path: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, image_id: - ::std::result::Result<::std::option::Option, ::std::string::String>, + ::std::result::Result<::std::option::Option<::uuid::Uuid>, ::std::string::String>, name: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, size: ::std::result::Result, snapshot_id: - ::std::result::Result<::std::option::Option, ::std::string::String>, + ::std::result::Result<::std::option::Option<::uuid::Uuid>, ::std::string::String>, state: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Disk { @@ -15860,7 +15876,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -15870,7 +15886,7 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::uuid::Uuid>>, T::Error: ::std::fmt::Display, { self.image_id = value @@ -15890,7 +15906,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -15910,7 +15926,7 @@ pub mod types { } pub fn snapshot_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::uuid::Uuid>>, T::Error: ::std::fmt::Display, { self.snapshot_id = value @@ -15930,7 +15946,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -15940,7 +15956,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -16361,7 +16377,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct ExternalIp { - ip: ::std::result::Result, + ip: ::std::result::Result<::std::net::IpAddr, ::std::string::String>, kind: ::std::result::Result, } @@ -16377,7 +16393,7 @@ pub mod types { impl ExternalIp { pub fn ip(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::IpAddr>, T::Error: ::std::fmt::Display, { self.ip = value @@ -16606,7 +16622,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct FleetRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -16624,7 +16640,7 @@ pub mod types { impl FleetRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -16684,13 +16700,17 @@ pub mod types { digest: ::std::result::Result<::std::option::Option, ::std::string::String>, distribution: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, size: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, url: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -16759,7 +16779,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -16789,7 +16809,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -16799,7 +16819,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -17035,8 +17055,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Group { display_name: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - silo_id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + silo_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for Group { @@ -17062,7 +17082,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17072,7 +17092,7 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.silo_id = value @@ -17171,8 +17191,10 @@ pub mod types { pub struct Histogramdouble { bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, n_samples: ::std::result::Result, - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Histogramdouble { @@ -17208,7 +17230,7 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -17245,8 +17267,10 @@ pub mod types { pub struct Histogramint64 { bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, n_samples: ::std::result::Result, - start_time: - ::std::result::Result, ::std::string::String>, + start_time: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Histogramint64 { @@ -17282,7 +17306,7 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.start_time = value @@ -17318,14 +17342,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct IdentityProvider { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, provider_type: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for IdentityProvider { @@ -17354,7 +17382,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17384,7 +17412,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -17394,7 +17422,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -17504,14 +17532,18 @@ pub mod types { description: ::std::result::Result<::std::string::String, ::std::string::String>, digest: ::std::result::Result<::std::option::Option, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, size: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, url: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -17573,7 +17605,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17593,7 +17625,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -17613,7 +17645,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -17623,7 +17655,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -17845,18 +17877,24 @@ pub mod types { pub struct Instance { description: ::std::result::Result<::std::string::String, ::std::string::String>, hostname: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, memory: ::std::result::Result, name: ::std::result::Result, ncpus: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, run_state: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - time_run_state_updated: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_run_state_updated: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Instance { @@ -17902,7 +17940,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -17942,7 +17980,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -17962,7 +18000,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -17972,7 +18010,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -17982,7 +18020,7 @@ pub mod types { } pub fn time_run_state_updated(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_run_state_updated = value.try_into().map_err(|e| { @@ -18219,7 +18257,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrate { - dst_sled_id: ::std::result::Result, + dst_sled_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrate { @@ -18233,7 +18271,7 @@ pub mod types { impl InstanceMigrate { pub fn dst_sled_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.dst_sled_id = value @@ -18389,12 +18427,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPool { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for IpPool { @@ -18422,7 +18464,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -18442,7 +18484,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -18452,7 +18494,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -18550,10 +18592,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRange { - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, range: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for IpPoolRange { @@ -18569,7 +18613,7 @@ pub mod types { impl IpPoolRange { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -18589,7 +18633,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -18811,8 +18855,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv4Range { - first: ::std::result::Result, - last: ::std::result::Result, + first: ::std::result::Result<::std::net::Ipv4Addr, ::std::string::String>, + last: ::std::result::Result<::std::net::Ipv4Addr, ::std::string::String>, } impl ::std::default::Default for Ipv4Range { @@ -18827,7 +18871,7 @@ pub mod types { impl Ipv4Range { pub fn first(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv4Addr>, T::Error: ::std::fmt::Display, { self.first = value @@ -18837,7 +18881,7 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv4Addr>, T::Error: ::std::fmt::Display, { self.last = value @@ -18870,8 +18914,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv6Range { - first: ::std::result::Result, - last: ::std::result::Result, + first: ::std::result::Result<::std::net::Ipv6Addr, ::std::string::String>, + last: ::std::result::Result<::std::net::Ipv6Addr, ::std::string::String>, } impl ::std::default::Default for Ipv6Range { @@ -18886,7 +18930,7 @@ pub mod types { impl Ipv6Range { pub fn first(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv6Addr>, T::Error: ::std::fmt::Display, { self.first = value @@ -18896,7 +18940,7 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::Ipv6Addr>, T::Error: ::std::fmt::Display, { self.last = value @@ -18930,8 +18974,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Measurement { datum: ::std::result::Result, - timestamp: - ::std::result::Result, ::std::string::String>, + timestamp: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Measurement { @@ -18956,7 +19002,7 @@ pub mod types { } pub fn timestamp(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.timestamp = value @@ -19053,18 +19099,22 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - instance_id: ::std::result::Result, - ip: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + instance_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + ip: ::std::result::Result<::std::net::IpAddr, ::std::string::String>, mac: ::std::result::Result, name: ::std::result::Result, primary: ::std::result::Result, - subnet_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + subnet_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for NetworkInterface { @@ -19098,7 +19148,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -19108,7 +19158,7 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.instance_id = value @@ -19118,7 +19168,7 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::std::net::IpAddr>, T::Error: ::std::fmt::Display, { self.ip = value @@ -19158,7 +19208,7 @@ pub mod types { } pub fn subnet_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.subnet_id = value @@ -19168,7 +19218,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -19178,7 +19228,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -19188,7 +19238,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -19241,7 +19291,7 @@ pub mod types { pub struct NetworkInterfaceCreate { description: ::std::result::Result<::std::string::String, ::std::string::String>, ip: ::std::result::Result< - ::std::option::Option, + ::std::option::Option<::std::net::IpAddr>, ::std::string::String, >, name: ::std::result::Result, @@ -19274,7 +19324,7 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::std::net::IpAddr>>, T::Error: ::std::fmt::Display, { self.ip = value @@ -19485,12 +19535,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct Organization { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Organization { @@ -19518,7 +19572,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -19538,7 +19592,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -19548,7 +19602,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -19760,7 +19814,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -19778,7 +19832,7 @@ pub mod types { impl OrganizationRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -19900,15 +19954,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDisk { disk_type: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, model: ::std::result::Result<::std::string::String, ::std::string::String>, serial: ::std::result::Result<::std::string::String, ::std::string::String>, sled_id: - ::std::result::Result<::std::option::Option, ::std::string::String>, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + ::std::result::Result<::std::option::Option<::uuid::Uuid>, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } @@ -19940,7 +19998,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -19970,7 +20028,7 @@ pub mod types { } pub fn sled_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto<::std::option::Option>, + T: ::std::convert::TryInto<::std::option::Option<::uuid::Uuid>>, T::Error: ::std::fmt::Display, { self.sled_id = value @@ -19980,7 +20038,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -19990,7 +20048,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20109,13 +20167,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Project { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - organization_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + organization_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Project { @@ -20144,7 +20206,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -20164,7 +20226,7 @@ pub mod types { } pub fn organization_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.organization_id = value.try_into().map_err(|e| { @@ -20174,7 +20236,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -20184,7 +20246,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20397,7 +20459,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -20415,7 +20477,7 @@ pub mod types { impl ProjectRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -20532,11 +20594,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct Rack { - id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Rack { @@ -20552,7 +20618,7 @@ pub mod types { impl Rack { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -20562,7 +20628,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -20572,7 +20638,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20788,15 +20854,19 @@ pub mod types { pub struct RouterRoute { description: ::std::result::Result<::std::string::String, ::std::string::String>, destination: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, kind: ::std::result::Result, name: ::std::result::Result, target: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_router_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_router_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for RouterRoute { @@ -20838,7 +20908,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -20878,7 +20948,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -20888,7 +20958,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -20898,7 +20968,7 @@ pub mod types { } pub fn vpc_router_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_router_id = value.try_into().map_err(|e| { @@ -21185,7 +21255,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct Saga { - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, state: ::std::result::Result, } @@ -21201,7 +21271,7 @@ pub mod types { impl Saga { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -21306,7 +21376,7 @@ pub mod types { pub struct SamlIdentityProvider { acs_url: ::std::result::Result<::std::string::String, ::std::string::String>, description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, idp_entity_id: ::std::result::Result<::std::string::String, ::std::string::String>, name: ::std::result::Result, public_cert: ::std::result::Result< @@ -21317,10 +21387,14 @@ pub mod types { sp_client_id: ::std::result::Result<::std::string::String, ::std::string::String>, technical_contact_email: ::std::result::Result<::std::string::String, ::std::string::String>, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for SamlIdentityProvider { @@ -21366,7 +21440,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -21439,7 +21513,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -21449,7 +21523,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -21694,13 +21768,17 @@ pub mod types { pub struct Silo { description: ::std::result::Result<::std::string::String, ::std::string::String>, discoverable: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_mode: ::std::result::Result, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Silo { @@ -21740,7 +21818,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -21770,7 +21848,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -21780,7 +21858,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22041,7 +22119,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloRoleRoleAssignment { - identity_id: ::std::result::Result, + identity_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, identity_type: ::std::result::Result, role_name: ::std::result::Result, } @@ -22059,7 +22137,7 @@ pub mod types { impl SiloRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.identity_id = value @@ -22115,12 +22193,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct Sled { baseboard: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, service_address: ::std::result::Result<::std::string::String, ::std::string::String>, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Sled { @@ -22148,7 +22230,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22168,7 +22250,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22178,7 +22260,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22278,16 +22360,20 @@ pub mod types { #[derive(Clone, Debug)] pub struct Snapshot { description: ::std::result::Result<::std::string::String, ::std::string::String>, - disk_id: ::std::result::Result, - id: ::std::result::Result, + disk_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - project_id: ::std::result::Result, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, size: ::std::result::Result, state: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Snapshot { @@ -22319,7 +22405,7 @@ pub mod types { } pub fn disk_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.disk_id = value @@ -22329,7 +22415,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22349,7 +22435,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -22379,7 +22465,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22389,7 +22475,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22617,14 +22703,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKey { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, public_key: ::std::result::Result<::std::string::String, ::std::string::String>, - silo_user_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + silo_user_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for SshKey { @@ -22654,7 +22744,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22684,7 +22774,7 @@ pub mod types { } pub fn silo_user_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.silo_user_id = value.try_into().map_err(|e| { @@ -22694,7 +22784,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22704,7 +22794,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -22882,11 +22972,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdate { - id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -22904,7 +22998,7 @@ pub mod types { impl SystemUpdate { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -22914,7 +23008,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -22924,7 +23018,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23138,8 +23232,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchema { - created: - ::std::result::Result, ::std::string::String>, + created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, datum_type: ::std::result::Result, field_schema: ::std::result::Result<::std::vec::Vec, ::std::string::String>, @@ -23160,7 +23256,7 @@ pub mod types { impl TimeseriesSchema { pub fn created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.created = value @@ -23292,12 +23388,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateDeployment { - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, status: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -23316,7 +23416,7 @@ pub mod types { impl UpdateDeployment { pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23336,7 +23436,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23346,7 +23446,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23463,13 +23563,17 @@ pub mod types { component_type: ::std::result::Result, device_id: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, status: ::std::result::Result, system_version: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, version: ::std::result::Result, } @@ -23511,7 +23615,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23541,7 +23645,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23551,7 +23655,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -23676,8 +23780,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct User { display_name: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - silo_id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + silo_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for User { @@ -23703,7 +23807,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23713,7 +23817,7 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.silo_id = value @@ -23747,12 +23851,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserBuiltin { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for UserBuiltin { @@ -23780,7 +23888,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -23800,7 +23908,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -23810,7 +23918,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24153,15 +24261,19 @@ pub mod types { pub struct Vpc { description: ::std::result::Result<::std::string::String, ::std::string::String>, dns_name: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, ipv6_prefix: ::std::result::Result, name: ::std::result::Result, - project_id: ::std::result::Result, - system_router_id: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, + project_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + system_router_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, } impl ::std::default::Default for Vpc { @@ -24203,7 +24315,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -24233,7 +24345,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.project_id = value @@ -24243,7 +24355,7 @@ pub mod types { } pub fn system_router_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.system_router_id = value.try_into().map_err(|e| { @@ -24256,7 +24368,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -24266,7 +24378,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24404,7 +24516,7 @@ pub mod types { direction: ::std::result::Result, filters: ::std::result::Result, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, name: ::std::result::Result, priority: ::std::result::Result, status: ::std::result::Result, @@ -24412,11 +24524,15 @@ pub mod types { ::std::vec::Vec, ::std::string::String, >, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for VpcFirewallRule { @@ -24481,7 +24597,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -24531,7 +24647,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -24541,7 +24657,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -24551,7 +24667,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -24998,14 +25114,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouter { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, kind: ::std::result::Result, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for VpcRouter { @@ -25035,7 +25155,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -25065,7 +25185,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -25075,7 +25195,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -25085,7 +25205,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -25312,15 +25432,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnet { description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, ipv4_block: ::std::result::Result, ipv6_block: ::std::result::Result, name: ::std::result::Result, - time_created: - ::std::result::Result, ::std::string::String>, - time_modified: - ::std::result::Result, ::std::string::String>, - vpc_id: ::std::result::Result, + time_created: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + time_modified: ::std::result::Result< + ::chrono::DateTime<::chrono::offset::Utc>, + ::std::string::String, + >, + vpc_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for VpcSubnet { @@ -25351,7 +25475,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -25391,7 +25515,7 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { @@ -25401,7 +25525,7 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: ::std::convert::TryInto>, + T: ::std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { @@ -25411,7 +25535,7 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.vpc_id = value @@ -29758,7 +29882,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct DiskViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> DiskViewById<'a> { @@ -29771,11 +29895,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -29818,7 +29942,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ImageViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> ImageViewById<'a> { @@ -29831,11 +29955,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -29878,7 +30002,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> InstanceViewById<'a> { @@ -29891,11 +30015,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -29939,7 +30063,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceNetworkInterfaceViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> InstanceNetworkInterfaceViewById<'a> { @@ -29952,11 +30076,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30001,7 +30125,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct OrganizationViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> OrganizationViewById<'a> { @@ -30014,11 +30138,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30061,7 +30185,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ProjectViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> ProjectViewById<'a> { @@ -30074,11 +30198,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30121,7 +30245,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SnapshotViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> SnapshotViewById<'a> { @@ -30134,11 +30258,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30181,7 +30305,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcRouterRouteViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcRouterRouteViewById<'a> { @@ -30194,11 +30318,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30241,7 +30365,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcRouterViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcRouterViewById<'a> { @@ -30254,11 +30378,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30301,7 +30425,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcSubnetViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcSubnetViewById<'a> { @@ -30314,11 +30438,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30361,7 +30485,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct VpcViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> VpcViewById<'a> { @@ -30374,11 +30498,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -30610,7 +30734,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct GroupList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -30627,10 +30751,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -31115,7 +31239,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct OrganizationList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -31132,10 +31256,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -31708,7 +31832,7 @@ pub mod builder { pub struct ProjectList<'a> { client: &'a super::Client, organization_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -31736,10 +31860,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -32226,7 +32350,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -32265,10 +32389,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -32701,10 +32825,10 @@ pub mod builder { project_name: Result, disk_name: Result, metric_name: Result, - end_time: Result>, String>, - limit: Result, String>, + end_time: Result>, String>, + limit: Result, String>, page_token: Result, String>, - start_time: Result>, String>, + start_time: Result>, String>, } impl<'a> DiskMetricsList<'a> { @@ -32764,10 +32888,11 @@ pub mod builder { pub fn end_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.end_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for end_time failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for end_time \ + failed" .to_string() }); self @@ -32775,10 +32900,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -32795,11 +32920,11 @@ pub mod builder { pub fn start_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.start_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for start_time \ - failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for \ + start_time failed" .to_string() }); self @@ -32929,7 +33054,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -32968,10 +33093,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -33402,7 +33527,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -33441,10 +33566,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -33879,7 +34004,7 @@ pub mod builder { organization_name: Result, project_name: Result, instance_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -33929,10 +34054,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -34536,7 +34661,7 @@ pub mod builder { organization_name: Result, project_name: Result, instance_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -34586,10 +34711,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -35948,7 +36073,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -35987,10 +36112,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -36424,7 +36549,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, project_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -36463,10 +36588,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -37248,7 +37373,7 @@ pub mod builder { organization_name: Result, project_name: Result, vpc_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -37298,10 +37423,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -37922,7 +38047,7 @@ pub mod builder { project_name: Result, vpc_name: Result, router_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -37983,10 +38108,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -38681,7 +38806,7 @@ pub mod builder { organization_name: Result, project_name: Result, vpc_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -38731,10 +38856,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -39355,7 +39480,7 @@ pub mod builder { project_name: Result, vpc_name: Result, subnet_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -39416,10 +39541,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -39675,7 +39800,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RoleList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -39690,10 +39815,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -39901,7 +40026,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SessionMeGroups<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -39918,10 +40043,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -40043,7 +40168,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SessionSshkeyList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -40060,10 +40185,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -40380,7 +40505,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemImageViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> SystemImageViewById<'a> { @@ -40393,11 +40518,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -40440,7 +40565,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct IpPoolViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> IpPoolViewById<'a> { @@ -40453,11 +40578,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -40500,7 +40625,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SiloViewById<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> SiloViewById<'a> { @@ -40513,11 +40638,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -40560,7 +40685,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct CertificateList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -40577,10 +40702,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -40899,7 +41024,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct PhysicalDiskList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -40916,10 +41041,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41041,7 +41166,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RackList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41058,10 +41183,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41183,7 +41308,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RackView<'a> { client: &'a super::Client, - rack_id: Result, + rack_id: Result<::uuid::Uuid, String>, } impl<'a> RackView<'a> { @@ -41196,11 +41321,11 @@ pub mod builder { pub fn rack_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.rack_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for rack_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for rack_id failed".to_string()); self } @@ -41243,7 +41368,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SledList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41260,10 +41385,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41385,7 +41510,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SledView<'a> { client: &'a super::Client, - sled_id: Result, + sled_id: Result<::uuid::Uuid, String>, } impl<'a> SledView<'a> { @@ -41398,11 +41523,11 @@ pub mod builder { pub fn sled_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.sled_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for sled_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for sled_id failed".to_string()); self } @@ -41445,8 +41570,8 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SledPhysicalDiskList<'a> { client: &'a super::Client, - sled_id: Result, - limit: Result, String>, + sled_id: Result<::uuid::Uuid, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41464,20 +41589,20 @@ pub mod builder { pub fn sled_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.sled_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for sled_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for sled_id failed".to_string()); self } pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41605,7 +41730,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemImageList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41622,10 +41747,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -41938,7 +42063,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct IpPoolList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -41955,10 +42080,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -42360,7 +42485,7 @@ pub mod builder { pub struct IpPoolRangeList<'a> { client: &'a super::Client, pool_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -42386,10 +42511,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -42700,7 +42825,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct IpPoolServiceRangeList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -42715,10 +42840,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -42940,11 +43065,11 @@ pub mod builder { pub struct SystemMetric<'a> { client: &'a super::Client, metric_name: Result, - end_time: Result>, String>, - id: Result, - limit: Result, String>, + end_time: Result>, String>, + id: Result<::uuid::Uuid, String>, + limit: Result, String>, page_token: Result, String>, - start_time: Result>, String>, + start_time: Result>, String>, } impl<'a> SystemMetric<'a> { @@ -42972,10 +43097,11 @@ pub mod builder { pub fn end_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.end_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for end_time failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for end_time \ + failed" .to_string() }); self @@ -42983,20 +43109,20 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43013,11 +43139,11 @@ pub mod builder { pub fn start_time(mut self, value: V) -> Self where - V: std::convert::TryInto>, + V: std::convert::TryInto<::chrono::DateTime<::chrono::offset::Utc>>, { self.start_time = value.try_into().map(Some).map_err(|_| { - "conversion to `chrono :: DateTime < chrono :: offset :: Utc >` for start_time \ - failed" + "conversion to `:: chrono :: DateTime < :: chrono :: offset :: Utc >` for \ + start_time failed" .to_string() }); self @@ -43202,7 +43328,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SagaList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -43219,10 +43345,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43344,7 +43470,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SagaView<'a> { client: &'a super::Client, - saga_id: Result, + saga_id: Result<::uuid::Uuid, String>, } impl<'a> SagaView<'a> { @@ -43357,11 +43483,11 @@ pub mod builder { pub fn saga_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.saga_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for saga_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for saga_id failed".to_string()); self } @@ -43404,7 +43530,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SiloList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -43421,10 +43547,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43736,7 +43862,7 @@ pub mod builder { pub struct SiloIdentityProviderList<'a> { client: &'a super::Client, silo_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -43764,10 +43890,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -43990,7 +44116,7 @@ pub mod builder { pub struct LocalIdpUserDelete<'a> { client: &'a super::Client, silo_name: Result, - user_id: Result, + user_id: Result<::uuid::Uuid, String>, } impl<'a> LocalIdpUserDelete<'a> { @@ -44014,11 +44140,11 @@ pub mod builder { pub fn user_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.user_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for user_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for user_id failed".to_string()); self } @@ -44069,7 +44195,7 @@ pub mod builder { pub struct LocalIdpUserSetPassword<'a> { client: &'a super::Client, silo_name: Result, - user_id: Result, + user_id: Result<::uuid::Uuid, String>, body: Result, } @@ -44095,11 +44221,11 @@ pub mod builder { pub fn user_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.user_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for user_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for user_id failed".to_string()); self } @@ -44499,7 +44625,7 @@ pub mod builder { pub struct SiloUsersList<'a> { client: &'a super::Client, silo_name: Result, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -44527,10 +44653,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -44659,7 +44785,7 @@ pub mod builder { pub struct SiloUserView<'a> { client: &'a super::Client, silo_name: Result, - user_id: Result, + user_id: Result<::uuid::Uuid, String>, } impl<'a> SiloUserView<'a> { @@ -44683,11 +44809,11 @@ pub mod builder { pub fn user_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.user_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for user_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for user_id failed".to_string()); self } @@ -44737,7 +44863,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemUserList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -44754,10 +44880,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -44939,7 +45065,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TimeseriesSchemaGet<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -44954,10 +45080,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45065,7 +45191,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct UserList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -45082,10 +45208,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45207,7 +45333,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct DiskListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, project: Result, String>, @@ -45228,10 +45354,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -45688,7 +45814,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, project: Result, String>, @@ -45709,10 +45835,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -46170,7 +46296,7 @@ pub mod builder { pub struct InstanceDiskListV1<'a> { client: &'a super::Client, instance: Result, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, project: Result, String>, @@ -46202,10 +46328,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -47291,7 +47417,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct OrganizationListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -47308,10 +47434,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -47883,7 +48009,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ProjectListV1<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, organization: Result, String>, page_token: Result, String>, sort_by: Result, String>, @@ -47902,10 +48028,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -48605,7 +48731,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemComponentVersionList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -48622,10 +48748,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -48749,7 +48875,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct UpdateDeploymentsList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -48766,10 +48892,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } @@ -48892,7 +49018,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct UpdateDeploymentView<'a> { client: &'a super::Client, - id: Result, + id: Result<::uuid::Uuid, String>, } impl<'a> UpdateDeploymentView<'a> { @@ -48905,11 +49031,11 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } @@ -49109,7 +49235,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct SystemUpdateList<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, sort_by: Result, String>, } @@ -49126,10 +49252,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } diff --git a/progenitor-impl/tests/output/src/nexus_cli.rs b/progenitor-impl/tests/output/src/nexus_cli.rs index 23d8f6fe..ee529962 100644 --- a/progenitor-impl/tests/output/src/nexus_cli.rs +++ b/progenitor-impl/tests/output/src/nexus_cli.rs @@ -223,7 +223,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a disk by id") @@ -235,7 +235,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch an image by id") @@ -246,7 +246,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch an instance by id") @@ -257,7 +257,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a network interface by id") @@ -268,7 +268,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch an organization by id") @@ -280,7 +280,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a project by id") @@ -292,7 +292,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a snapshot by id") @@ -303,7 +303,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a route by id") @@ -314,7 +314,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Get a router by id") @@ -325,7 +325,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a subnet by id") @@ -336,7 +336,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a VPC") @@ -347,7 +347,7 @@ impl Cli { .arg( ::clap::Arg::new("client-id") .long("client-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required_unless_present("json-body"), ) .arg( @@ -407,7 +407,7 @@ impl Cli { .arg( ::clap::Arg::new("client-id") .long("client-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required_unless_present("json-body"), ) .arg( @@ -448,7 +448,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -574,7 +574,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -737,7 +737,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -895,7 +895,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -1038,14 +1038,16 @@ impl Cli { .arg( ::clap::Arg::new("end-time") .long("end-time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required(true) .help("An exclusive end time of metrics."), ) .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -1080,7 +1082,9 @@ impl Cli { .arg( ::clap::Arg::new("start-time") .long("start-time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required(true) .help("An inclusive start time of metrics."), ) @@ -1092,7 +1096,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -1231,7 +1235,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -1403,7 +1407,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -1550,7 +1554,7 @@ impl Cli { .arg( ::clap::Arg::new("dst-sled-id") .long("dst-sled-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required_unless_present("json-body"), ) .arg( @@ -1600,7 +1604,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -1647,7 +1651,7 @@ impl Cli { .arg( ::clap::Arg::new("ip") .long("ip") - .value_parser(::clap::value_parser!(std::net::IpAddr)) + .value_parser(::clap::value_parser!(::std::net::IpAddr)) .required(false) .help( "The IP address for the interface. One will be auto-assigned if not \ @@ -2049,7 +2053,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -2185,7 +2189,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -2446,7 +2450,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -2649,7 +2653,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -2883,7 +2887,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3109,7 +3113,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3179,7 +3183,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3207,7 +3211,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3230,7 +3234,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3319,7 +3323,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a system-wide image by id") @@ -3330,7 +3334,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch an IP pool by id") @@ -3341,7 +3345,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a silo by id") @@ -3352,7 +3356,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3451,7 +3455,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3474,7 +3478,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3497,7 +3501,7 @@ impl Cli { .arg( ::clap::Arg::new("rack-id") .long("rack-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The rack's unique ID."), ) @@ -3509,7 +3513,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3532,7 +3536,7 @@ impl Cli { .arg( ::clap::Arg::new("sled-id") .long("sled-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The sled's unique ID."), ) @@ -3544,14 +3548,14 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) .arg( ::clap::Arg::new("sled-id") .long("sled-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The sled's unique ID."), ) @@ -3574,7 +3578,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3664,7 +3668,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3779,7 +3783,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3852,7 +3856,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3903,21 +3907,23 @@ impl Cli { .arg( ::clap::Arg::new("end-time") .long("end-time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required(false) .help("An exclusive end time of metrics."), ) .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The UUID of the container being queried"), ) .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -3944,7 +3950,9 @@ impl Cli { .arg( ::clap::Arg::new("start-time") .long("start-time") - .value_parser(::clap::value_parser!(chrono::DateTime)) + .value_parser(::clap::value_parser!( + ::chrono::DateTime<::chrono::offset::Utc> + )) .required(false) .help("An inclusive start time of metrics."), ) @@ -3979,7 +3987,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4002,7 +4010,7 @@ impl Cli { .arg( ::clap::Arg::new("saga-id") .long("saga-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a saga") @@ -4013,7 +4021,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4128,7 +4136,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4203,7 +4211,7 @@ impl Cli { .arg( ::clap::Arg::new("user-id") .long("user-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The user's internal id"), ) @@ -4222,7 +4230,7 @@ impl Cli { .arg( ::clap::Arg::new("user-id") .long("user-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The user's internal id"), ) @@ -4392,7 +4400,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4429,7 +4437,7 @@ impl Cli { .arg( ::clap::Arg::new("user-id") .long("user-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true) .help("The user's internal id"), ) @@ -4441,7 +4449,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4476,7 +4484,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4488,7 +4496,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4511,7 +4519,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4644,7 +4652,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4812,7 +4820,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -4935,7 +4943,7 @@ impl Cli { .arg( ::clap::Arg::new("dst-sled-id") .long("dst-sled-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required_unless_present("json-body"), ) .arg( @@ -5127,7 +5135,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -5278,7 +5286,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -5471,7 +5479,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -5494,7 +5502,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -5517,7 +5525,7 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Fetch a system update deployment") @@ -5563,7 +5571,7 @@ impl Cli { .arg( ::clap::Arg::new("limit") .long("limit") - .value_parser(::clap::value_parser!(std::num::NonZeroU32)) + .value_parser(::clap::value_parser!(::std::num::NonZeroU32)) .required(false) .help("Maximum number of items returned by a single call"), ) @@ -5877,7 +5885,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.disk_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -5900,7 +5908,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.image_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -5924,7 +5932,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -5948,7 +5956,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_network_interface_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -5972,7 +5980,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -5996,7 +6004,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.project_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -6020,7 +6028,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.snapshot_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -6044,7 +6052,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_route_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -6068,7 +6076,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -6092,7 +6100,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_subnet_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -6113,7 +6121,7 @@ impl Cli { pub async fn execute_vpc_view_by_id(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.vpc_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -6136,7 +6144,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.device_auth_request(); - if let Some(value) = matches.get_one::("client-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("client-id") { request = request.body_map(|body| body.client_id(value.clone())) } @@ -6194,7 +6202,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.device_access_token(); - if let Some(value) = matches.get_one::("client-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("client-id") { request = request.body_map(|body| body.client_id(value.clone())) } @@ -6228,7 +6236,7 @@ impl Cli { pub async fn execute_group_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.group_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -6392,7 +6400,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -6604,7 +6612,7 @@ impl Cli { pub async fn execute_project_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.project_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -6763,7 +6771,7 @@ impl Cli { pub async fn execute_disk_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.disk_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -6911,11 +6919,13 @@ impl Cli { request = request.disk_name(value.clone()); } - if let Some(value) = matches.get_one::>("end-time") { + if let Some(value) = + matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("end-time") + { request = request.end_time(value.clone()); } - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -6931,7 +6941,8 @@ impl Cli { request = request.project_name(value.clone()); } - if let Some(value) = matches.get_one::>("start-time") + if let Some(value) = + matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("start-time") { request = request.start_time(value.clone()); } @@ -6965,7 +6976,7 @@ impl Cli { pub async fn execute_image_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.image_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -7102,7 +7113,7 @@ impl Cli { pub async fn execute_instance_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.instance_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -7272,7 +7283,7 @@ impl Cli { request = request.instance_name(value.clone()); } - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -7435,7 +7446,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_migrate(); - if let Some(value) = matches.get_one::("dst-sled-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("dst-sled-id") { request = request.body_map(|body| body.dst_sled_id(value.clone())) } @@ -7481,7 +7492,7 @@ impl Cli { request = request.instance_name(value.clone()); } - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -7538,7 +7549,7 @@ impl Cli { request = request.instance_name(value.clone()); } - if let Some(value) = matches.get_one::("ip") { + if let Some(value) = matches.get_one::<::std::net::IpAddr>("ip") { request = request.body_map(|body| body.ip(value.clone())) } @@ -7936,7 +7947,7 @@ impl Cli { pub async fn execute_snapshot_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.snapshot_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -8083,7 +8094,7 @@ impl Cli { pub async fn execute_vpc_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.vpc_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -8348,7 +8359,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -8566,7 +8577,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_route_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -8808,7 +8819,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_subnet_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9034,7 +9045,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_subnet_list_network_interfaces(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9126,7 +9137,7 @@ impl Cli { pub async fn execute_role_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.role_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9196,7 +9207,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.session_me_groups(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9235,7 +9246,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.session_sshkey_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9360,7 +9371,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_image_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -9384,7 +9395,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.ip_pool_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -9408,7 +9419,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.silo_view_by_id(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -9431,7 +9442,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.certificate_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9557,7 +9568,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.physical_disk_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9594,7 +9605,7 @@ impl Cli { pub async fn execute_rack_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.rack_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9629,7 +9640,7 @@ impl Cli { pub async fn execute_rack_view(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.rack_view(); - if let Some(value) = matches.get_one::("rack-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("rack-id") { request = request.rack_id(value.clone()); } @@ -9649,7 +9660,7 @@ impl Cli { pub async fn execute_sled_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.sled_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9684,7 +9695,7 @@ impl Cli { pub async fn execute_sled_view(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.sled_view(); - if let Some(value) = matches.get_one::("sled-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("sled-id") { request = request.sled_id(value.clone()); } @@ -9707,11 +9718,11 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.sled_physical_disk_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } - if let Some(value) = matches.get_one::("sled-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("sled-id") { request = request.sled_id(value.clone()); } @@ -9751,7 +9762,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_image_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -9870,7 +9881,7 @@ impl Cli { pub async fn execute_ip_pool_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.ip_pool_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10012,7 +10023,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.ip_pool_range_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10132,7 +10143,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.ip_pool_service_range_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10217,15 +10228,17 @@ impl Cli { pub async fn execute_system_metric(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.system_metric(); - if let Some(value) = matches.get_one::>("end-time") { + if let Some(value) = + matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("end-time") + { request = request.end_time(value.clone()); } - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10237,7 +10250,8 @@ impl Cli { request = request.page_token(value.clone()); } - if let Some(value) = matches.get_one::>("start-time") + if let Some(value) = + matches.get_one::<::chrono::DateTime<::chrono::offset::Utc>>("start-time") { request = request.start_time(value.clone()); } @@ -10304,7 +10318,7 @@ impl Cli { pub async fn execute_saga_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.saga_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10339,7 +10353,7 @@ impl Cli { pub async fn execute_saga_view(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.saga_view(); - if let Some(value) = matches.get_one::("saga-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("saga-id") { request = request.saga_id(value.clone()); } @@ -10359,7 +10373,7 @@ impl Cli { pub async fn execute_silo_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.silo_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10479,7 +10493,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.silo_identity_provider_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10562,7 +10576,7 @@ impl Cli { request = request.silo_name(value.clone()); } - if let Some(value) = matches.get_one::("user-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("user-id") { request = request.user_id(value.clone()); } @@ -10590,7 +10604,7 @@ impl Cli { request = request.silo_name(value.clone()); } - if let Some(value) = matches.get_one::("user-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("user-id") { request = request.user_id(value.clone()); } @@ -10765,7 +10779,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.silo_users_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10808,7 +10822,7 @@ impl Cli { request = request.silo_name(value.clone()); } - if let Some(value) = matches.get_one::("user-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("user-id") { request = request.user_id(value.clone()); } @@ -10831,7 +10845,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_user_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10895,7 +10909,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.timeseries_schema_get(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10929,7 +10943,7 @@ impl Cli { pub async fn execute_user_list(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.user_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -10964,7 +10978,7 @@ impl Cli { pub async fn execute_disk_list_v1(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.disk_list_v1(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -11108,7 +11122,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_list_v1(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -11285,7 +11299,7 @@ impl Cli { request = request.instance(value.clone()); } - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -11416,7 +11430,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_migrate_v1(); - if let Some(value) = matches.get_one::("dst-sled-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("dst-sled-id") { request = request.body_map(|body| body.dst_sled_id(value.clone())) } @@ -11628,7 +11642,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_list_v1(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -11843,7 +11857,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.project_list_v1(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -12082,7 +12096,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_component_version_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -12123,7 +12137,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.update_deployments_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } @@ -12164,7 +12178,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.update_deployment_view(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } @@ -12258,7 +12272,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_update_list(); - if let Some(value) = matches.get_one::("limit") { + if let Some(value) = matches.get_one::<::std::num::NonZeroU32>("limit") { request = request.limit(value.clone()); } diff --git a/progenitor-impl/tests/output/src/nexus_httpmock.rs b/progenitor-impl/tests/output/src/nexus_httpmock.rs index 16956efc..9a95a618 100644 --- a/progenitor-impl/tests/output/src/nexus_httpmock.rs +++ b/progenitor-impl/tests/output/src/nexus_httpmock.rs @@ -18,7 +18,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/disks/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) } @@ -78,7 +78,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/images/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) } @@ -138,7 +138,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/instances/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) @@ -199,7 +199,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/by-id/network-interfaces/{}$", value.to_string() @@ -263,7 +263,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/organizations/{}$", value.to_string())) .unwrap(); Self(self.0.path_matches(re)) @@ -324,7 +324,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/projects/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) @@ -385,7 +385,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/snapshots/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) @@ -446,7 +446,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/vpc-router-routes/{}$", value.to_string())) .unwrap(); @@ -508,7 +508,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/vpc-routers/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) @@ -569,7 +569,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/vpc-subnets/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) @@ -630,7 +630,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/by-id/vpcs/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) } @@ -824,7 +824,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -1244,7 +1244,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -1717,7 +1717,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -2119,7 +2119,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -2491,7 +2491,7 @@ pub mod operations { pub fn end_time<'a, T>(self, value: T) -> Self where - T: Into>>, + T: Into>>, { if let Some(value) = value.into() { Self(self.0.query_param("end_time", value.to_string())) @@ -2507,7 +2507,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -2539,7 +2539,7 @@ pub mod operations { pub fn start_time<'a, T>(self, value: T) -> Self where - T: Into>>, + T: Into>>, { if let Some(value) = value.into() { Self(self.0.query_param("start_time", value.to_string())) @@ -2626,7 +2626,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -2975,7 +2975,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -3338,7 +3338,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -3823,7 +3823,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -4912,7 +4912,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -5261,7 +5261,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -5880,7 +5880,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -6390,7 +6390,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -6930,7 +6930,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -7441,7 +7441,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -7658,7 +7658,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -7860,7 +7860,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -7963,7 +7963,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -8240,7 +8240,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/system/by-id/images/{}$", value.to_string())) .unwrap(); Self(self.0.path_matches(re)) @@ -8301,7 +8301,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/system/by-id/ip-pools/{}$", value.to_string())) .unwrap(); Self(self.0.path_matches(re)) @@ -8362,7 +8362,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/system/by-id/silos/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) @@ -8425,7 +8425,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -8704,7 +8704,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -8807,7 +8807,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -8908,7 +8908,7 @@ pub mod operations { self.0 } - pub fn rack_id(self, value: &uuid::Uuid) -> Self { + pub fn rack_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/system/hardware/racks/{}$", value.to_string())) .unwrap(); Self(self.0.path_matches(re)) @@ -8971,7 +8971,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -9072,7 +9072,7 @@ pub mod operations { self.0 } - pub fn sled_id(self, value: &uuid::Uuid) -> Self { + pub fn sled_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/system/hardware/sleds/{}$", value.to_string())) .unwrap(); Self(self.0.path_matches(re)) @@ -9133,7 +9133,7 @@ pub mod operations { self.0 } - pub fn sled_id(self, value: &uuid::Uuid) -> Self { + pub fn sled_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/system/hardware/sleds/{}/disks$", value.to_string() @@ -9144,7 +9144,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -9247,7 +9247,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -9524,7 +9524,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -9874,7 +9874,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -10147,7 +10147,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -10351,7 +10351,7 @@ pub mod operations { pub fn end_time<'a, T>(self, value: T) -> Self where - T: Into>>, + T: Into>>, { if let Some(value) = value.into() { Self(self.0.query_param("end_time", value.to_string())) @@ -10365,13 +10365,13 @@ pub mod operations { } } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { Self(self.0.query_param("id", value.to_string())) } pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -10403,7 +10403,7 @@ pub mod operations { pub fn start_time<'a, T>(self, value: T) -> Self where - T: Into>>, + T: Into>>, { if let Some(value) = value.into() { Self(self.0.query_param("start_time", value.to_string())) @@ -10588,7 +10588,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -10689,7 +10689,7 @@ pub mod operations { self.0 } - pub fn saga_id(self, value: &uuid::Uuid) -> Self { + pub fn saga_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!("^/system/sagas/{}$", value.to_string())).unwrap(); Self(self.0.path_matches(re)) } @@ -10751,7 +10751,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -11035,7 +11035,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -11212,7 +11212,7 @@ pub mod operations { Self(self.0.path_matches(re)) } - pub fn user_id(self, value: &uuid::Uuid) -> Self { + pub fn user_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/system/silos/.*/identity-providers/local/users/{}$", value.to_string() @@ -11283,7 +11283,7 @@ pub mod operations { Self(self.0.path_matches(re)) } - pub fn user_id(self, value: &uuid::Uuid) -> Self { + pub fn user_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/system/silos/.*/identity-providers/local/users/{}/set-password$", value.to_string() @@ -11617,7 +11617,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -11727,7 +11727,7 @@ pub mod operations { Self(self.0.path_matches(re)) } - pub fn user_id(self, value: &uuid::Uuid) -> Self { + pub fn user_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/system/silos/.*/users/id/{}$", value.to_string() @@ -11793,7 +11793,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -11956,7 +11956,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -12043,7 +12043,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -12146,7 +12146,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -12539,7 +12539,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -12938,7 +12938,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -13866,7 +13866,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -14338,7 +14338,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -14905,7 +14905,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -15008,7 +15008,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) @@ -15109,7 +15109,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/v1/system/update/deployments/{}$", value.to_string() @@ -15334,7 +15334,7 @@ pub mod operations { pub fn limit(self, value: T) -> Self where - T: Into>, + T: Into>, { if let Some(value) = value.into() { Self(self.0.query_param("limit", value.to_string())) diff --git a/progenitor-impl/tests/output/src/nexus_positional.rs b/progenitor-impl/tests/output/src/nexus_positional.rs index 5b120bb4..9c600bca 100644 --- a/progenitor-impl/tests/output/src/nexus_positional.rs +++ b/progenitor-impl/tests/output/src/nexus_positional.rs @@ -592,14 +592,14 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub service: ServiceUsingCertificate, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Certificate> for Certificate { @@ -774,11 +774,11 @@ pub mod types { pub struct ComponentUpdate { pub component_type: UpdateableComponentType, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -861,7 +861,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Cumulativedouble { - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, pub value: f64, } @@ -898,7 +898,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Cumulativeint64 { - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, pub value: i64, } @@ -1356,7 +1356,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAccessTokenRequest { - pub client_id: uuid::Uuid, + pub client_id: ::uuid::Uuid, pub device_code: ::std::string::String, pub grant_type: ::std::string::String, } @@ -1388,7 +1388,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAuthRequest { - pub client_id: uuid::Uuid, + pub client_id: ::uuid::Uuid, } impl ::std::convert::From<&DeviceAuthRequest> for DeviceAuthRequest { @@ -1559,20 +1559,20 @@ pub mod types { pub description: ::std::string::String, pub device_path: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub image_id: ::std::option::Option, + pub image_id: ::std::option::Option<::uuid::Uuid>, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub size: ByteCount, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub snapshot_id: ::std::option::Option, + pub snapshot_id: ::std::option::Option<::uuid::Uuid>, pub state: DiskState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Disk> for Disk { @@ -1962,13 +1962,13 @@ pub mod types { }, ///Create a disk from a disk snapshot #[serde(rename = "snapshot")] - Snapshot { snapshot_id: uuid::Uuid }, + Snapshot { snapshot_id: ::uuid::Uuid }, ///Create a disk from a project image #[serde(rename = "image")] - Image { image_id: uuid::Uuid }, + Image { image_id: ::uuid::Uuid }, ///Create a disk from a global image #[serde(rename = "global_image")] - GlobalImage { image_id: uuid::Uuid }, + GlobalImage { image_id: ::uuid::Uuid }, } impl ::std::convert::From<&Self> for DiskSource { @@ -2118,13 +2118,13 @@ pub mod types { Detached, ///Disk is being attached to the given Instance #[serde(rename = "attaching")] - Attaching(uuid::Uuid), + Attaching(::uuid::Uuid), ///Disk is attached to the given Instance #[serde(rename = "attached")] - Attached(uuid::Uuid), + Attached(::uuid::Uuid), ///Disk is being detached from the given Instance #[serde(rename = "detaching")] - Detaching(uuid::Uuid), + Detaching(::uuid::Uuid), #[serde(rename = "destroyed")] Destroyed, #[serde(rename = "faulted")] @@ -2247,7 +2247,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ExternalIp { - pub ip: std::net::IpAddr, + pub ip: ::std::net::IpAddr, pub kind: IpKind, } @@ -2765,7 +2765,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct FleetRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: FleetRole, } @@ -2887,15 +2887,15 @@ pub mod types { ///Image distribution pub distribution: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///total size in bytes pub size: ByteCount, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///URL source of this image, if any #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, @@ -3060,9 +3060,9 @@ pub mod types { pub struct Group { ///Human-readable name that can identify the group pub display_name: ::std::string::String, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Uuid of the silo to which this group belongs - pub silo_id: uuid::Uuid, + pub silo_id: ::uuid::Uuid, } impl ::std::convert::From<&Group> for Group { @@ -3226,7 +3226,7 @@ pub mod types { pub struct Histogramdouble { pub bins: ::std::vec::Vec, pub n_samples: u64, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Histogramdouble> for Histogramdouble { @@ -3344,7 +3344,7 @@ pub mod types { pub struct Histogramint64 { pub bins: ::std::vec::Vec, pub n_samples: u64, - pub start_time: chrono::DateTime, + pub start_time: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Histogramint64> for Histogramint64 { @@ -3505,15 +3505,15 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///Identity provider type pub provider_type: IdentityProviderType, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IdentityProvider> for IdentityProvider { @@ -3912,17 +3912,17 @@ pub mod types { #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub digest: ::std::option::Option, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///The project the disk belongs to - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, ///total size in bytes pub size: ByteCount, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///URL source of this image, if any #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub url: ::std::option::Option<::std::string::String>, @@ -4113,7 +4113,7 @@ pub mod types { #[serde(rename = "url")] Url { url: ::std::string::String }, #[serde(rename = "snapshot")] - Snapshot { id: uuid::Uuid }, + Snapshot { id: ::uuid::Uuid }, #[serde(rename = "you_can_boot_anything_as_long_as_its_alpine")] YouCanBootAnythingAsLongAsItsAlpine, } @@ -4218,7 +4218,7 @@ pub mod types { ///RFC1035-compliant hostname for the Instance. pub hostname: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///memory allocated for this Instance pub memory: ByteCount, ///unique, mutable, user-controlled identifier for each resource @@ -4226,13 +4226,13 @@ pub mod types { ///number of CPUs allocated for this Instance pub ncpus: InstanceCpuCount, ///id for the project containing this Instance - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub run_state: InstanceState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, - pub time_run_state_updated: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, + pub time_run_state_updated: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Instance> for Instance { @@ -4567,7 +4567,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrate { - pub dst_sled_id: uuid::Uuid, + pub dst_sled_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrate> for InstanceMigrate { @@ -5224,13 +5224,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IpPool> for IpPool { @@ -5307,9 +5307,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolRange { - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub range: IpRange, - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&IpPoolRange> for IpPoolRange { @@ -5650,8 +5650,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Ipv4Range { - pub first: std::net::Ipv4Addr, - pub last: std::net::Ipv4Addr, + pub first: ::std::net::Ipv4Addr, + pub last: ::std::net::Ipv4Addr, } impl ::std::convert::From<&Ipv4Range> for Ipv4Range { @@ -5790,8 +5790,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Ipv6Range { - pub first: std::net::Ipv6Addr, - pub last: std::net::Ipv6Addr, + pub first: ::std::net::Ipv6Addr, + pub last: ::std::net::Ipv6Addr, } impl ::std::convert::From<&Ipv6Range> for Ipv6Range { @@ -6028,7 +6028,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Measurement { pub datum: Datum, - pub timestamp: chrono::DateTime, + pub timestamp: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Measurement> for Measurement { @@ -6206,7 +6206,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] #[serde(untagged)] pub enum NameOrId { - Id(uuid::Uuid), + Id(::uuid::Uuid), Name(Name), } @@ -6263,8 +6263,8 @@ pub mod types { } } - impl ::std::convert::From for NameOrId { - fn from(value: uuid::Uuid) -> Self { + impl ::std::convert::From<::uuid::Uuid> for NameOrId { + fn from(value: ::uuid::Uuid) -> Self { Self::Id(value) } } @@ -6569,11 +6569,11 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The Instance to which the interface belongs. - pub instance_id: uuid::Uuid, + pub instance_id: ::uuid::Uuid, ///The IP address assigned to this interface. - pub ip: std::net::IpAddr, + pub ip: ::std::net::IpAddr, ///The MAC address assigned to this interface. pub mac: MacAddr, ///unique, mutable, user-controlled identifier for each resource @@ -6582,13 +6582,13 @@ pub mod types { /// attached. pub primary: bool, ///The subnet to which the interface belongs. - pub subnet_id: uuid::Uuid, + pub subnet_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the interface belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&NetworkInterface> for NetworkInterface { @@ -6654,7 +6654,7 @@ pub mod types { ///The IP address for the interface. One will be auto-assigned if not /// provided. #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub ip: ::std::option::Option, + pub ip: ::std::option::Option<::std::net::IpAddr>, pub name: Name, ///The VPC Subnet in which to create the interface. pub subnet_name: Name, @@ -6927,13 +6927,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Organization> for Organization { @@ -7196,7 +7196,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: OrganizationRole, } @@ -7410,16 +7410,16 @@ pub mod types { pub struct PhysicalDisk { pub disk_type: PhysicalDiskType, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub model: ::std::string::String, pub serial: ::std::string::String, ///The sled to which this disk is attached, if any. #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] - pub sled_id: ::std::option::Option, + pub sled_id: ::std::option::Option<::uuid::Uuid>, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub vendor: ::std::string::String, } @@ -7618,14 +7618,14 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub organization_id: uuid::Uuid, + pub organization_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Project> for Project { @@ -7888,7 +7888,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: ProjectRole, } @@ -7994,11 +7994,11 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Rack { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Rack> for Rack { @@ -8332,7 +8332,7 @@ pub mod types { pub enum RouteDestination { ///Route applies to traffic destined for a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///Route applies to traffic destined for a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -8350,8 +8350,8 @@ pub mod types { } } - impl ::std::convert::From for RouteDestination { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for RouteDestination { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -8477,7 +8477,7 @@ pub mod types { pub enum RouteTarget { ///Forward traffic to a particular IP address. #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///Forward traffic to a VPC #[serde(rename = "vpc")] Vpc(Name), @@ -8498,8 +8498,8 @@ pub mod types { } } - impl ::std::convert::From for RouteTarget { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for RouteTarget { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -8585,18 +8585,18 @@ pub mod types { pub description: ::std::string::String, pub destination: RouteDestination, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Describes the kind of router. Set at creation. `read-only` pub kind: RouterRouteKind, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub target: RouteTarget, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC Router to which the route belongs. - pub vpc_router_id: uuid::Uuid, + pub vpc_router_id: ::uuid::Uuid, } impl ::std::convert::From<&RouterRoute> for RouterRoute { @@ -8920,7 +8920,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Saga { - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub state: SagaState, } @@ -9267,7 +9267,7 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///idp's entity id pub idp_entity_id: ::std::string::String, ///unique, mutable, user-controlled identifier for each resource @@ -9283,9 +9283,9 @@ pub mod types { ///customer's technical contact for saml configuration pub technical_contact_email: ::std::string::String, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&SamlIdentityProvider> for SamlIdentityProvider { @@ -9654,15 +9654,15 @@ pub mod types { /// it will not be part of the "list all silos" output. pub discoverable: bool, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///How users and groups are managed in this Silo pub identity_mode: SiloIdentityMode, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Silo> for Silo { @@ -10066,7 +10066,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SiloRoleRoleAssignment { - pub identity_id: uuid::Uuid, + pub identity_id: ::uuid::Uuid, pub identity_type: IdentityType, pub role_name: SiloRole, } @@ -10123,12 +10123,12 @@ pub mod types { pub struct Sled { pub baseboard: Baseboard, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub service_address: ::std::string::String, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Sled> for Sled { @@ -10254,18 +10254,18 @@ pub mod types { pub struct Snapshot { ///human-readable free-form text about a resource pub description: ::std::string::String, - pub disk_id: uuid::Uuid, + pub disk_id: ::uuid::Uuid, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, pub size: ByteCount, pub state: SnapshotState, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Snapshot> for Snapshot { @@ -10557,17 +10557,17 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` pub public_key: ::std::string::String, ///The user to whom this key belongs - pub silo_user_id: uuid::Uuid, + pub silo_user_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&SshKey> for SshKey { @@ -10799,11 +10799,11 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SystemUpdate { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -11061,7 +11061,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TimeseriesSchema { - pub created: chrono::DateTime, + pub created: ::chrono::DateTime<::chrono::offset::Utc>, pub datum_type: DatumType, pub field_schema: ::std::vec::Vec, pub timeseries_name: TimeseriesName, @@ -11166,12 +11166,12 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateDeployment { ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub status: UpdateStatus, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -11398,13 +11398,13 @@ pub mod types { pub component_type: UpdateableComponentType, pub device_id: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub status: UpdateStatus, pub system_version: SemverVersion, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, pub version: SemverVersion, } @@ -11629,9 +11629,9 @@ pub mod types { pub struct User { ///Human-readable name that can identify the user pub display_name: ::std::string::String, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///Uuid of the silo to which this user belongs - pub silo_id: uuid::Uuid, + pub silo_id: ::uuid::Uuid, } impl ::std::convert::From<&User> for User { @@ -11694,13 +11694,13 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&UserBuiltin> for UserBuiltin { @@ -12167,19 +12167,19 @@ pub mod types { ///The name used for the VPC in DNS. pub dns_name: Name, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The unique local IPv6 address range for subnets in this VPC pub ipv6_prefix: Ipv6Net, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///id for the project containing this VPC - pub project_id: uuid::Uuid, + pub project_id: ::uuid::Uuid, ///id for the system router where subnet default routes are registered - pub system_router_id: uuid::Uuid, + pub system_router_id: ::uuid::Uuid, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, } impl ::std::convert::From<&Vpc> for Vpc { @@ -12375,7 +12375,7 @@ pub mod types { ///reductions on the scope of the rule pub filters: VpcFirewallRuleFilter, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///the relative priority of this rule @@ -12385,11 +12385,11 @@ pub mod types { ///list of sets of instances that the rule applies to pub targets: ::std::vec::Vec, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///the VPC to which this rule belongs - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcFirewallRule> for VpcFirewallRule { @@ -12775,7 +12775,7 @@ pub mod types { Instance(Name), ///The rule applies to traffic from/to a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///The rule applies to traffic from/to a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -12787,8 +12787,8 @@ pub mod types { } } - impl ::std::convert::From for VpcFirewallRuleHostFilter { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for VpcFirewallRuleHostFilter { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -13099,7 +13099,7 @@ pub mod types { Instance(Name), ///The rule applies to a specific IP address #[serde(rename = "ip")] - Ip(std::net::IpAddr), + Ip(::std::net::IpAddr), ///The rule applies to a specific IP subnet #[serde(rename = "ip_net")] IpNet(IpNet), @@ -13111,8 +13111,8 @@ pub mod types { } } - impl ::std::convert::From for VpcFirewallRuleTarget { - fn from(value: std::net::IpAddr) -> Self { + impl ::std::convert::From<::std::net::IpAddr> for VpcFirewallRuleTarget { + fn from(value: ::std::net::IpAddr) -> Self { Self::Ip(value) } } @@ -13414,16 +13414,16 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, pub kind: VpcRouterKind, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the router belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcRouter> for VpcRouter { @@ -13739,7 +13739,7 @@ pub mod types { ///human-readable free-form text about a resource pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///The IPv4 subnet CIDR block. pub ipv4_block: Ipv4Net, ///The IPv6 subnet CIDR block. @@ -13747,11 +13747,11 @@ pub mod types { ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///timestamp when this resource was created - pub time_created: chrono::DateTime, + pub time_created: ::chrono::DateTime<::chrono::offset::Utc>, ///timestamp when this resource was last modified - pub time_modified: chrono::DateTime, + pub time_modified: ::chrono::DateTime<::chrono::offset::Utc>, ///The VPC to which the subnet belongs. - pub vpc_id: uuid::Uuid, + pub vpc_id: ::uuid::Uuid, } impl ::std::convert::From<&VpcSubnet> for VpcSubnet { @@ -14103,7 +14103,7 @@ impl Client { ///Sends a `GET` request to `/by-id/disks/{id}` pub async fn disk_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/disks/{}", @@ -14138,7 +14138,7 @@ impl Client { ///Sends a `GET` request to `/by-id/images/{id}` pub async fn image_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/images/{}", @@ -14173,7 +14173,7 @@ impl Client { ///Sends a `GET` request to `/by-id/instances/{id}` pub async fn instance_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/instances/{}", @@ -14208,7 +14208,7 @@ impl Client { ///Sends a `GET` request to `/by-id/network-interfaces/{id}` pub async fn instance_network_interface_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/network-interfaces/{}", @@ -14245,7 +14245,7 @@ impl Client { ///Sends a `GET` request to `/by-id/organizations/{id}` pub async fn organization_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/organizations/{}", @@ -14282,7 +14282,7 @@ impl Client { ///Sends a `GET` request to `/by-id/projects/{id}` pub async fn project_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/projects/{}", @@ -14317,7 +14317,7 @@ impl Client { ///Sends a `GET` request to `/by-id/snapshots/{id}` pub async fn snapshot_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/snapshots/{}", @@ -14352,7 +14352,7 @@ impl Client { ///Sends a `GET` request to `/by-id/vpc-router-routes/{id}` pub async fn vpc_router_route_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/vpc-router-routes/{}", @@ -14387,7 +14387,7 @@ impl Client { ///Sends a `GET` request to `/by-id/vpc-routers/{id}` pub async fn vpc_router_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/vpc-routers/{}", @@ -14422,7 +14422,7 @@ impl Client { ///Sends a `GET` request to `/by-id/vpc-subnets/{id}` pub async fn vpc_subnet_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/vpc-subnets/{}", @@ -14457,7 +14457,7 @@ impl Client { ///Sends a `GET` request to `/by-id/vpcs/{id}` pub async fn vpc_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/by-id/vpcs/{}", @@ -14578,7 +14578,7 @@ impl Client { /// - `sort_by` pub async fn group_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -14622,7 +14622,7 @@ impl Client { /// - `sort_by` pub fn group_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -14821,7 +14821,7 @@ impl Client { /// - `sort_by` pub async fn organization_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -14867,7 +14867,7 @@ impl Client { /// - `sort_by` pub fn organization_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -15152,7 +15152,7 @@ impl Client { pub async fn project_list<'a>( &'a self, organization_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -15205,7 +15205,7 @@ impl Client { pub fn project_list_stream<'a>( &'a self, organization_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -15430,7 +15430,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -15486,7 +15486,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -15672,10 +15672,10 @@ impl Client { project_name: &'a types::Name, disk_name: &'a types::Name, metric_name: types::DiskMetricName, - end_time: Option<&'a chrono::DateTime>, - limit: Option, + end_time: Option<&'a ::chrono::DateTime<::chrono::offset::Utc>>, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, - start_time: Option<&'a chrono::DateTime>, + start_time: Option<&'a ::chrono::DateTime<::chrono::offset::Utc>>, ) -> Result, Error> { let url = format!( "{}/organizations/{}/projects/{}/disks/{}/metrics/{}", @@ -15738,9 +15738,9 @@ impl Client { project_name: &'a types::Name, disk_name: &'a types::Name, metric_name: types::DiskMetricName, - end_time: Option<&'a chrono::DateTime>, - limit: Option, - start_time: Option<&'a chrono::DateTime>, + end_time: Option<&'a ::chrono::DateTime<::chrono::offset::Utc>>, + limit: Option<::std::num::NonZeroU32>, + start_time: Option<&'a ::chrono::DateTime<::chrono::offset::Utc>>, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -15806,7 +15806,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -15863,7 +15863,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -16049,7 +16049,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -16103,7 +16103,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -16291,7 +16291,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, instance_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -16350,7 +16350,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, instance_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -16588,7 +16588,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, instance_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -16645,7 +16645,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, instance_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -17217,7 +17217,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -17271,7 +17271,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -17452,7 +17452,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -17506,7 +17506,7 @@ impl Client { &'a self, organization_name: &'a types::Name, project_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -17814,7 +17814,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, vpc_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -17871,7 +17871,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, vpc_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -18112,7 +18112,7 @@ impl Client { project_name: &'a types::Name, vpc_name: &'a types::Name, router_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -18175,7 +18175,7 @@ impl Client { project_name: &'a types::Name, vpc_name: &'a types::Name, router_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -18422,7 +18422,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, vpc_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -18479,7 +18479,7 @@ impl Client { organization_name: &'a types::Name, project_name: &'a types::Name, vpc_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -18718,7 +18718,7 @@ impl Client { project_name: &'a types::Name, vpc_name: &'a types::Name, subnet_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -18779,7 +18779,7 @@ impl Client { project_name: &'a types::Name, vpc_name: &'a types::Name, subnet_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -18897,7 +18897,7 @@ impl Client { /// subsequent page pub async fn role_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, ) -> Result, Error> { let url = format!("{}/roles", self.baseurl,); @@ -18938,7 +18938,7 @@ impl Client { /// - `limit`: Maximum number of items returned by a single call pub fn role_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; use futures::TryFutureExt; @@ -19045,7 +19045,7 @@ impl Client { /// - `sort_by` pub async fn session_me_groups<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -19089,7 +19089,7 @@ impl Client { /// - `sort_by` pub fn session_me_groups_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -19131,7 +19131,7 @@ impl Client { /// - `sort_by` pub async fn session_sshkey_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -19177,7 +19177,7 @@ impl Client { /// - `sort_by` pub fn session_sshkey_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -19321,7 +19321,7 @@ impl Client { ///Sends a `GET` request to `/system/by-id/images/{id}` pub async fn system_image_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/by-id/images/{}", @@ -19356,7 +19356,7 @@ impl Client { ///Sends a `GET` request to `/system/by-id/ip-pools/{id}` pub async fn ip_pool_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/by-id/ip-pools/{}", @@ -19391,7 +19391,7 @@ impl Client { ///Sends a `GET` request to `/system/by-id/silos/{id}` pub async fn silo_view_by_id<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/by-id/silos/{}", @@ -19436,7 +19436,7 @@ impl Client { /// - `sort_by` pub async fn certificate_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -19484,7 +19484,7 @@ impl Client { /// - `sort_by` pub fn certificate_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -19634,7 +19634,7 @@ impl Client { /// - `sort_by` pub async fn physical_disk_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -19678,7 +19678,7 @@ impl Client { /// - `sort_by` pub fn physical_disk_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -19719,7 +19719,7 @@ impl Client { /// - `sort_by` pub async fn rack_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -19763,7 +19763,7 @@ impl Client { /// - `sort_by` pub fn rack_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -19800,7 +19800,7 @@ impl Client { /// - `rack_id`: The rack's unique ID. pub async fn rack_view<'a>( &'a self, - rack_id: &'a uuid::Uuid, + rack_id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/hardware/racks/{}", @@ -19841,7 +19841,7 @@ impl Client { /// - `sort_by` pub async fn sled_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -19885,7 +19885,7 @@ impl Client { /// - `sort_by` pub fn sled_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -19922,7 +19922,7 @@ impl Client { /// - `sled_id`: The sled's unique ID. pub async fn sled_view<'a>( &'a self, - sled_id: &'a uuid::Uuid, + sled_id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/hardware/sleds/{}", @@ -19964,8 +19964,8 @@ impl Client { /// - `sort_by` pub async fn sled_physical_disk_list<'a>( &'a self, - sled_id: &'a uuid::Uuid, - limit: Option, + sled_id: &'a ::uuid::Uuid, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -20015,8 +20015,8 @@ impl Client { /// - `sort_by` pub fn sled_physical_disk_list_stream<'a>( &'a self, - sled_id: &'a uuid::Uuid, - limit: Option, + sled_id: &'a ::uuid::Uuid, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -20061,7 +20061,7 @@ impl Client { /// - `sort_by` pub async fn system_image_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -20109,7 +20109,7 @@ impl Client { /// - `sort_by` pub fn system_image_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -20261,7 +20261,7 @@ impl Client { /// - `sort_by` pub async fn ip_pool_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -20305,7 +20305,7 @@ impl Client { /// - `sort_by` pub fn ip_pool_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -20487,7 +20487,7 @@ impl Client { pub async fn ip_pool_range_list<'a>( &'a self, pool_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, ) -> Result, Error> { let url = format!( @@ -20536,7 +20536,7 @@ impl Client { pub fn ip_pool_range_list_stream<'a>( &'a self, pool_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -20681,7 +20681,7 @@ impl Client { /// subsequent page pub async fn ip_pool_service_range_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, ) -> Result, Error> { let url = format!("{}/system/ip-pools-service/ranges", self.baseurl,); @@ -20724,7 +20724,7 @@ impl Client { /// - `limit`: Maximum number of items returned by a single call pub fn ip_pool_service_range_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -20832,11 +20832,11 @@ impl Client { pub async fn system_metric<'a>( &'a self, metric_name: types::SystemMetricName, - end_time: Option<&'a chrono::DateTime>, - id: &'a uuid::Uuid, - limit: Option, + end_time: Option<&'a ::chrono::DateTime<::chrono::offset::Utc>>, + id: &'a ::uuid::Uuid, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, - start_time: Option<&'a chrono::DateTime>, + start_time: Option<&'a ::chrono::DateTime<::chrono::offset::Utc>>, ) -> Result, Error> { let url = format!( "{}/system/metrics/{}", @@ -20950,7 +20950,7 @@ impl Client { /// - `sort_by` pub async fn saga_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -20994,7 +20994,7 @@ impl Client { /// - `sort_by` pub fn saga_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -21028,7 +21028,7 @@ impl Client { ///Sends a `GET` request to `/system/sagas/{saga_id}` pub async fn saga_view<'a>( &'a self, - saga_id: &'a uuid::Uuid, + saga_id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/sagas/{}", @@ -21071,7 +21071,7 @@ impl Client { /// - `sort_by` pub async fn silo_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -21117,7 +21117,7 @@ impl Client { /// - `sort_by` pub fn silo_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -21271,7 +21271,7 @@ impl Client { pub async fn silo_identity_provider_list<'a>( &'a self, silo_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -21322,7 +21322,7 @@ impl Client { pub fn silo_identity_provider_list_stream<'a>( &'a self, silo_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -21409,7 +21409,7 @@ impl Client { pub async fn local_idp_user_delete<'a>( &'a self, silo_name: &'a types::Name, - user_id: &'a uuid::Uuid, + user_id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/silos/{}/identity-providers/local/users/{}", @@ -21456,7 +21456,7 @@ impl Client { pub async fn local_idp_user_set_password<'a>( &'a self, silo_name: &'a types::Name, - user_id: &'a uuid::Uuid, + user_id: &'a ::uuid::Uuid, body: &'a types::UserPassword, ) -> Result, Error> { let url = format!( @@ -21665,7 +21665,7 @@ impl Client { pub async fn silo_users_list<'a>( &'a self, silo_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -21715,7 +21715,7 @@ impl Client { pub fn silo_users_list_stream<'a>( &'a self, silo_name: &'a types::Name, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -21754,7 +21754,7 @@ impl Client { pub async fn silo_user_view<'a>( &'a self, silo_name: &'a types::Name, - user_id: &'a uuid::Uuid, + user_id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/system/silos/{}/users/id/{}", @@ -21796,7 +21796,7 @@ impl Client { /// - `sort_by` pub async fn system_user_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -21840,7 +21840,7 @@ impl Client { /// - `sort_by` pub fn system_user_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -21918,7 +21918,7 @@ impl Client { /// subsequent page pub async fn timeseries_schema_get<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, ) -> Result, Error> { let url = format!("{}/timeseries/schema", self.baseurl,); @@ -21959,7 +21959,7 @@ impl Client { /// - `limit`: Maximum number of items returned by a single call pub fn timeseries_schema_get_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -21999,7 +21999,7 @@ impl Client { /// - `sort_by` pub async fn user_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -22043,7 +22043,7 @@ impl Client { /// - `sort_by` pub fn user_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; @@ -22085,7 +22085,7 @@ impl Client { /// - `sort_by` pub async fn disk_list_v1<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, page_token: Option<&'a str>, project: Option<&'a types::NameOrId>, @@ -22138,7 +22138,7 @@ impl Client { /// - `sort_by` pub fn disk_list_v1_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, project: Option<&'a types::NameOrId>, sort_by: Option, @@ -22305,7 +22305,7 @@ impl Client { /// - `sort_by` pub async fn instance_list_v1<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, page_token: Option<&'a str>, project: Option<&'a types::NameOrId>, @@ -22358,7 +22358,7 @@ impl Client { /// - `sort_by` pub fn instance_list_v1_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, project: Option<&'a types::NameOrId>, sort_by: Option, @@ -22528,7 +22528,7 @@ impl Client { pub async fn instance_disk_list_v1<'a>( &'a self, instance: &'a types::NameOrId, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, page_token: Option<&'a str>, project: Option<&'a types::NameOrId>, @@ -22587,7 +22587,7 @@ impl Client { pub fn instance_disk_list_v1_stream<'a>( &'a self, instance: &'a types::NameOrId, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, project: Option<&'a types::NameOrId>, sort_by: Option, @@ -23008,7 +23008,7 @@ impl Client { /// - `sort_by` pub async fn organization_list_v1<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -23052,7 +23052,7 @@ impl Client { /// - `sort_by` pub fn organization_list_v1_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -23305,7 +23305,7 @@ impl Client { /// - `sort_by` pub async fn project_list_v1<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, page_token: Option<&'a str>, sort_by: Option, @@ -23355,7 +23355,7 @@ impl Client { /// - `sort_by` pub fn project_list_v1_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, organization: Option<&'a types::NameOrId>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -23637,7 +23637,7 @@ impl Client { /// - `sort_by` pub async fn system_component_version_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -23681,7 +23681,7 @@ impl Client { /// - `sort_by` pub fn system_component_version_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -23722,7 +23722,7 @@ impl Client { /// - `sort_by` pub async fn update_deployments_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -23766,7 +23766,7 @@ impl Client { /// - `sort_by` pub fn update_deployments_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { @@ -23801,7 +23801,7 @@ impl Client { ///Sends a `GET` request to `/v1/system/update/deployments/{id}` pub async fn update_deployment_view<'a>( &'a self, - id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/v1/system/update/deployments/{}", @@ -23936,7 +23936,7 @@ impl Client { /// - `sort_by` pub async fn system_update_list<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, sort_by: Option, ) -> Result, Error> { @@ -23980,7 +23980,7 @@ impl Client { /// - `sort_by` pub fn system_update_list_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, sort_by: Option, ) -> impl futures::Stream>> + Unpin + '_ { diff --git a/progenitor-impl/tests/output/src/propolis_server_builder.rs b/progenitor-impl/tests/output/src/propolis_server_builder.rs index c91eaf0d..9d588622 100644 --- a/progenitor-impl/tests/output/src/propolis_server_builder.rs +++ b/progenitor-impl/tests/output/src/propolis_server_builder.rs @@ -119,7 +119,7 @@ pub mod types { pub control: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub flush_timeout: ::std::option::Option, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub key: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] @@ -176,7 +176,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DiskAttachment { - pub disk_id: uuid::Uuid, + pub disk_id: ::uuid::Uuid, pub generation_id: u64, pub state: DiskAttachmentState, } @@ -232,7 +232,7 @@ pub mod types { Detached, Destroyed, Faulted, - Attached(uuid::Uuid), + Attached(::uuid::Uuid), } impl ::std::convert::From<&Self> for DiskAttachmentState { @@ -241,8 +241,8 @@ pub mod types { } } - impl ::std::convert::From for DiskAttachmentState { - fn from(value: uuid::Uuid) -> Self { + impl ::std::convert::From<::uuid::Uuid> for DiskAttachmentState { + fn from(value: ::uuid::Uuid) -> Self { Self::Attached(value) } } @@ -621,9 +621,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceMigrateInitiateRequest { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, pub src_addr: ::std::string::String, - pub src_uuid: uuid::Uuid, + pub src_uuid: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { @@ -661,7 +661,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceMigrateInitiateResponse { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { @@ -699,7 +699,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceMigrateStatusRequest { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { @@ -813,13 +813,13 @@ pub mod types { )] pub struct InstanceProperties { ///ID of the bootrom used to initialize this Instance. - pub bootrom_id: uuid::Uuid, + pub bootrom_id: ::uuid::Uuid, ///Free-form text description of an Instance. pub description: ::std::string::String, ///Unique identifier for this Instance. - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///ID of the image used to initialize this Instance. - pub image_id: uuid::Uuid, + pub image_id: ::uuid::Uuid, ///Size of memory allocated to the Instance, in MiB. pub memory: u64, ///Human-readable name of the Instance. @@ -1613,7 +1613,7 @@ pub mod types { #[serde(rename = "volume")] Volume { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] read_only_parent: ::std::option::Option<::std::boxed::Box>, sub_volumes: ::std::vec::Vec, @@ -1621,7 +1621,7 @@ pub mod types { #[serde(rename = "url")] Url { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, url: ::std::string::String, }, #[serde(rename = "region")] @@ -1633,7 +1633,7 @@ pub mod types { #[serde(rename = "file")] File { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, path: ::std::string::String, }, } @@ -1657,7 +1657,7 @@ pub mod types { ::std::string::String, >, flush_timeout: ::std::result::Result<::std::option::Option, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, key: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -1728,7 +1728,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -1837,7 +1837,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskAttachment { - disk_id: ::std::result::Result, + disk_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, generation_id: ::std::result::Result, state: ::std::result::Result, } @@ -1855,7 +1855,7 @@ pub mod types { impl DiskAttachment { pub fn disk_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.disk_id = value @@ -2411,9 +2411,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateRequest { - migration_id: ::std::result::Result, + migration_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, src_addr: ::std::result::Result<::std::string::String, ::std::string::String>, - src_uuid: ::std::result::Result, + src_uuid: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrateInitiateRequest { @@ -2429,7 +2429,7 @@ pub mod types { impl InstanceMigrateInitiateRequest { pub fn migration_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -2449,7 +2449,7 @@ pub mod types { } pub fn src_uuid(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.src_uuid = value @@ -2488,7 +2488,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateResponse { - migration_id: ::std::result::Result, + migration_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrateInitiateResponse { @@ -2502,7 +2502,7 @@ pub mod types { impl InstanceMigrateInitiateResponse { pub fn migration_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -2537,7 +2537,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateStatusRequest { - migration_id: ::std::result::Result, + migration_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrateStatusRequest { @@ -2551,7 +2551,7 @@ pub mod types { impl InstanceMigrateStatusRequest { pub fn migration_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -2629,10 +2629,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceProperties { - bootrom_id: ::std::result::Result, + bootrom_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - image_id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + image_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, memory: ::std::result::Result, name: ::std::result::Result<::std::string::String, ::std::string::String>, vcpus: ::std::result::Result, @@ -2655,7 +2655,7 @@ pub mod types { impl InstanceProperties { pub fn bootrom_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.bootrom_id = value @@ -2675,7 +2675,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -2685,7 +2685,7 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.image_id = value @@ -3262,8 +3262,8 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceIssueCrucibleSnapshotRequest<'a> { client: &'a super::Client, - id: Result, - snapshot_id: Result, + id: Result<::uuid::Uuid, String>, + snapshot_id: Result<::uuid::Uuid, String>, } impl<'a> InstanceIssueCrucibleSnapshotRequest<'a> { @@ -3277,21 +3277,21 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } pub fn snapshot_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.snapshot_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for snapshot_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for snapshot_id failed".to_string()); self } diff --git a/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs b/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs index 3cc3aeaa..92981809 100644 --- a/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs @@ -117,7 +117,7 @@ pub mod types { pub control: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub flush_timeout: ::std::option::Option, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub key: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] @@ -172,7 +172,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskAttachment { - pub disk_id: uuid::Uuid, + pub disk_id: ::uuid::Uuid, pub generation_id: u64, pub state: DiskAttachmentState, } @@ -226,7 +226,7 @@ pub mod types { Detached, Destroyed, Faulted, - Attached(uuid::Uuid), + Attached(::uuid::Uuid), } impl ::std::convert::From<&Self> for DiskAttachmentState { @@ -235,8 +235,8 @@ pub mod types { } } - impl ::std::convert::From for DiskAttachmentState { - fn from(value: uuid::Uuid) -> Self { + impl ::std::convert::From<::uuid::Uuid> for DiskAttachmentState { + fn from(value: ::uuid::Uuid) -> Self { Self::Attached(value) } } @@ -601,9 +601,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateInitiateRequest { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, pub src_addr: ::std::string::String, - pub src_uuid: uuid::Uuid, + pub src_uuid: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { @@ -639,7 +639,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateInitiateResponse { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { @@ -675,7 +675,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateStatusRequest { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { @@ -785,13 +785,13 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceProperties { ///ID of the bootrom used to initialize this Instance. - pub bootrom_id: uuid::Uuid, + pub bootrom_id: ::uuid::Uuid, ///Free-form text description of an Instance. pub description: ::std::string::String, ///Unique identifier for this Instance. - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///ID of the image used to initialize this Instance. - pub image_id: uuid::Uuid, + pub image_id: ::uuid::Uuid, ///Size of memory allocated to the Instance, in MiB. pub memory: u64, ///Human-readable name of the Instance. @@ -1568,7 +1568,7 @@ pub mod types { #[serde(rename = "volume")] Volume { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] read_only_parent: ::std::option::Option<::std::boxed::Box>, sub_volumes: ::std::vec::Vec, @@ -1576,7 +1576,7 @@ pub mod types { #[serde(rename = "url")] Url { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, url: ::std::string::String, }, #[serde(rename = "region")] @@ -1588,7 +1588,7 @@ pub mod types { #[serde(rename = "file")] File { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, path: ::std::string::String, }, } @@ -1612,7 +1612,7 @@ pub mod types { ::std::string::String, >, flush_timeout: ::std::result::Result<::std::option::Option, ::std::string::String>, - id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, key: ::std::result::Result< ::std::option::Option<::std::string::String>, ::std::string::String, @@ -1683,7 +1683,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -1792,7 +1792,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskAttachment { - disk_id: ::std::result::Result, + disk_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, generation_id: ::std::result::Result, state: ::std::result::Result, } @@ -1810,7 +1810,7 @@ pub mod types { impl DiskAttachment { pub fn disk_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.disk_id = value @@ -2366,9 +2366,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateRequest { - migration_id: ::std::result::Result, + migration_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, src_addr: ::std::result::Result<::std::string::String, ::std::string::String>, - src_uuid: ::std::result::Result, + src_uuid: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrateInitiateRequest { @@ -2384,7 +2384,7 @@ pub mod types { impl InstanceMigrateInitiateRequest { pub fn migration_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -2404,7 +2404,7 @@ pub mod types { } pub fn src_uuid(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.src_uuid = value @@ -2443,7 +2443,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateResponse { - migration_id: ::std::result::Result, + migration_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrateInitiateResponse { @@ -2457,7 +2457,7 @@ pub mod types { impl InstanceMigrateInitiateResponse { pub fn migration_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -2492,7 +2492,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateStatusRequest { - migration_id: ::std::result::Result, + migration_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, } impl ::std::default::Default for InstanceMigrateStatusRequest { @@ -2506,7 +2506,7 @@ pub mod types { impl InstanceMigrateStatusRequest { pub fn migration_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -2584,10 +2584,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceProperties { - bootrom_id: ::std::result::Result, + bootrom_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, description: ::std::result::Result<::std::string::String, ::std::string::String>, - id: ::std::result::Result, - image_id: ::std::result::Result, + id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, + image_id: ::std::result::Result<::uuid::Uuid, ::std::string::String>, memory: ::std::result::Result, name: ::std::result::Result<::std::string::String, ::std::string::String>, vcpus: ::std::result::Result, @@ -2610,7 +2610,7 @@ pub mod types { impl InstanceProperties { pub fn bootrom_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.bootrom_id = value @@ -2630,7 +2630,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.id = value @@ -2640,7 +2640,7 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: ::std::convert::TryInto, + T: ::std::convert::TryInto<::uuid::Uuid>, T::Error: ::std::fmt::Display, { self.image_id = value @@ -3217,8 +3217,8 @@ pub mod builder { #[derive(Debug, Clone)] pub struct InstanceIssueCrucibleSnapshotRequest<'a> { client: &'a super::Client, - id: Result, - snapshot_id: Result, + id: Result<::uuid::Uuid, String>, + snapshot_id: Result<::uuid::Uuid, String>, } impl<'a> InstanceIssueCrucibleSnapshotRequest<'a> { @@ -3232,21 +3232,21 @@ pub mod builder { pub fn id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for id failed".to_string()); self } pub fn snapshot_id(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::uuid::Uuid>, { self.snapshot_id = value .try_into() - .map_err(|_| "conversion to `uuid :: Uuid` for snapshot_id failed".to_string()); + .map_err(|_| "conversion to `:: uuid :: Uuid` for snapshot_id failed".to_string()); self } diff --git a/progenitor-impl/tests/output/src/propolis_server_cli.rs b/progenitor-impl/tests/output/src/propolis_server_cli.rs index 11e70620..b5034ff4 100644 --- a/progenitor-impl/tests/output/src/propolis_server_cli.rs +++ b/progenitor-impl/tests/output/src/propolis_server_cli.rs @@ -56,13 +56,13 @@ impl Cli { .arg( ::clap::Arg::new("id") .long("id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .arg( ::clap::Arg::new("snapshot-id") .long("snapshot-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required(true), ) .about("Issue a snapshot request to a crucible backend") @@ -73,7 +73,7 @@ impl Cli { .arg( ::clap::Arg::new("migration-id") .long("migration-id") - .value_parser(::clap::value_parser!(uuid::Uuid)) + .value_parser(::clap::value_parser!(::uuid::Uuid)) .required_unless_present("json-body"), ) .arg( @@ -210,11 +210,11 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_issue_crucible_snapshot_request(); - if let Some(value) = matches.get_one::("id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("id") { request = request.id(value.clone()); } - if let Some(value) = matches.get_one::("snapshot-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("snapshot-id") { request = request.snapshot_id(value.clone()); } @@ -238,7 +238,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_migrate_status(); - if let Some(value) = matches.get_one::("migration-id") { + if let Some(value) = matches.get_one::<::uuid::Uuid>("migration-id") { request = request.body_map(|body| body.migration_id(value.clone())) } diff --git a/progenitor-impl/tests/output/src/propolis_server_httpmock.rs b/progenitor-impl/tests/output/src/propolis_server_httpmock.rs index ab91e12b..85b5ad34 100644 --- a/progenitor-impl/tests/output/src/propolis_server_httpmock.rs +++ b/progenitor-impl/tests/output/src/propolis_server_httpmock.rs @@ -132,7 +132,7 @@ pub mod operations { self.0 } - pub fn id(self, value: &uuid::Uuid) -> Self { + pub fn id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/instance/disk/{}/snapshot/.*$", value.to_string() @@ -141,7 +141,7 @@ pub mod operations { Self(self.0.path_matches(re)) } - pub fn snapshot_id(self, value: &uuid::Uuid) -> Self { + pub fn snapshot_id(self, value: &::uuid::Uuid) -> Self { let re = regex::Regex::new(&format!( "^/instance/disk/.*/snapshot/{}$", value.to_string() diff --git a/progenitor-impl/tests/output/src/propolis_server_positional.rs b/progenitor-impl/tests/output/src/propolis_server_positional.rs index 050c89c1..c6fa7b53 100644 --- a/progenitor-impl/tests/output/src/propolis_server_positional.rs +++ b/progenitor-impl/tests/output/src/propolis_server_positional.rs @@ -118,7 +118,7 @@ pub mod types { pub control: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub flush_timeout: ::std::option::Option, - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] pub key: ::std::option::Option<::std::string::String>, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] @@ -167,7 +167,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskAttachment { - pub disk_id: uuid::Uuid, + pub disk_id: ::uuid::Uuid, pub generation_id: u64, pub state: DiskAttachmentState, } @@ -215,7 +215,7 @@ pub mod types { Detached, Destroyed, Faulted, - Attached(uuid::Uuid), + Attached(::uuid::Uuid), } impl ::std::convert::From<&Self> for DiskAttachmentState { @@ -224,8 +224,8 @@ pub mod types { } } - impl ::std::convert::From for DiskAttachmentState { - fn from(value: uuid::Uuid) -> Self { + impl ::std::convert::From<::uuid::Uuid> for DiskAttachmentState { + fn from(value: ::uuid::Uuid) -> Self { Self::Attached(value) } } @@ -554,9 +554,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateInitiateRequest { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, pub src_addr: ::std::string::String, - pub src_uuid: uuid::Uuid, + pub src_uuid: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { @@ -586,7 +586,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateInitiateResponse { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { @@ -616,7 +616,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateStatusRequest { - pub migration_id: uuid::Uuid, + pub migration_id: ::uuid::Uuid, } impl ::std::convert::From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { @@ -714,13 +714,13 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceProperties { ///ID of the bootrom used to initialize this Instance. - pub bootrom_id: uuid::Uuid, + pub bootrom_id: ::uuid::Uuid, ///Free-form text description of an Instance. pub description: ::std::string::String, ///Unique identifier for this Instance. - pub id: uuid::Uuid, + pub id: ::uuid::Uuid, ///ID of the image used to initialize this Instance. - pub image_id: uuid::Uuid, + pub image_id: ::uuid::Uuid, ///Size of memory allocated to the Instance, in MiB. pub memory: u64, ///Human-readable name of the Instance. @@ -1467,7 +1467,7 @@ pub mod types { #[serde(rename = "volume")] Volume { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] read_only_parent: ::std::option::Option<::std::boxed::Box>, sub_volumes: ::std::vec::Vec, @@ -1475,7 +1475,7 @@ pub mod types { #[serde(rename = "url")] Url { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, url: ::std::string::String, }, #[serde(rename = "region")] @@ -1487,7 +1487,7 @@ pub mod types { #[serde(rename = "file")] File { block_size: u64, - id: uuid::Uuid, + id: ::uuid::Uuid, path: ::std::string::String, }, } @@ -1627,8 +1627,8 @@ impl Client { ///Sends a `POST` request to `/instance/disk/{id}/snapshot/{snapshot_id}` pub async fn instance_issue_crucible_snapshot_request<'a>( &'a self, - id: &'a uuid::Uuid, - snapshot_id: &'a uuid::Uuid, + id: &'a ::uuid::Uuid, + snapshot_id: &'a ::uuid::Uuid, ) -> Result, Error> { let url = format!( "{}/instance/disk/{}/snapshot/{}", diff --git a/progenitor-impl/tests/output/src/test_default_params_builder.rs b/progenitor-impl/tests/output/src/test_default_params_builder.rs index 43c8fa91..493557cc 100644 --- a/progenitor-impl/tests/output/src/test_default_params_builder.rs +++ b/progenitor-impl/tests/output/src/test_default_params_builder.rs @@ -311,8 +311,8 @@ pub mod types { pub mod defaults { pub(super) fn default_u64() -> T where - T: std::convert::TryFrom, - >::Error: std::fmt::Debug, + T: ::std::convert::TryFrom, + >::Error: ::std::fmt::Debug, { T::try_from(V).unwrap() } diff --git a/progenitor-impl/tests/output/src/test_default_params_positional.rs b/progenitor-impl/tests/output/src/test_default_params_positional.rs index 51511bd0..83c67f76 100644 --- a/progenitor-impl/tests/output/src/test_default_params_positional.rs +++ b/progenitor-impl/tests/output/src/test_default_params_positional.rs @@ -133,8 +133,8 @@ pub mod types { pub mod defaults { pub(super) fn default_u64() -> T where - T: std::convert::TryFrom, - >::Error: std::fmt::Debug, + T: ::std::convert::TryFrom, + >::Error: ::std::fmt::Debug, { T::try_from(V).unwrap() } diff --git a/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs b/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs index 21a798aa..c3f5aad9 100644 --- a/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs +++ b/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs @@ -372,7 +372,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct PaginatedU32s<'a> { client: &'a super::Client, - limit: Result, String>, + limit: Result, String>, page_token: Result, String>, } @@ -387,10 +387,10 @@ pub mod builder { pub fn limit(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::num::NonZeroU32>, { self.limit = value.try_into().map(Some).map_err(|_| { - "conversion to `std :: num :: NonZeroU32` for limit failed".to_string() + "conversion to `:: std :: num :: NonZeroU32` for limit failed".to_string() }); self } diff --git a/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs b/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs index 8d4b8e83..615e51f9 100644 --- a/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs +++ b/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs @@ -197,7 +197,7 @@ impl Client { /// subsequent page pub async fn paginated_u32s<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, page_token: Option<&'a str>, ) -> Result, Error> { let url = format!("{}/", self.baseurl,); @@ -235,7 +235,7 @@ impl Client { /// - `limit`: Maximum number of items returned by a single call pub fn paginated_u32s_stream<'a>( &'a self, - limit: Option, + limit: Option<::std::num::NonZeroU32>, ) -> impl futures::Stream>> + Unpin + '_ { use futures::StreamExt; use futures::TryFutureExt;