From bcf29e1b039a05274f0c09e570865248a997d462 Mon Sep 17 00:00:00 2001 From: Adam Leventhal Date: Tue, 24 Dec 2024 13:32:20 -0800 Subject: [PATCH] update typify; fix some nits (#1018) --- Cargo.lock | 8 +- progenitor-impl/Cargo.toml | 3 +- progenitor-impl/src/lib.rs | 22 +- progenitor-impl/tests/output/Cargo.toml | 2 +- .../tests/output/src/buildomat_builder.rs | 320 +- .../output/src/buildomat_builder_tagged.rs | 320 +- .../tests/output/src/buildomat_positional.rs | 42 +- .../tests/output/src/cli_gen_builder.rs | 14 +- .../output/src/cli_gen_builder_tagged.rs | 14 +- .../tests/output/src/cli_gen_positional.rs | 4 +- .../tests/output/src/keeper_builder.rs | 176 +- .../tests/output/src/keeper_builder_tagged.rs | 176 +- .../tests/output/src/keeper_positional.rs | 22 +- .../tests/output/src/nexus_builder.rs | 3213 +++++++++-------- .../tests/output/src/nexus_builder_tagged.rs | 3213 +++++++++-------- .../tests/output/src/nexus_positional.rs | 819 +++-- .../output/src/param_collision_positional.rs | 2 + .../output/src/param_overrides_positional.rs | 2 + .../output/src/propolis_server_builder.rs | 381 +- .../src/propolis_server_builder_tagged.rs | 381 +- .../output/src/propolis_server_positional.rs | 99 +- .../output/src/test_default_params_builder.rs | 40 +- .../src/test_default_params_positional.rs | 5 +- .../output/src/test_freeform_response.rs | 3 +- .../output/src/test_renamed_parameters.rs | 3 +- .../src/test_stream_pagination_builder.rs | 32 +- .../src/test_stream_pagination_positional.rs | 5 +- progenitor-impl/tests/test_output.rs | 6 +- progenitor-impl/tests/test_specific.rs | 2 +- 29 files changed, 4839 insertions(+), 4490 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 44bfb38c..9a722e83 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -2332,7 +2332,7 @@ checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" [[package]] name = "typify" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#0d08ac16d864fdb3b2dc25e5e6aadbef58bca67b" +source = "git+https://github.com/oxidecomputer/typify#fa65d747632c2c95d06df9d702cca1d04684e3c2" dependencies = [ "typify-impl", "typify-macro", @@ -2341,7 +2341,7 @@ dependencies = [ [[package]] name = "typify-impl" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#0d08ac16d864fdb3b2dc25e5e6aadbef58bca67b" +source = "git+https://github.com/oxidecomputer/typify#fa65d747632c2c95d06df9d702cca1d04684e3c2" dependencies = [ "heck", "log", @@ -2360,7 +2360,7 @@ dependencies = [ [[package]] name = "typify-macro" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#0d08ac16d864fdb3b2dc25e5e6aadbef58bca67b" +source = "git+https://github.com/oxidecomputer/typify#fa65d747632c2c95d06df9d702cca1d04684e3c2" dependencies = [ "proc-macro2", "quote", diff --git a/progenitor-impl/Cargo.toml b/progenitor-impl/Cargo.toml index 08486785..ef14f781 100644 --- a/progenitor-impl/Cargo.toml +++ b/progenitor-impl/Cargo.toml @@ -29,10 +29,9 @@ expectorate = { workspace = true } futures = { workspace = true } http = { workspace = true } hyper = { workspace = true } +progenitor-client = { workspace = true } reqwest = { workspace = true } rustfmt-wrapper = { workspace = true } semver = { workspace = true } serde_yaml = { workspace = true } tokio = { workspace = true } - -progenitor-client.path = "../progenitor-client" diff --git a/progenitor-impl/src/lib.rs b/progenitor-impl/src/lib.rs index 0b8c7489..665aa225 100644 --- a/progenitor-impl/src/lib.rs +++ b/progenitor-impl/src/lib.rs @@ -406,8 +406,9 @@ impl Generator { let version_str = &spec.info.version; - // The allow(unused_imports) on the `pub use` is necessary with Rust 1.76+, in case the - // generated file is not at the top level of the crate. + // The allow(unused_imports) on the `pub use` is necessary with Rust + // 1.76+, in case the generated file is not at the top level of the + // crate. let file = quote! { // Re-export ResponseValue and Error since those are used by the @@ -512,11 +513,13 @@ impl Generator { .map(|method| self.positional_method(method, has_inner)) .collect::>>()?; - // The allow(unused_imports) on the `pub use` is necessary with Rust 1.76+, in case the - // generated file is not at the top level of the crate. + // The allow(unused_imports) on the `pub use` is necessary with Rust + // 1.76+, in case the generated file is not at the top level of the + // crate. let out = quote! { #[allow(clippy::all)] + #[allow(elided_named_lifetimes)] impl Client { #(#methods)* } @@ -590,8 +593,9 @@ impl Generator { let (traits_and_impls, trait_preludes) = self.builder_tags(input_methods, &tag_info); - // The allow(unused_imports) on the `pub use` is necessary with Rust 1.76+, in case the - // generated file is not at the top level of the crate. + // The allow(unused_imports) on the `pub use` is necessary with Rust + // 1.76+, in case the generated file is not at the top level of the + // crate. let out = quote! { #traits_and_impls @@ -631,12 +635,14 @@ impl Generator { &self.type_space } - /// Whether the generated client needs to use additional crates to support futures. + /// Whether the generated client needs to use additional crates to support + /// futures. pub fn uses_futures(&self) -> bool { self.uses_futures } - /// Whether the generated client needs to use additional crates to support websockets. + /// Whether the generated client needs to use additional crates to support + /// websockets. pub fn uses_websockets(&self) -> bool { self.uses_websockets } diff --git a/progenitor-impl/tests/output/Cargo.toml b/progenitor-impl/tests/output/Cargo.toml index 37eb9b80..18a71439 100644 --- a/progenitor-impl/tests/output/Cargo.toml +++ b/progenitor-impl/tests/output/Cargo.toml @@ -24,7 +24,7 @@ uuid = { features = ["serde", "v4"], version = "1" } [lints.rust] unused_imports = "allow" -unused_variables= "allow" +unused_variables = "allow" [lints.clippy] needless_lifetimes = "allow" diff --git a/progenitor-impl/tests/output/src/buildomat_builder.rs b/progenitor-impl/tests/output/src/buildomat_builder.rs index 05e96584..8be154d2 100644 --- a/progenitor-impl/tests/output/src/buildomat_builder.rs +++ b/progenitor-impl/tests/output/src/buildomat_builder.rs @@ -99,7 +99,7 @@ pub mod types { pub things: ::std::vec::Vec<::std::option::Option>, } - impl From<&ObjWithOptionArray> for ObjWithOptionArray { + impl ::std::convert::From<&ObjWithOptionArray> for ObjWithOptionArray { fn from(value: &ObjWithOptionArray) -> Self { value.clone() } @@ -159,7 +159,7 @@ pub mod types { pub state: ::std::string::String, } - impl From<&Task> for Task { + impl ::std::convert::From<&Task> for Task { fn from(value: &Task) -> Self { value.clone() } @@ -214,7 +214,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&TaskEvent> for TaskEvent { + impl ::std::convert::From<&TaskEvent> for TaskEvent { fn from(value: &TaskEvent) -> Self { value.clone() } @@ -263,7 +263,7 @@ pub mod types { pub size: u64, } - impl From<&TaskOutput> for TaskOutput { + impl ::std::convert::From<&TaskOutput> for TaskOutput { fn from(value: &TaskOutput) -> Self { value.clone() } @@ -313,7 +313,7 @@ pub mod types { pub script: ::std::string::String, } - impl From<&TaskSubmit> for TaskSubmit { + impl ::std::convert::From<&TaskSubmit> for TaskSubmit { fn from(value: &TaskSubmit) -> Self { value.clone() } @@ -350,7 +350,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&TaskSubmitResult> for TaskSubmitResult { + impl ::std::convert::From<&TaskSubmitResult> for TaskSubmitResult { fn from(value: &TaskSubmitResult) -> Self { value.clone() } @@ -387,7 +387,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&UploadedChunk> for UploadedChunk { + impl ::std::convert::From<&UploadedChunk> for UploadedChunk { fn from(value: &UploadedChunk) -> Self { value.clone() } @@ -424,7 +424,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&UserCreate> for UserCreate { + impl ::std::convert::From<&UserCreate> for UserCreate { fn from(value: &UserCreate) -> Self { value.clone() } @@ -471,7 +471,7 @@ pub mod types { pub token: ::std::string::String, } - impl From<&UserCreateResult> for UserCreateResult { + impl ::std::convert::From<&UserCreateResult> for UserCreateResult { fn from(value: &UserCreateResult) -> Self { value.clone() } @@ -513,7 +513,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&WhoamiResult> for WhoamiResult { + impl ::std::convert::From<&WhoamiResult> for WhoamiResult { fn from(value: &WhoamiResult) -> Self { value.clone() } @@ -579,7 +579,7 @@ pub mod types { pub tasks: ::std::vec::Vec, } - impl From<&Worker> for Worker { + impl ::std::convert::From<&Worker> for Worker { fn from(value: &Worker) -> Self { value.clone() } @@ -630,7 +630,7 @@ pub mod types { pub size: i64, } - impl From<&WorkerAddOutput> for WorkerAddOutput { + impl ::std::convert::From<&WorkerAddOutput> for WorkerAddOutput { fn from(value: &WorkerAddOutput) -> Self { value.clone() } @@ -678,7 +678,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&WorkerAppendTask> for WorkerAppendTask { + impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask { fn from(value: &WorkerAppendTask) -> Self { value.clone() } @@ -720,7 +720,7 @@ pub mod types { pub token: ::std::string::String, } - impl From<&WorkerBootstrap> for WorkerBootstrap { + impl ::std::convert::From<&WorkerBootstrap> for WorkerBootstrap { fn from(value: &WorkerBootstrap) -> Self { value.clone() } @@ -757,7 +757,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&WorkerBootstrapResult> for WorkerBootstrapResult { + impl ::std::convert::From<&WorkerBootstrapResult> for WorkerBootstrapResult { fn from(value: &WorkerBootstrapResult) -> Self { value.clone() } @@ -794,7 +794,7 @@ pub mod types { pub failed: bool, } - impl From<&WorkerCompleteTask> for WorkerCompleteTask { + impl ::std::convert::From<&WorkerCompleteTask> for WorkerCompleteTask { fn from(value: &WorkerCompleteTask) -> Self { value.clone() } @@ -836,7 +836,7 @@ pub mod types { pub task: ::std::option::Option, } - impl From<&WorkerPingResult> for WorkerPingResult { + impl ::std::convert::From<&WorkerPingResult> for WorkerPingResult { fn from(value: &WorkerPingResult) -> Self { value.clone() } @@ -886,7 +886,7 @@ pub mod types { pub script: ::std::string::String, } - impl From<&WorkerPingTask> for WorkerPingTask { + impl ::std::convert::From<&WorkerPingTask> for WorkerPingTask { fn from(value: &WorkerPingTask) -> Self { value.clone() } @@ -933,7 +933,7 @@ pub mod types { pub owner: ::std::string::String, } - impl From<&WorkerTask> for WorkerTask { + impl ::std::convert::From<&WorkerTask> for WorkerTask { fn from(value: &WorkerTask) -> Self { value.clone() } @@ -973,7 +973,7 @@ pub mod types { pub workers: ::std::vec::Vec, } - impl From<&WorkersResult> for WorkersResult { + impl ::std::convert::From<&WorkersResult> for WorkersResult { fn from(value: &WorkersResult) -> Self { value.clone() } @@ -999,7 +999,7 @@ pub mod types { >, } - impl Default for ObjWithOptionArray { + impl ::std::default::Default for ObjWithOptionArray { fn default() -> Self { Self { stranger_things: Err("no value supplied for stranger_things".to_string()), @@ -1011,8 +1011,8 @@ pub mod types { impl ObjWithOptionArray { pub fn stranger_things(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, + T::Error: ::std::fmt::Display, { self.stranger_things = value.try_into().map_err(|e| { format!("error converting supplied value for stranger_things: {}", e) @@ -1021,8 +1021,8 @@ pub mod types { } pub fn things(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, + T::Error: ::std::fmt::Display, { self.things = value .try_into() @@ -1043,7 +1043,7 @@ pub mod types { } } - impl From for ObjWithOptionArray { + impl ::std::convert::From for ObjWithOptionArray { fn from(value: super::ObjWithOptionArray) -> Self { Self { stranger_things: Ok(value.stranger_things), @@ -1064,7 +1064,7 @@ pub mod types { state: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Task { + impl ::std::default::Default for Task { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1079,8 +1079,8 @@ pub mod types { impl Task { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1089,8 +1089,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1099,8 +1099,8 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { format!("error converting supplied value for output_rules: {}", e) @@ -1109,8 +1109,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -1119,8 +1119,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -1142,7 +1142,7 @@ pub mod types { } } - impl From for Task { + impl ::std::convert::From for Task { fn from(value: super::Task) -> Self { Self { id: Ok(value.id), @@ -1163,7 +1163,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for TaskEvent { + impl ::std::default::Default for TaskEvent { fn default() -> Self { Self { payload: Err("no value supplied for payload".to_string()), @@ -1177,8 +1177,8 @@ pub mod types { impl TaskEvent { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.payload = value .try_into() @@ -1187,8 +1187,8 @@ pub mod types { } pub fn seq(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.seq = value .try_into() @@ -1197,8 +1197,8 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.stream = value .try_into() @@ -1207,8 +1207,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -1231,7 +1231,7 @@ pub mod types { } } - impl From for TaskEvent { + impl ::std::convert::From for TaskEvent { fn from(value: super::TaskEvent) -> Self { Self { payload: Ok(value.payload), @@ -1249,7 +1249,7 @@ pub mod types { size: ::std::result::Result, } - impl Default for TaskOutput { + impl ::std::default::Default for TaskOutput { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1262,8 +1262,8 @@ pub mod types { impl TaskOutput { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1272,8 +1272,8 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.path = value .try_into() @@ -1282,8 +1282,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -1305,7 +1305,7 @@ pub mod types { } } - impl From for TaskOutput { + impl ::std::convert::From for TaskOutput { fn from(value: super::TaskOutput) -> Self { Self { id: Ok(value.id), @@ -1325,7 +1325,7 @@ pub mod types { script: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for TaskSubmit { + impl ::std::default::Default for TaskSubmit { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -1338,8 +1338,8 @@ pub mod types { impl TaskSubmit { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1348,8 +1348,8 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { format!("error converting supplied value for output_rules: {}", e) @@ -1358,8 +1358,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -1381,7 +1381,7 @@ pub mod types { } } - impl From for TaskSubmit { + impl ::std::convert::From for TaskSubmit { fn from(value: super::TaskSubmit) -> Self { Self { name: Ok(value.name), @@ -1396,7 +1396,7 @@ pub mod types { id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for TaskSubmitResult { + impl ::std::default::Default for TaskSubmitResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1407,8 +1407,8 @@ pub mod types { impl TaskSubmitResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1426,7 +1426,7 @@ pub mod types { } } - impl From for TaskSubmitResult { + impl ::std::convert::From for TaskSubmitResult { fn from(value: super::TaskSubmitResult) -> Self { Self { id: Ok(value.id) } } @@ -1437,7 +1437,7 @@ pub mod types { id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for UploadedChunk { + impl ::std::default::Default for UploadedChunk { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1448,8 +1448,8 @@ pub mod types { impl UploadedChunk { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1467,7 +1467,7 @@ pub mod types { } } - impl From for UploadedChunk { + impl ::std::convert::From for UploadedChunk { fn from(value: super::UploadedChunk) -> Self { Self { id: Ok(value.id) } } @@ -1478,7 +1478,7 @@ pub mod types { name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for UserCreate { + impl ::std::default::Default for UserCreate { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -1489,8 +1489,8 @@ pub mod types { impl UserCreate { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1508,7 +1508,7 @@ pub mod types { } } - impl From for UserCreate { + impl ::std::convert::From for UserCreate { fn from(value: super::UserCreate) -> Self { Self { name: Ok(value.name), @@ -1523,7 +1523,7 @@ pub mod types { token: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for UserCreateResult { + impl ::std::default::Default for UserCreateResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1536,8 +1536,8 @@ pub mod types { impl UserCreateResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1546,8 +1546,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1556,8 +1556,8 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.token = value .try_into() @@ -1579,7 +1579,7 @@ pub mod types { } } - impl From for UserCreateResult { + impl ::std::convert::From for UserCreateResult { fn from(value: super::UserCreateResult) -> Self { Self { id: Ok(value.id), @@ -1595,7 +1595,7 @@ pub mod types { name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WhoamiResult { + impl ::std::default::Default for WhoamiResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1607,8 +1607,8 @@ pub mod types { impl WhoamiResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1617,8 +1617,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1639,7 +1639,7 @@ pub mod types { } } - impl From for WhoamiResult { + impl ::std::convert::From for WhoamiResult { fn from(value: super::WhoamiResult) -> Self { Self { id: Ok(value.id), @@ -1664,7 +1664,7 @@ pub mod types { tasks: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl Default for Worker { + impl ::std::default::Default for Worker { fn default() -> Self { Self { deleted: Err("no value supplied for deleted".to_string()), @@ -1680,8 +1680,8 @@ pub mod types { impl Worker { pub fn deleted(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.deleted = value .try_into() @@ -1690,8 +1690,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1700,8 +1700,8 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.instance_id = value .try_into() @@ -1710,10 +1710,10 @@ pub mod types { } pub fn lastping(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.lastping = value .try_into() @@ -1722,8 +1722,8 @@ pub mod types { } pub fn recycle(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.recycle = value .try_into() @@ -1732,8 +1732,8 @@ pub mod types { } pub fn tasks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.tasks = value .try_into() @@ -1758,7 +1758,7 @@ pub mod types { } } - impl From for Worker { + impl ::std::convert::From for Worker { fn from(value: super::Worker) -> Self { Self { deleted: Ok(value.deleted), @@ -1781,7 +1781,7 @@ pub mod types { size: ::std::result::Result, } - impl Default for WorkerAddOutput { + impl ::std::default::Default for WorkerAddOutput { fn default() -> Self { Self { chunks: Err("no value supplied for chunks".to_string()), @@ -1794,8 +1794,8 @@ pub mod types { impl WorkerAddOutput { pub fn chunks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.chunks = value .try_into() @@ -1804,8 +1804,8 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.path = value .try_into() @@ -1814,8 +1814,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -1837,7 +1837,7 @@ pub mod types { } } - impl From for WorkerAddOutput { + impl ::std::convert::From for WorkerAddOutput { fn from(value: super::WorkerAddOutput) -> Self { Self { chunks: Ok(value.chunks), @@ -1855,7 +1855,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for WorkerAppendTask { + impl ::std::default::Default for WorkerAppendTask { fn default() -> Self { Self { payload: Err("no value supplied for payload".to_string()), @@ -1868,8 +1868,8 @@ pub mod types { impl WorkerAppendTask { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.payload = value .try_into() @@ -1878,8 +1878,8 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.stream = value .try_into() @@ -1888,8 +1888,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -1911,7 +1911,7 @@ pub mod types { } } - impl From for WorkerAppendTask { + impl ::std::convert::From for WorkerAppendTask { fn from(value: super::WorkerAppendTask) -> Self { Self { payload: Ok(value.payload), @@ -1927,7 +1927,7 @@ pub mod types { token: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerBootstrap { + impl ::std::default::Default for WorkerBootstrap { fn default() -> Self { Self { bootstrap: Err("no value supplied for bootstrap".to_string()), @@ -1939,8 +1939,8 @@ pub mod types { impl WorkerBootstrap { pub fn bootstrap(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.bootstrap = value .try_into() @@ -1949,8 +1949,8 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.token = value .try_into() @@ -1971,7 +1971,7 @@ pub mod types { } } - impl From for WorkerBootstrap { + impl ::std::convert::From for WorkerBootstrap { fn from(value: super::WorkerBootstrap) -> Self { Self { bootstrap: Ok(value.bootstrap), @@ -1985,7 +1985,7 @@ pub mod types { id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerBootstrapResult { + impl ::std::default::Default for WorkerBootstrapResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1996,8 +1996,8 @@ pub mod types { impl WorkerBootstrapResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2015,7 +2015,7 @@ pub mod types { } } - impl From for WorkerBootstrapResult { + impl ::std::convert::From for WorkerBootstrapResult { fn from(value: super::WorkerBootstrapResult) -> Self { Self { id: Ok(value.id) } } @@ -2026,7 +2026,7 @@ pub mod types { failed: ::std::result::Result, } - impl Default for WorkerCompleteTask { + impl ::std::default::Default for WorkerCompleteTask { fn default() -> Self { Self { failed: Err("no value supplied for failed".to_string()), @@ -2037,8 +2037,8 @@ pub mod types { impl WorkerCompleteTask { pub fn failed(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.failed = value .try_into() @@ -2058,7 +2058,7 @@ pub mod types { } } - impl From for WorkerCompleteTask { + impl ::std::convert::From for WorkerCompleteTask { fn from(value: super::WorkerCompleteTask) -> Self { Self { failed: Ok(value.failed), @@ -2075,7 +2075,7 @@ pub mod types { >, } - impl Default for WorkerPingResult { + impl ::std::default::Default for WorkerPingResult { fn default() -> Self { Self { poweroff: Err("no value supplied for poweroff".to_string()), @@ -2087,8 +2087,8 @@ pub mod types { impl WorkerPingResult { pub fn poweroff(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.poweroff = value .try_into() @@ -2097,8 +2097,8 @@ pub mod types { } pub fn task(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.task = value .try_into() @@ -2119,7 +2119,7 @@ pub mod types { } } - impl From for WorkerPingResult { + impl ::std::convert::From for WorkerPingResult { fn from(value: super::WorkerPingResult) -> Self { Self { poweroff: Ok(value.poweroff), @@ -2138,7 +2138,7 @@ pub mod types { script: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerPingTask { + impl ::std::default::Default for WorkerPingTask { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -2151,8 +2151,8 @@ pub mod types { impl WorkerPingTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2161,8 +2161,8 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { format!("error converting supplied value for output_rules: {}", e) @@ -2171,8 +2171,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -2194,7 +2194,7 @@ pub mod types { } } - impl From for WorkerPingTask { + impl ::std::convert::From for WorkerPingTask { fn from(value: super::WorkerPingTask) -> Self { Self { id: Ok(value.id), @@ -2211,7 +2211,7 @@ pub mod types { owner: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerTask { + impl ::std::default::Default for WorkerTask { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -2224,8 +2224,8 @@ pub mod types { impl WorkerTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2234,8 +2234,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2244,8 +2244,8 @@ pub mod types { } pub fn owner(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.owner = value .try_into() @@ -2267,7 +2267,7 @@ pub mod types { } } - impl From for WorkerTask { + impl ::std::convert::From for WorkerTask { fn from(value: super::WorkerTask) -> Self { Self { id: Ok(value.id), @@ -2282,7 +2282,7 @@ pub mod types { workers: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl Default for WorkersResult { + impl ::std::default::Default for WorkersResult { fn default() -> Self { Self { workers: Err("no value supplied for workers".to_string()), @@ -2293,8 +2293,8 @@ pub mod types { impl WorkersResult { pub fn workers(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.workers = value .try_into() @@ -2314,7 +2314,7 @@ pub mod types { } } - impl From for WorkersResult { + impl ::std::convert::From for WorkersResult { fn from(value: super::WorkersResult) -> Self { Self { workers: Ok(value.workers), diff --git a/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs b/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs index 79e428a9..e13b3571 100644 --- a/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs @@ -97,7 +97,7 @@ pub mod types { pub things: ::std::vec::Vec<::std::option::Option>, } - impl From<&ObjWithOptionArray> for ObjWithOptionArray { + impl ::std::convert::From<&ObjWithOptionArray> for ObjWithOptionArray { fn from(value: &ObjWithOptionArray) -> Self { value.clone() } @@ -155,7 +155,7 @@ pub mod types { pub state: ::std::string::String, } - impl From<&Task> for Task { + impl ::std::convert::From<&Task> for Task { fn from(value: &Task) -> Self { value.clone() } @@ -208,7 +208,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&TaskEvent> for TaskEvent { + impl ::std::convert::From<&TaskEvent> for TaskEvent { fn from(value: &TaskEvent) -> Self { value.clone() } @@ -255,7 +255,7 @@ pub mod types { pub size: u64, } - impl From<&TaskOutput> for TaskOutput { + impl ::std::convert::From<&TaskOutput> for TaskOutput { fn from(value: &TaskOutput) -> Self { value.clone() } @@ -303,7 +303,7 @@ pub mod types { pub script: ::std::string::String, } - impl From<&TaskSubmit> for TaskSubmit { + impl ::std::convert::From<&TaskSubmit> for TaskSubmit { fn from(value: &TaskSubmit) -> Self { value.clone() } @@ -338,7 +338,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&TaskSubmitResult> for TaskSubmitResult { + impl ::std::convert::From<&TaskSubmitResult> for TaskSubmitResult { fn from(value: &TaskSubmitResult) -> Self { value.clone() } @@ -373,7 +373,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&UploadedChunk> for UploadedChunk { + impl ::std::convert::From<&UploadedChunk> for UploadedChunk { fn from(value: &UploadedChunk) -> Self { value.clone() } @@ -408,7 +408,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&UserCreate> for UserCreate { + impl ::std::convert::From<&UserCreate> for UserCreate { fn from(value: &UserCreate) -> Self { value.clone() } @@ -453,7 +453,7 @@ pub mod types { pub token: ::std::string::String, } - impl From<&UserCreateResult> for UserCreateResult { + impl ::std::convert::From<&UserCreateResult> for UserCreateResult { fn from(value: &UserCreateResult) -> Self { value.clone() } @@ -493,7 +493,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&WhoamiResult> for WhoamiResult { + impl ::std::convert::From<&WhoamiResult> for WhoamiResult { fn from(value: &WhoamiResult) -> Self { value.clone() } @@ -557,7 +557,7 @@ pub mod types { pub tasks: ::std::vec::Vec, } - impl From<&Worker> for Worker { + impl ::std::convert::From<&Worker> for Worker { fn from(value: &Worker) -> Self { value.clone() } @@ -606,7 +606,7 @@ pub mod types { pub size: i64, } - impl From<&WorkerAddOutput> for WorkerAddOutput { + impl ::std::convert::From<&WorkerAddOutput> for WorkerAddOutput { fn from(value: &WorkerAddOutput) -> Self { value.clone() } @@ -652,7 +652,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&WorkerAppendTask> for WorkerAppendTask { + impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask { fn from(value: &WorkerAppendTask) -> Self { value.clone() } @@ -692,7 +692,7 @@ pub mod types { pub token: ::std::string::String, } - impl From<&WorkerBootstrap> for WorkerBootstrap { + impl ::std::convert::From<&WorkerBootstrap> for WorkerBootstrap { fn from(value: &WorkerBootstrap) -> Self { value.clone() } @@ -727,7 +727,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&WorkerBootstrapResult> for WorkerBootstrapResult { + impl ::std::convert::From<&WorkerBootstrapResult> for WorkerBootstrapResult { fn from(value: &WorkerBootstrapResult) -> Self { value.clone() } @@ -762,7 +762,7 @@ pub mod types { pub failed: bool, } - impl From<&WorkerCompleteTask> for WorkerCompleteTask { + impl ::std::convert::From<&WorkerCompleteTask> for WorkerCompleteTask { fn from(value: &WorkerCompleteTask) -> Self { value.clone() } @@ -802,7 +802,7 @@ pub mod types { pub task: ::std::option::Option, } - impl From<&WorkerPingResult> for WorkerPingResult { + impl ::std::convert::From<&WorkerPingResult> for WorkerPingResult { fn from(value: &WorkerPingResult) -> Self { value.clone() } @@ -850,7 +850,7 @@ pub mod types { pub script: ::std::string::String, } - impl From<&WorkerPingTask> for WorkerPingTask { + impl ::std::convert::From<&WorkerPingTask> for WorkerPingTask { fn from(value: &WorkerPingTask) -> Self { value.clone() } @@ -895,7 +895,7 @@ pub mod types { pub owner: ::std::string::String, } - impl From<&WorkerTask> for WorkerTask { + impl ::std::convert::From<&WorkerTask> for WorkerTask { fn from(value: &WorkerTask) -> Self { value.clone() } @@ -933,7 +933,7 @@ pub mod types { pub workers: ::std::vec::Vec, } - impl From<&WorkersResult> for WorkersResult { + impl ::std::convert::From<&WorkersResult> for WorkersResult { fn from(value: &WorkersResult) -> Self { value.clone() } @@ -959,7 +959,7 @@ pub mod types { >, } - impl Default for ObjWithOptionArray { + impl ::std::default::Default for ObjWithOptionArray { fn default() -> Self { Self { stranger_things: Err("no value supplied for stranger_things".to_string()), @@ -971,8 +971,8 @@ pub mod types { impl ObjWithOptionArray { pub fn stranger_things(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, + T::Error: ::std::fmt::Display, { self.stranger_things = value.try_into().map_err(|e| { format!("error converting supplied value for stranger_things: {}", e) @@ -981,8 +981,8 @@ pub mod types { } pub fn things(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, + T::Error: ::std::fmt::Display, { self.things = value .try_into() @@ -1003,7 +1003,7 @@ pub mod types { } } - impl From for ObjWithOptionArray { + impl ::std::convert::From for ObjWithOptionArray { fn from(value: super::ObjWithOptionArray) -> Self { Self { stranger_things: Ok(value.stranger_things), @@ -1024,7 +1024,7 @@ pub mod types { state: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Task { + impl ::std::default::Default for Task { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1039,8 +1039,8 @@ pub mod types { impl Task { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1049,8 +1049,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1059,8 +1059,8 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { format!("error converting supplied value for output_rules: {}", e) @@ -1069,8 +1069,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -1079,8 +1079,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -1102,7 +1102,7 @@ pub mod types { } } - impl From for Task { + impl ::std::convert::From for Task { fn from(value: super::Task) -> Self { Self { id: Ok(value.id), @@ -1123,7 +1123,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for TaskEvent { + impl ::std::default::Default for TaskEvent { fn default() -> Self { Self { payload: Err("no value supplied for payload".to_string()), @@ -1137,8 +1137,8 @@ pub mod types { impl TaskEvent { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.payload = value .try_into() @@ -1147,8 +1147,8 @@ pub mod types { } pub fn seq(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.seq = value .try_into() @@ -1157,8 +1157,8 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.stream = value .try_into() @@ -1167,8 +1167,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -1191,7 +1191,7 @@ pub mod types { } } - impl From for TaskEvent { + impl ::std::convert::From for TaskEvent { fn from(value: super::TaskEvent) -> Self { Self { payload: Ok(value.payload), @@ -1209,7 +1209,7 @@ pub mod types { size: ::std::result::Result, } - impl Default for TaskOutput { + impl ::std::default::Default for TaskOutput { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1222,8 +1222,8 @@ pub mod types { impl TaskOutput { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1232,8 +1232,8 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.path = value .try_into() @@ -1242,8 +1242,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -1265,7 +1265,7 @@ pub mod types { } } - impl From for TaskOutput { + impl ::std::convert::From for TaskOutput { fn from(value: super::TaskOutput) -> Self { Self { id: Ok(value.id), @@ -1285,7 +1285,7 @@ pub mod types { script: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for TaskSubmit { + impl ::std::default::Default for TaskSubmit { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -1298,8 +1298,8 @@ pub mod types { impl TaskSubmit { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1308,8 +1308,8 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { format!("error converting supplied value for output_rules: {}", e) @@ -1318,8 +1318,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -1341,7 +1341,7 @@ pub mod types { } } - impl From for TaskSubmit { + impl ::std::convert::From for TaskSubmit { fn from(value: super::TaskSubmit) -> Self { Self { name: Ok(value.name), @@ -1356,7 +1356,7 @@ pub mod types { id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for TaskSubmitResult { + impl ::std::default::Default for TaskSubmitResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1367,8 +1367,8 @@ pub mod types { impl TaskSubmitResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1386,7 +1386,7 @@ pub mod types { } } - impl From for TaskSubmitResult { + impl ::std::convert::From for TaskSubmitResult { fn from(value: super::TaskSubmitResult) -> Self { Self { id: Ok(value.id) } } @@ -1397,7 +1397,7 @@ pub mod types { id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for UploadedChunk { + impl ::std::default::Default for UploadedChunk { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1408,8 +1408,8 @@ pub mod types { impl UploadedChunk { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1427,7 +1427,7 @@ pub mod types { } } - impl From for UploadedChunk { + impl ::std::convert::From for UploadedChunk { fn from(value: super::UploadedChunk) -> Self { Self { id: Ok(value.id) } } @@ -1438,7 +1438,7 @@ pub mod types { name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for UserCreate { + impl ::std::default::Default for UserCreate { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -1449,8 +1449,8 @@ pub mod types { impl UserCreate { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1468,7 +1468,7 @@ pub mod types { } } - impl From for UserCreate { + impl ::std::convert::From for UserCreate { fn from(value: super::UserCreate) -> Self { Self { name: Ok(value.name), @@ -1483,7 +1483,7 @@ pub mod types { token: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for UserCreateResult { + impl ::std::default::Default for UserCreateResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1496,8 +1496,8 @@ pub mod types { impl UserCreateResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1506,8 +1506,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1516,8 +1516,8 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.token = value .try_into() @@ -1539,7 +1539,7 @@ pub mod types { } } - impl From for UserCreateResult { + impl ::std::convert::From for UserCreateResult { fn from(value: super::UserCreateResult) -> Self { Self { id: Ok(value.id), @@ -1555,7 +1555,7 @@ pub mod types { name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WhoamiResult { + impl ::std::default::Default for WhoamiResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1567,8 +1567,8 @@ pub mod types { impl WhoamiResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1577,8 +1577,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1599,7 +1599,7 @@ pub mod types { } } - impl From for WhoamiResult { + impl ::std::convert::From for WhoamiResult { fn from(value: super::WhoamiResult) -> Self { Self { id: Ok(value.id), @@ -1624,7 +1624,7 @@ pub mod types { tasks: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl Default for Worker { + impl ::std::default::Default for Worker { fn default() -> Self { Self { deleted: Err("no value supplied for deleted".to_string()), @@ -1640,8 +1640,8 @@ pub mod types { impl Worker { pub fn deleted(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.deleted = value .try_into() @@ -1650,8 +1650,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1660,8 +1660,8 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.instance_id = value .try_into() @@ -1670,10 +1670,10 @@ pub mod types { } pub fn lastping(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.lastping = value .try_into() @@ -1682,8 +1682,8 @@ pub mod types { } pub fn recycle(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.recycle = value .try_into() @@ -1692,8 +1692,8 @@ pub mod types { } pub fn tasks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.tasks = value .try_into() @@ -1718,7 +1718,7 @@ pub mod types { } } - impl From for Worker { + impl ::std::convert::From for Worker { fn from(value: super::Worker) -> Self { Self { deleted: Ok(value.deleted), @@ -1741,7 +1741,7 @@ pub mod types { size: ::std::result::Result, } - impl Default for WorkerAddOutput { + impl ::std::default::Default for WorkerAddOutput { fn default() -> Self { Self { chunks: Err("no value supplied for chunks".to_string()), @@ -1754,8 +1754,8 @@ pub mod types { impl WorkerAddOutput { pub fn chunks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.chunks = value .try_into() @@ -1764,8 +1764,8 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.path = value .try_into() @@ -1774,8 +1774,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -1797,7 +1797,7 @@ pub mod types { } } - impl From for WorkerAddOutput { + impl ::std::convert::From for WorkerAddOutput { fn from(value: super::WorkerAddOutput) -> Self { Self { chunks: Ok(value.chunks), @@ -1815,7 +1815,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for WorkerAppendTask { + impl ::std::default::Default for WorkerAppendTask { fn default() -> Self { Self { payload: Err("no value supplied for payload".to_string()), @@ -1828,8 +1828,8 @@ pub mod types { impl WorkerAppendTask { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.payload = value .try_into() @@ -1838,8 +1838,8 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.stream = value .try_into() @@ -1848,8 +1848,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -1871,7 +1871,7 @@ pub mod types { } } - impl From for WorkerAppendTask { + impl ::std::convert::From for WorkerAppendTask { fn from(value: super::WorkerAppendTask) -> Self { Self { payload: Ok(value.payload), @@ -1887,7 +1887,7 @@ pub mod types { token: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerBootstrap { + impl ::std::default::Default for WorkerBootstrap { fn default() -> Self { Self { bootstrap: Err("no value supplied for bootstrap".to_string()), @@ -1899,8 +1899,8 @@ pub mod types { impl WorkerBootstrap { pub fn bootstrap(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.bootstrap = value .try_into() @@ -1909,8 +1909,8 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.token = value .try_into() @@ -1931,7 +1931,7 @@ pub mod types { } } - impl From for WorkerBootstrap { + impl ::std::convert::From for WorkerBootstrap { fn from(value: super::WorkerBootstrap) -> Self { Self { bootstrap: Ok(value.bootstrap), @@ -1945,7 +1945,7 @@ pub mod types { id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerBootstrapResult { + impl ::std::default::Default for WorkerBootstrapResult { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1956,8 +1956,8 @@ pub mod types { impl WorkerBootstrapResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1975,7 +1975,7 @@ pub mod types { } } - impl From for WorkerBootstrapResult { + impl ::std::convert::From for WorkerBootstrapResult { fn from(value: super::WorkerBootstrapResult) -> Self { Self { id: Ok(value.id) } } @@ -1986,7 +1986,7 @@ pub mod types { failed: ::std::result::Result, } - impl Default for WorkerCompleteTask { + impl ::std::default::Default for WorkerCompleteTask { fn default() -> Self { Self { failed: Err("no value supplied for failed".to_string()), @@ -1997,8 +1997,8 @@ pub mod types { impl WorkerCompleteTask { pub fn failed(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.failed = value .try_into() @@ -2018,7 +2018,7 @@ pub mod types { } } - impl From for WorkerCompleteTask { + impl ::std::convert::From for WorkerCompleteTask { fn from(value: super::WorkerCompleteTask) -> Self { Self { failed: Ok(value.failed), @@ -2035,7 +2035,7 @@ pub mod types { >, } - impl Default for WorkerPingResult { + impl ::std::default::Default for WorkerPingResult { fn default() -> Self { Self { poweroff: Err("no value supplied for poweroff".to_string()), @@ -2047,8 +2047,8 @@ pub mod types { impl WorkerPingResult { pub fn poweroff(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.poweroff = value .try_into() @@ -2057,8 +2057,8 @@ pub mod types { } pub fn task(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.task = value .try_into() @@ -2079,7 +2079,7 @@ pub mod types { } } - impl From for WorkerPingResult { + impl ::std::convert::From for WorkerPingResult { fn from(value: super::WorkerPingResult) -> Self { Self { poweroff: Ok(value.poweroff), @@ -2098,7 +2098,7 @@ pub mod types { script: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerPingTask { + impl ::std::default::Default for WorkerPingTask { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -2111,8 +2111,8 @@ pub mod types { impl WorkerPingTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2121,8 +2121,8 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { format!("error converting supplied value for output_rules: {}", e) @@ -2131,8 +2131,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -2154,7 +2154,7 @@ pub mod types { } } - impl From for WorkerPingTask { + impl ::std::convert::From for WorkerPingTask { fn from(value: super::WorkerPingTask) -> Self { Self { id: Ok(value.id), @@ -2171,7 +2171,7 @@ pub mod types { owner: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for WorkerTask { + impl ::std::default::Default for WorkerTask { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -2184,8 +2184,8 @@ pub mod types { impl WorkerTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2194,8 +2194,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2204,8 +2204,8 @@ pub mod types { } pub fn owner(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.owner = value .try_into() @@ -2227,7 +2227,7 @@ pub mod types { } } - impl From for WorkerTask { + impl ::std::convert::From for WorkerTask { fn from(value: super::WorkerTask) -> Self { Self { id: Ok(value.id), @@ -2242,7 +2242,7 @@ pub mod types { workers: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl Default for WorkersResult { + impl ::std::default::Default for WorkersResult { fn default() -> Self { Self { workers: Err("no value supplied for workers".to_string()), @@ -2253,8 +2253,8 @@ pub mod types { impl WorkersResult { pub fn workers(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.workers = value .try_into() @@ -2274,7 +2274,7 @@ pub mod types { } } - impl From for WorkersResult { + impl ::std::convert::From for WorkersResult { fn from(value: super::WorkersResult) -> Self { Self { workers: Ok(value.workers), diff --git a/progenitor-impl/tests/output/src/buildomat_positional.rs b/progenitor-impl/tests/output/src/buildomat_positional.rs index d448699b..ed39b931 100644 --- a/progenitor-impl/tests/output/src/buildomat_positional.rs +++ b/progenitor-impl/tests/output/src/buildomat_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -97,7 +98,7 @@ pub mod types { pub things: ::std::vec::Vec<::std::option::Option>, } - impl From<&ObjWithOptionArray> for ObjWithOptionArray { + impl ::std::convert::From<&ObjWithOptionArray> for ObjWithOptionArray { fn from(value: &ObjWithOptionArray) -> Self { value.clone() } @@ -149,7 +150,7 @@ pub mod types { pub state: ::std::string::String, } - impl From<&Task> for Task { + impl ::std::convert::From<&Task> for Task { fn from(value: &Task) -> Self { value.clone() } @@ -196,7 +197,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&TaskEvent> for TaskEvent { + impl ::std::convert::From<&TaskEvent> for TaskEvent { fn from(value: &TaskEvent) -> Self { value.clone() } @@ -237,7 +238,7 @@ pub mod types { pub size: u64, } - impl From<&TaskOutput> for TaskOutput { + impl ::std::convert::From<&TaskOutput> for TaskOutput { fn from(value: &TaskOutput) -> Self { value.clone() } @@ -279,7 +280,7 @@ pub mod types { pub script: ::std::string::String, } - impl From<&TaskSubmit> for TaskSubmit { + impl ::std::convert::From<&TaskSubmit> for TaskSubmit { fn from(value: &TaskSubmit) -> Self { value.clone() } @@ -308,7 +309,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&TaskSubmitResult> for TaskSubmitResult { + impl ::std::convert::From<&TaskSubmitResult> for TaskSubmitResult { fn from(value: &TaskSubmitResult) -> Self { value.clone() } @@ -337,7 +338,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&UploadedChunk> for UploadedChunk { + impl ::std::convert::From<&UploadedChunk> for UploadedChunk { fn from(value: &UploadedChunk) -> Self { value.clone() } @@ -366,7 +367,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&UserCreate> for UserCreate { + impl ::std::convert::From<&UserCreate> for UserCreate { fn from(value: &UserCreate) -> Self { value.clone() } @@ -405,7 +406,7 @@ pub mod types { pub token: ::std::string::String, } - impl From<&UserCreateResult> for UserCreateResult { + impl ::std::convert::From<&UserCreateResult> for UserCreateResult { fn from(value: &UserCreateResult) -> Self { value.clone() } @@ -439,7 +440,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&WhoamiResult> for WhoamiResult { + impl ::std::convert::From<&WhoamiResult> for WhoamiResult { fn from(value: &WhoamiResult) -> Self { value.clone() } @@ -497,7 +498,7 @@ pub mod types { pub tasks: ::std::vec::Vec, } - impl From<&Worker> for Worker { + impl ::std::convert::From<&Worker> for Worker { fn from(value: &Worker) -> Self { value.clone() } @@ -540,7 +541,7 @@ pub mod types { pub size: i64, } - impl From<&WorkerAddOutput> for WorkerAddOutput { + impl ::std::convert::From<&WorkerAddOutput> for WorkerAddOutput { fn from(value: &WorkerAddOutput) -> Self { value.clone() } @@ -580,7 +581,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&WorkerAppendTask> for WorkerAppendTask { + impl ::std::convert::From<&WorkerAppendTask> for WorkerAppendTask { fn from(value: &WorkerAppendTask) -> Self { value.clone() } @@ -614,7 +615,7 @@ pub mod types { pub token: ::std::string::String, } - impl From<&WorkerBootstrap> for WorkerBootstrap { + impl ::std::convert::From<&WorkerBootstrap> for WorkerBootstrap { fn from(value: &WorkerBootstrap) -> Self { value.clone() } @@ -643,7 +644,7 @@ pub mod types { pub id: ::std::string::String, } - impl From<&WorkerBootstrapResult> for WorkerBootstrapResult { + impl ::std::convert::From<&WorkerBootstrapResult> for WorkerBootstrapResult { fn from(value: &WorkerBootstrapResult) -> Self { value.clone() } @@ -672,7 +673,7 @@ pub mod types { pub failed: bool, } - impl From<&WorkerCompleteTask> for WorkerCompleteTask { + impl ::std::convert::From<&WorkerCompleteTask> for WorkerCompleteTask { fn from(value: &WorkerCompleteTask) -> Self { value.clone() } @@ -706,7 +707,7 @@ pub mod types { pub task: ::std::option::Option, } - impl From<&WorkerPingResult> for WorkerPingResult { + impl ::std::convert::From<&WorkerPingResult> for WorkerPingResult { fn from(value: &WorkerPingResult) -> Self { value.clone() } @@ -748,7 +749,7 @@ pub mod types { pub script: ::std::string::String, } - impl From<&WorkerPingTask> for WorkerPingTask { + impl ::std::convert::From<&WorkerPingTask> for WorkerPingTask { fn from(value: &WorkerPingTask) -> Self { value.clone() } @@ -787,7 +788,7 @@ pub mod types { pub owner: ::std::string::String, } - impl From<&WorkerTask> for WorkerTask { + impl ::std::convert::From<&WorkerTask> for WorkerTask { fn from(value: &WorkerTask) -> Self { value.clone() } @@ -819,7 +820,7 @@ pub mod types { pub workers: ::std::vec::Vec, } - impl From<&WorkersResult> for WorkersResult { + impl ::std::convert::From<&WorkersResult> for WorkersResult { fn from(value: &WorkersResult) -> Self { value.clone() } @@ -887,6 +888,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `POST` request to `/v1/control/hold` pub async fn control_hold<'a>(&'a self) -> Result, Error<()>> { diff --git a/progenitor-impl/tests/output/src/cli_gen_builder.rs b/progenitor-impl/tests/output/src/cli_gen_builder.rs index 67d9feda..b4213db6 100644 --- a/progenitor-impl/tests/output/src/cli_gen_builder.rs +++ b/progenitor-impl/tests/output/src/cli_gen_builder.rs @@ -64,7 +64,7 @@ pub mod types { pub required: ::serde_json::Value, } - impl From<&UnoBody> for UnoBody { + impl ::std::convert::From<&UnoBody> for UnoBody { fn from(value: &UnoBody) -> Self { value.clone() } @@ -87,7 +87,7 @@ pub mod types { required: ::std::result::Result<::serde_json::Value, ::std::string::String>, } - impl Default for UnoBody { + impl ::std::default::Default for UnoBody { fn default() -> Self { Self { gateway: Ok(Default::default()), @@ -99,8 +99,8 @@ pub mod types { impl UnoBody { pub fn gateway(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.gateway = value .try_into() @@ -109,8 +109,8 @@ pub mod types { } pub fn required(mut self, value: T) -> Self where - T: std::convert::TryInto<::serde_json::Value>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::serde_json::Value>, + T::Error: ::std::fmt::Display, { self.required = value .try_into() @@ -131,7 +131,7 @@ pub mod types { } } - impl From for UnoBody { + impl ::std::convert::From for UnoBody { fn from(value: super::UnoBody) -> Self { Self { gateway: Ok(value.gateway), diff --git a/progenitor-impl/tests/output/src/cli_gen_builder_tagged.rs b/progenitor-impl/tests/output/src/cli_gen_builder_tagged.rs index bdcf2133..f5ec0d66 100644 --- a/progenitor-impl/tests/output/src/cli_gen_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/cli_gen_builder_tagged.rs @@ -62,7 +62,7 @@ pub mod types { pub required: ::serde_json::Value, } - impl From<&UnoBody> for UnoBody { + impl ::std::convert::From<&UnoBody> for UnoBody { fn from(value: &UnoBody) -> Self { value.clone() } @@ -85,7 +85,7 @@ pub mod types { required: ::std::result::Result<::serde_json::Value, ::std::string::String>, } - impl Default for UnoBody { + impl ::std::default::Default for UnoBody { fn default() -> Self { Self { gateway: Ok(Default::default()), @@ -97,8 +97,8 @@ pub mod types { impl UnoBody { pub fn gateway(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.gateway = value .try_into() @@ -107,8 +107,8 @@ pub mod types { } pub fn required(mut self, value: T) -> Self where - T: std::convert::TryInto<::serde_json::Value>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::serde_json::Value>, + T::Error: ::std::fmt::Display, { self.required = value .try_into() @@ -129,7 +129,7 @@ pub mod types { } } - impl From for UnoBody { + impl ::std::convert::From for UnoBody { fn from(value: super::UnoBody) -> Self { Self { gateway: Ok(value.gateway), diff --git a/progenitor-impl/tests/output/src/cli_gen_positional.rs b/progenitor-impl/tests/output/src/cli_gen_positional.rs index 8976a11d..1d36cbf8 100644 --- a/progenitor-impl/tests/output/src/cli_gen_positional.rs +++ b/progenitor-impl/tests/output/src/cli_gen_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -62,7 +63,7 @@ pub mod types { pub required: ::serde_json::Value, } - impl From<&UnoBody> for UnoBody { + impl ::std::convert::From<&UnoBody> for UnoBody { fn from(value: &UnoBody) -> Self { value.clone() } @@ -132,6 +133,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `GET` request to `/uno` pub async fn uno<'a>( diff --git a/progenitor-impl/tests/output/src/keeper_builder.rs b/progenitor-impl/tests/output/src/keeper_builder.rs index c89e807f..bc74e7fd 100644 --- a/progenitor-impl/tests/output/src/keeper_builder.rs +++ b/progenitor-impl/tests/output/src/keeper_builder.rs @@ -68,7 +68,7 @@ pub mod types { pub key: ::std::string::String, } - impl From<&EnrolBody> for EnrolBody { + impl ::std::convert::From<&EnrolBody> for EnrolBody { fn from(value: &EnrolBody) -> Self { value.clone() } @@ -109,7 +109,7 @@ pub mod types { pub summary: ::std::vec::Vec, } - impl From<&GlobalJobsResult> for GlobalJobsResult { + impl ::std::convert::From<&GlobalJobsResult> for GlobalJobsResult { fn from(value: &GlobalJobsResult) -> Self { value.clone() } @@ -157,7 +157,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&OutputRecord> for OutputRecord { + impl ::std::convert::From<&OutputRecord> for OutputRecord { fn from(value: &OutputRecord) -> Self { value.clone() } @@ -200,7 +200,7 @@ pub mod types { pub ok: bool, } - impl From<&PingResult> for PingResult { + impl ::std::convert::From<&PingResult> for PingResult { fn from(value: &PingResult) -> Self { value.clone() } @@ -256,7 +256,7 @@ pub mod types { pub id: ReportId, } - impl From<&ReportFinishBody> for ReportFinishBody { + impl ::std::convert::From<&ReportFinishBody> for ReportFinishBody { fn from(value: &ReportFinishBody) -> Self { value.clone() } @@ -316,7 +316,7 @@ pub mod types { pub uuid: ::std::string::String, } - impl From<&ReportId> for ReportId { + impl ::std::convert::From<&ReportId> for ReportId { fn from(value: &ReportId) -> Self { value.clone() } @@ -359,7 +359,7 @@ pub mod types { pub record: OutputRecord, } - impl From<&ReportOutputBody> for ReportOutputBody { + impl ::std::convert::From<&ReportOutputBody> for ReportOutputBody { fn from(value: &ReportOutputBody) -> Self { value.clone() } @@ -397,7 +397,7 @@ pub mod types { pub existed_already: bool, } - impl From<&ReportResult> for ReportResult { + impl ::std::convert::From<&ReportResult> for ReportResult { fn from(value: &ReportResult) -> Self { value.clone() } @@ -446,7 +446,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&ReportStartBody> for ReportStartBody { + impl ::std::convert::From<&ReportStartBody> for ReportStartBody { fn from(value: &ReportStartBody) -> Self { value.clone() } @@ -512,7 +512,7 @@ pub mod types { pub when: chrono::DateTime, } - impl From<&ReportSummary> for ReportSummary { + impl ::std::convert::From<&ReportSummary> for ReportSummary { fn from(value: &ReportSummary) -> Self { value.clone() } @@ -532,7 +532,7 @@ pub mod types { key: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for EnrolBody { + impl ::std::default::Default for EnrolBody { fn default() -> Self { Self { host: Err("no value supplied for host".to_string()), @@ -544,8 +544,8 @@ pub mod types { impl EnrolBody { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -554,8 +554,8 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.key = value .try_into() @@ -576,7 +576,7 @@ pub mod types { } } - impl From for EnrolBody { + impl ::std::convert::From for EnrolBody { fn from(value: super::EnrolBody) -> Self { Self { host: Ok(value.host), @@ -591,7 +591,7 @@ pub mod types { ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl Default for GlobalJobsResult { + impl ::std::default::Default for GlobalJobsResult { fn default() -> Self { Self { summary: Err("no value supplied for summary".to_string()), @@ -602,8 +602,8 @@ pub mod types { impl GlobalJobsResult { pub fn summary(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.summary = value .try_into() @@ -623,7 +623,7 @@ pub mod types { } } - impl From for GlobalJobsResult { + impl ::std::convert::From for GlobalJobsResult { fn from(value: super::GlobalJobsResult) -> Self { Self { summary: Ok(value.summary), @@ -639,7 +639,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for OutputRecord { + impl ::std::default::Default for OutputRecord { fn default() -> Self { Self { msg: Err("no value supplied for msg".to_string()), @@ -652,8 +652,8 @@ pub mod types { impl OutputRecord { pub fn msg(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.msg = value .try_into() @@ -662,8 +662,8 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.stream = value .try_into() @@ -672,8 +672,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -695,7 +695,7 @@ pub mod types { } } - impl From for OutputRecord { + impl ::std::convert::From for OutputRecord { fn from(value: super::OutputRecord) -> Self { Self { msg: Ok(value.msg), @@ -711,7 +711,7 @@ pub mod types { ok: ::std::result::Result, } - impl Default for PingResult { + impl ::std::default::Default for PingResult { fn default() -> Self { Self { host: Err("no value supplied for host".to_string()), @@ -723,8 +723,8 @@ pub mod types { impl PingResult { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -733,8 +733,8 @@ pub mod types { } pub fn ok(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ok = value .try_into() @@ -755,7 +755,7 @@ pub mod types { } } - impl From for PingResult { + impl ::std::convert::From for PingResult { fn from(value: super::PingResult) -> Self { Self { host: Ok(value.host), @@ -773,7 +773,7 @@ pub mod types { id: ::std::result::Result, } - impl Default for ReportFinishBody { + impl ::std::default::Default for ReportFinishBody { fn default() -> Self { Self { duration_millis: Err("no value supplied for duration_millis".to_string()), @@ -787,8 +787,8 @@ pub mod types { impl ReportFinishBody { pub fn duration_millis(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.duration_millis = value.try_into().map_err(|e| { format!("error converting supplied value for duration_millis: {}", e) @@ -797,8 +797,8 @@ pub mod types { } pub fn end_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.end_time = value .try_into() @@ -807,8 +807,8 @@ pub mod types { } pub fn exit_status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.exit_status = value .try_into() @@ -817,8 +817,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -841,7 +841,7 @@ pub mod types { } } - impl From for ReportFinishBody { + impl ::std::convert::From for ReportFinishBody { fn from(value: super::ReportFinishBody) -> Self { Self { duration_millis: Ok(value.duration_millis), @@ -862,7 +862,7 @@ pub mod types { uuid: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for ReportId { + impl ::std::default::Default for ReportId { fn default() -> Self { Self { host: Err("no value supplied for host".to_string()), @@ -877,8 +877,8 @@ pub mod types { impl ReportId { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -887,8 +887,8 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.job = value .try_into() @@ -897,8 +897,8 @@ pub mod types { } pub fn pid(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.pid = value .try_into() @@ -907,8 +907,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -917,8 +917,8 @@ pub mod types { } pub fn uuid(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.uuid = value .try_into() @@ -942,7 +942,7 @@ pub mod types { } } - impl From for ReportId { + impl ::std::convert::From for ReportId { fn from(value: super::ReportId) -> Self { Self { host: Ok(value.host), @@ -960,7 +960,7 @@ pub mod types { record: ::std::result::Result, } - impl Default for ReportOutputBody { + impl ::std::default::Default for ReportOutputBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -972,8 +972,8 @@ pub mod types { impl ReportOutputBody { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -982,8 +982,8 @@ pub mod types { } pub fn record(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.record = value .try_into() @@ -1004,7 +1004,7 @@ pub mod types { } } - impl From for ReportOutputBody { + impl ::std::convert::From for ReportOutputBody { fn from(value: super::ReportOutputBody) -> Self { Self { id: Ok(value.id), @@ -1018,7 +1018,7 @@ pub mod types { existed_already: ::std::result::Result, } - impl Default for ReportResult { + impl ::std::default::Default for ReportResult { fn default() -> Self { Self { existed_already: Err("no value supplied for existed_already".to_string()), @@ -1029,8 +1029,8 @@ pub mod types { impl ReportResult { pub fn existed_already(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.existed_already = value.try_into().map_err(|e| { format!("error converting supplied value for existed_already: {}", e) @@ -1050,7 +1050,7 @@ pub mod types { } } - impl From for ReportResult { + impl ::std::convert::From for ReportResult { fn from(value: super::ReportResult) -> Self { Self { existed_already: Ok(value.existed_already), @@ -1066,7 +1066,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for ReportStartBody { + impl ::std::default::Default for ReportStartBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1079,8 +1079,8 @@ pub mod types { impl ReportStartBody { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1089,8 +1089,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -1099,8 +1099,8 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -1122,7 +1122,7 @@ pub mod types { } } - impl From for ReportStartBody { + impl ::std::convert::From for ReportStartBody { fn from(value: super::ReportStartBody) -> Self { Self { id: Ok(value.id), @@ -1143,7 +1143,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for ReportSummary { + impl ::std::default::Default for ReportSummary { fn default() -> Self { Self { age_seconds: Err("no value supplied for age_seconds".to_string()), @@ -1159,8 +1159,8 @@ pub mod types { impl ReportSummary { pub fn age_seconds(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.age_seconds = value .try_into() @@ -1169,8 +1169,8 @@ pub mod types { } pub fn duration_seconds(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.duration_seconds = value.try_into().map_err(|e| { format!( @@ -1182,8 +1182,8 @@ pub mod types { } pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -1192,8 +1192,8 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.job = value .try_into() @@ -1202,8 +1202,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -1212,8 +1212,8 @@ pub mod types { } pub fn when(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.when = value .try_into() @@ -1238,7 +1238,7 @@ pub mod types { } } - impl From for ReportSummary { + impl ::std::convert::From for ReportSummary { fn from(value: super::ReportSummary) -> Self { Self { age_seconds: Ok(value.age_seconds), diff --git a/progenitor-impl/tests/output/src/keeper_builder_tagged.rs b/progenitor-impl/tests/output/src/keeper_builder_tagged.rs index 92f96f1f..32505f78 100644 --- a/progenitor-impl/tests/output/src/keeper_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/keeper_builder_tagged.rs @@ -66,7 +66,7 @@ pub mod types { pub key: ::std::string::String, } - impl From<&EnrolBody> for EnrolBody { + impl ::std::convert::From<&EnrolBody> for EnrolBody { fn from(value: &EnrolBody) -> Self { value.clone() } @@ -105,7 +105,7 @@ pub mod types { pub summary: ::std::vec::Vec, } - impl From<&GlobalJobsResult> for GlobalJobsResult { + impl ::std::convert::From<&GlobalJobsResult> for GlobalJobsResult { fn from(value: &GlobalJobsResult) -> Self { value.clone() } @@ -151,7 +151,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&OutputRecord> for OutputRecord { + impl ::std::convert::From<&OutputRecord> for OutputRecord { fn from(value: &OutputRecord) -> Self { value.clone() } @@ -192,7 +192,7 @@ pub mod types { pub ok: bool, } - impl From<&PingResult> for PingResult { + impl ::std::convert::From<&PingResult> for PingResult { fn from(value: &PingResult) -> Self { value.clone() } @@ -246,7 +246,7 @@ pub mod types { pub id: ReportId, } - impl From<&ReportFinishBody> for ReportFinishBody { + impl ::std::convert::From<&ReportFinishBody> for ReportFinishBody { fn from(value: &ReportFinishBody) -> Self { value.clone() } @@ -304,7 +304,7 @@ pub mod types { pub uuid: ::std::string::String, } - impl From<&ReportId> for ReportId { + impl ::std::convert::From<&ReportId> for ReportId { fn from(value: &ReportId) -> Self { value.clone() } @@ -345,7 +345,7 @@ pub mod types { pub record: OutputRecord, } - impl From<&ReportOutputBody> for ReportOutputBody { + impl ::std::convert::From<&ReportOutputBody> for ReportOutputBody { fn from(value: &ReportOutputBody) -> Self { value.clone() } @@ -381,7 +381,7 @@ pub mod types { pub existed_already: bool, } - impl From<&ReportResult> for ReportResult { + impl ::std::convert::From<&ReportResult> for ReportResult { fn from(value: &ReportResult) -> Self { value.clone() } @@ -428,7 +428,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&ReportStartBody> for ReportStartBody { + impl ::std::convert::From<&ReportStartBody> for ReportStartBody { fn from(value: &ReportStartBody) -> Self { value.clone() } @@ -492,7 +492,7 @@ pub mod types { pub when: chrono::DateTime, } - impl From<&ReportSummary> for ReportSummary { + impl ::std::convert::From<&ReportSummary> for ReportSummary { fn from(value: &ReportSummary) -> Self { value.clone() } @@ -512,7 +512,7 @@ pub mod types { key: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for EnrolBody { + impl ::std::default::Default for EnrolBody { fn default() -> Self { Self { host: Err("no value supplied for host".to_string()), @@ -524,8 +524,8 @@ pub mod types { impl EnrolBody { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -534,8 +534,8 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.key = value .try_into() @@ -556,7 +556,7 @@ pub mod types { } } - impl From for EnrolBody { + impl ::std::convert::From for EnrolBody { fn from(value: super::EnrolBody) -> Self { Self { host: Ok(value.host), @@ -571,7 +571,7 @@ pub mod types { ::std::result::Result<::std::vec::Vec, ::std::string::String>, } - impl Default for GlobalJobsResult { + impl ::std::default::Default for GlobalJobsResult { fn default() -> Self { Self { summary: Err("no value supplied for summary".to_string()), @@ -582,8 +582,8 @@ pub mod types { impl GlobalJobsResult { pub fn summary(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.summary = value .try_into() @@ -603,7 +603,7 @@ pub mod types { } } - impl From for GlobalJobsResult { + impl ::std::convert::From for GlobalJobsResult { fn from(value: super::GlobalJobsResult) -> Self { Self { summary: Ok(value.summary), @@ -619,7 +619,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for OutputRecord { + impl ::std::default::Default for OutputRecord { fn default() -> Self { Self { msg: Err("no value supplied for msg".to_string()), @@ -632,8 +632,8 @@ pub mod types { impl OutputRecord { pub fn msg(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.msg = value .try_into() @@ -642,8 +642,8 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.stream = value .try_into() @@ -652,8 +652,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -675,7 +675,7 @@ pub mod types { } } - impl From for OutputRecord { + impl ::std::convert::From for OutputRecord { fn from(value: super::OutputRecord) -> Self { Self { msg: Ok(value.msg), @@ -691,7 +691,7 @@ pub mod types { ok: ::std::result::Result, } - impl Default for PingResult { + impl ::std::default::Default for PingResult { fn default() -> Self { Self { host: Err("no value supplied for host".to_string()), @@ -703,8 +703,8 @@ pub mod types { impl PingResult { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -713,8 +713,8 @@ pub mod types { } pub fn ok(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ok = value .try_into() @@ -735,7 +735,7 @@ pub mod types { } } - impl From for PingResult { + impl ::std::convert::From for PingResult { fn from(value: super::PingResult) -> Self { Self { host: Ok(value.host), @@ -753,7 +753,7 @@ pub mod types { id: ::std::result::Result, } - impl Default for ReportFinishBody { + impl ::std::default::Default for ReportFinishBody { fn default() -> Self { Self { duration_millis: Err("no value supplied for duration_millis".to_string()), @@ -767,8 +767,8 @@ pub mod types { impl ReportFinishBody { pub fn duration_millis(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.duration_millis = value.try_into().map_err(|e| { format!("error converting supplied value for duration_millis: {}", e) @@ -777,8 +777,8 @@ pub mod types { } pub fn end_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.end_time = value .try_into() @@ -787,8 +787,8 @@ pub mod types { } pub fn exit_status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.exit_status = value .try_into() @@ -797,8 +797,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -821,7 +821,7 @@ pub mod types { } } - impl From for ReportFinishBody { + impl ::std::convert::From for ReportFinishBody { fn from(value: super::ReportFinishBody) -> Self { Self { duration_millis: Ok(value.duration_millis), @@ -842,7 +842,7 @@ pub mod types { uuid: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for ReportId { + impl ::std::default::Default for ReportId { fn default() -> Self { Self { host: Err("no value supplied for host".to_string()), @@ -857,8 +857,8 @@ pub mod types { impl ReportId { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -867,8 +867,8 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.job = value .try_into() @@ -877,8 +877,8 @@ pub mod types { } pub fn pid(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.pid = value .try_into() @@ -887,8 +887,8 @@ pub mod types { } pub fn time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time = value .try_into() @@ -897,8 +897,8 @@ pub mod types { } pub fn uuid(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.uuid = value .try_into() @@ -922,7 +922,7 @@ pub mod types { } } - impl From for ReportId { + impl ::std::convert::From for ReportId { fn from(value: super::ReportId) -> Self { Self { host: Ok(value.host), @@ -940,7 +940,7 @@ pub mod types { record: ::std::result::Result, } - impl Default for ReportOutputBody { + impl ::std::default::Default for ReportOutputBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -952,8 +952,8 @@ pub mod types { impl ReportOutputBody { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -962,8 +962,8 @@ pub mod types { } pub fn record(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.record = value .try_into() @@ -984,7 +984,7 @@ pub mod types { } } - impl From for ReportOutputBody { + impl ::std::convert::From for ReportOutputBody { fn from(value: super::ReportOutputBody) -> Self { Self { id: Ok(value.id), @@ -998,7 +998,7 @@ pub mod types { existed_already: ::std::result::Result, } - impl Default for ReportResult { + impl ::std::default::Default for ReportResult { fn default() -> Self { Self { existed_already: Err("no value supplied for existed_already".to_string()), @@ -1009,8 +1009,8 @@ pub mod types { impl ReportResult { pub fn existed_already(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.existed_already = value.try_into().map_err(|e| { format!("error converting supplied value for existed_already: {}", e) @@ -1030,7 +1030,7 @@ pub mod types { } } - impl From for ReportResult { + impl ::std::convert::From for ReportResult { fn from(value: super::ReportResult) -> Self { Self { existed_already: Ok(value.existed_already), @@ -1046,7 +1046,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for ReportStartBody { + impl ::std::default::Default for ReportStartBody { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -1059,8 +1059,8 @@ pub mod types { impl ReportStartBody { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1069,8 +1069,8 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.script = value .try_into() @@ -1079,8 +1079,8 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -1102,7 +1102,7 @@ pub mod types { } } - impl From for ReportStartBody { + impl ::std::convert::From for ReportStartBody { fn from(value: super::ReportStartBody) -> Self { Self { id: Ok(value.id), @@ -1123,7 +1123,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for ReportSummary { + impl ::std::default::Default for ReportSummary { fn default() -> Self { Self { age_seconds: Err("no value supplied for age_seconds".to_string()), @@ -1139,8 +1139,8 @@ pub mod types { impl ReportSummary { pub fn age_seconds(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.age_seconds = value .try_into() @@ -1149,8 +1149,8 @@ pub mod types { } pub fn duration_seconds(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.duration_seconds = value.try_into().map_err(|e| { format!( @@ -1162,8 +1162,8 @@ pub mod types { } pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.host = value .try_into() @@ -1172,8 +1172,8 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.job = value .try_into() @@ -1182,8 +1182,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -1192,8 +1192,8 @@ pub mod types { } pub fn when(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.when = value .try_into() @@ -1218,7 +1218,7 @@ pub mod types { } } - impl From for ReportSummary { + impl ::std::convert::From for ReportSummary { fn from(value: super::ReportSummary) -> Self { Self { age_seconds: Ok(value.age_seconds), diff --git a/progenitor-impl/tests/output/src/keeper_positional.rs b/progenitor-impl/tests/output/src/keeper_positional.rs index b16d7842..2ffc02cc 100644 --- a/progenitor-impl/tests/output/src/keeper_positional.rs +++ b/progenitor-impl/tests/output/src/keeper_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -66,7 +67,7 @@ pub mod types { pub key: ::std::string::String, } - impl From<&EnrolBody> for EnrolBody { + impl ::std::convert::From<&EnrolBody> for EnrolBody { fn from(value: &EnrolBody) -> Self { value.clone() } @@ -99,7 +100,7 @@ pub mod types { pub summary: ::std::vec::Vec, } - impl From<&GlobalJobsResult> for GlobalJobsResult { + impl ::std::convert::From<&GlobalJobsResult> for GlobalJobsResult { fn from(value: &GlobalJobsResult) -> Self { value.clone() } @@ -139,7 +140,7 @@ pub mod types { pub time: chrono::DateTime, } - impl From<&OutputRecord> for OutputRecord { + impl ::std::convert::From<&OutputRecord> for OutputRecord { fn from(value: &OutputRecord) -> Self { value.clone() } @@ -174,7 +175,7 @@ pub mod types { pub ok: bool, } - impl From<&PingResult> for PingResult { + impl ::std::convert::From<&PingResult> for PingResult { fn from(value: &PingResult) -> Self { value.clone() } @@ -222,7 +223,7 @@ pub mod types { pub id: ReportId, } - impl From<&ReportFinishBody> for ReportFinishBody { + impl ::std::convert::From<&ReportFinishBody> for ReportFinishBody { fn from(value: &ReportFinishBody) -> Self { value.clone() } @@ -274,7 +275,7 @@ pub mod types { pub uuid: ::std::string::String, } - impl From<&ReportId> for ReportId { + impl ::std::convert::From<&ReportId> for ReportId { fn from(value: &ReportId) -> Self { value.clone() } @@ -309,7 +310,7 @@ pub mod types { pub record: OutputRecord, } - impl From<&ReportOutputBody> for ReportOutputBody { + impl ::std::convert::From<&ReportOutputBody> for ReportOutputBody { fn from(value: &ReportOutputBody) -> Self { value.clone() } @@ -339,7 +340,7 @@ pub mod types { pub existed_already: bool, } - impl From<&ReportResult> for ReportResult { + impl ::std::convert::From<&ReportResult> for ReportResult { fn from(value: &ReportResult) -> Self { value.clone() } @@ -380,7 +381,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&ReportStartBody> for ReportStartBody { + impl ::std::convert::From<&ReportStartBody> for ReportStartBody { fn from(value: &ReportStartBody) -> Self { value.clone() } @@ -438,7 +439,7 @@ pub mod types { pub when: chrono::DateTime, } - impl From<&ReportSummary> for ReportSummary { + impl ::std::convert::From<&ReportSummary> for ReportSummary { fn from(value: &ReportSummary) -> Self { value.clone() } @@ -508,6 +509,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `POST` request to `/enrol` /// diff --git a/progenitor-impl/tests/output/src/nexus_builder.rs b/progenitor-impl/tests/output/src/nexus_builder.rs index e010a603..220bbb1c 100644 --- a/progenitor-impl/tests/output/src/nexus_builder.rs +++ b/progenitor-impl/tests/output/src/nexus_builder.rs @@ -75,7 +75,7 @@ pub mod types { pub serial: ::std::string::String, } - impl From<&Baseboard> for Baseboard { + impl ::std::convert::From<&Baseboard> for Baseboard { fn from(value: &Baseboard) -> Self { value.clone() } @@ -191,7 +191,7 @@ pub mod types { RangeFrom { start: f64 }, } - impl From<&BinRangedouble> for BinRangedouble { + impl ::std::convert::From<&BinRangedouble> for BinRangedouble { fn from(value: &BinRangedouble) -> Self { value.clone() } @@ -301,7 +301,7 @@ pub mod types { RangeFrom { start: i64 }, } - impl From<&BinRangeint64> for BinRangeint64 { + impl ::std::convert::From<&BinRangeint64> for BinRangeint64 { fn from(value: &BinRangeint64) -> Self { value.clone() } @@ -349,7 +349,7 @@ pub mod types { pub range: BinRangedouble, } - impl From<&Bindouble> for Bindouble { + impl ::std::convert::From<&Bindouble> for Bindouble { fn from(value: &Bindouble) -> Self { value.clone() } @@ -403,7 +403,7 @@ pub mod types { pub range: BinRangeint64, } - impl From<&Binint64> for Binint64 { + impl ::std::convert::From<&Binint64> for Binint64 { fn from(value: &Binint64) -> Self { value.clone() } @@ -432,6 +432,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, schemars :: JsonSchema)] + #[serde(transparent)] pub struct BlockSize(i64); impl ::std::ops::Deref for BlockSize { type Target = i64; @@ -440,13 +441,13 @@ pub mod types { } } - impl From for i64 { + impl ::std::convert::From for i64 { fn from(value: BlockSize) -> Self { value.0 } } - impl From<&BlockSize> for BlockSize { + impl ::std::convert::From<&BlockSize> for BlockSize { fn from(value: &BlockSize) -> Self { value.clone() } @@ -501,6 +502,7 @@ pub mod types { #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct ByteCount(pub u64); impl ::std::ops::Deref for ByteCount { type Target = u64; @@ -509,46 +511,46 @@ pub mod types { } } - impl From for u64 { + impl ::std::convert::From for u64 { fn from(value: ByteCount) -> Self { value.0 } } - impl From<&ByteCount> for ByteCount { + impl ::std::convert::From<&ByteCount> for ByteCount { fn from(value: &ByteCount) -> Self { value.clone() } } - impl From for ByteCount { + impl ::std::convert::From for ByteCount { fn from(value: u64) -> Self { Self(value) } } - impl std::str::FromStr for ByteCount { + impl ::std::str::FromStr for ByteCount { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for ByteCount { + impl ::std::convert::TryFrom<&str> for ByteCount { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ByteCount { + impl ::std::convert::TryFrom<&String> for ByteCount { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ByteCount { + impl ::std::convert::TryFrom for ByteCount { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -631,7 +633,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Certificate> for Certificate { + impl ::std::convert::From<&Certificate> for Certificate { fn from(value: &Certificate) -> Self { value.clone() } @@ -711,7 +713,7 @@ pub mod types { pub service: ServiceUsingCertificate, } - impl From<&CertificateCreate> for CertificateCreate { + impl ::std::convert::From<&CertificateCreate> for CertificateCreate { fn from(value: &CertificateCreate) -> Self { value.clone() } @@ -765,7 +767,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&CertificateResultsPage> for CertificateResultsPage { + impl ::std::convert::From<&CertificateResultsPage> for CertificateResultsPage { fn from(value: &CertificateResultsPage) -> Self { value.clone() } @@ -835,7 +837,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&ComponentUpdate> for ComponentUpdate { + impl ::std::convert::From<&ComponentUpdate> for ComponentUpdate { fn from(value: &ComponentUpdate) -> Self { value.clone() } @@ -889,7 +891,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { + impl ::std::convert::From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { fn from(value: &ComponentUpdateResultsPage) -> Self { value.clone() } @@ -934,7 +936,7 @@ pub mod types { pub value: f64, } - impl From<&Cumulativedouble> for Cumulativedouble { + impl ::std::convert::From<&Cumulativedouble> for Cumulativedouble { fn from(value: &Cumulativedouble) -> Self { value.clone() } @@ -979,7 +981,7 @@ pub mod types { pub value: i64, } - impl From<&Cumulativeint64> for Cumulativeint64 { + impl ::std::convert::From<&Cumulativeint64> for Cumulativeint64 { fn from(value: &Cumulativeint64) -> Self { value.clone() } @@ -1198,55 +1200,55 @@ pub mod types { HistogramF64(Histogramdouble), } - impl From<&Datum> for Datum { + impl ::std::convert::From<&Datum> for Datum { fn from(value: &Datum) -> Self { value.clone() } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: bool) -> Self { Self::Bool(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: i64) -> Self { Self::I64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: f64) -> Self { Self::F64(value) } } - impl From<::std::vec::Vec> for Datum { + impl ::std::convert::From<::std::vec::Vec> for Datum { fn from(value: ::std::vec::Vec) -> Self { Self::Bytes(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Cumulativeint64) -> Self { Self::CumulativeI64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Cumulativedouble) -> Self { Self::CumulativeF64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Histogramint64) -> Self { Self::HistogramI64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Histogramdouble) -> Self { Self::HistogramF64(value) } @@ -1308,7 +1310,7 @@ pub mod types { HistogramF64, } - impl From<&DatumType> for DatumType { + impl ::std::convert::From<&DatumType> for DatumType { fn from(value: &DatumType) -> Self { value.clone() } @@ -1330,7 +1332,7 @@ pub mod types { } } - impl std::str::FromStr for DatumType { + impl ::std::str::FromStr for DatumType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1348,14 +1350,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for DatumType { + impl ::std::convert::TryFrom<&str> for DatumType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for DatumType { + impl ::std::convert::TryFrom<&::std::string::String> for DatumType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1364,7 +1366,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for DatumType { + impl ::std::convert::TryFrom<::std::string::String> for DatumType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1409,7 +1411,7 @@ pub mod types { pub public_cert: ::std::string::String, } - impl From<&DerEncodedKeyPair> for DerEncodedKeyPair { + impl ::std::convert::From<&DerEncodedKeyPair> for DerEncodedKeyPair { fn from(value: &DerEncodedKeyPair) -> Self { value.clone() } @@ -1457,7 +1459,7 @@ pub mod types { pub grant_type: ::std::string::String, } - impl From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { + impl ::std::convert::From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { fn from(value: &DeviceAccessTokenRequest) -> Self { value.clone() } @@ -1495,7 +1497,7 @@ pub mod types { pub client_id: uuid::Uuid, } - impl From<&DeviceAuthRequest> for DeviceAuthRequest { + impl ::std::convert::From<&DeviceAuthRequest> for DeviceAuthRequest { fn from(value: &DeviceAuthRequest) -> Self { value.clone() } @@ -1532,7 +1534,7 @@ pub mod types { pub user_code: ::std::string::String, } - impl From<&DeviceAuthVerify> for DeviceAuthVerify { + impl ::std::convert::From<&DeviceAuthVerify> for DeviceAuthVerify { fn from(value: &DeviceAuthVerify) -> Self { value.clone() } @@ -1582,7 +1584,7 @@ pub mod types { Sha256(::std::string::String), } - impl From<&Digest> for Digest { + impl ::std::convert::From<&Digest> for Digest { fn from(value: &Digest) -> Self { value.clone() } @@ -1697,7 +1699,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Disk> for Disk { + impl ::std::convert::From<&Disk> for Disk { fn from(value: &Disk) -> Self { value.clone() } @@ -1764,7 +1766,7 @@ pub mod types { pub size: ByteCount, } - impl From<&DiskCreate> for DiskCreate { + impl ::std::convert::From<&DiskCreate> for DiskCreate { fn from(value: &DiskCreate) -> Self { value.clone() } @@ -1806,7 +1808,7 @@ pub mod types { pub name: Name, } - impl From<&DiskIdentifier> for DiskIdentifier { + impl ::std::convert::From<&DiskIdentifier> for DiskIdentifier { fn from(value: &DiskIdentifier) -> Self { value.clone() } @@ -1864,7 +1866,7 @@ pub mod types { WriteBytes, } - impl From<&DiskMetricName> for DiskMetricName { + impl ::std::convert::From<&DiskMetricName> for DiskMetricName { fn from(value: &DiskMetricName) -> Self { value.clone() } @@ -1883,7 +1885,7 @@ pub mod types { } } - impl std::str::FromStr for DiskMetricName { + impl ::std::str::FromStr for DiskMetricName { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1898,14 +1900,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for DiskMetricName { + impl ::std::convert::TryFrom<&str> for DiskMetricName { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for DiskMetricName { + impl ::std::convert::TryFrom<&::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1914,7 +1916,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for DiskMetricName { + impl ::std::convert::TryFrom<::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1948,7 +1950,7 @@ pub mod types { pub disk: NameOrId, } - impl From<&DiskPath> for DiskPath { + impl ::std::convert::From<&DiskPath> for DiskPath { fn from(value: &DiskPath) -> Self { value.clone() } @@ -2002,7 +2004,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&DiskResultsPage> for DiskResultsPage { + impl ::std::convert::From<&DiskResultsPage> for DiskResultsPage { fn from(value: &DiskResultsPage) -> Self { value.clone() } @@ -2134,7 +2136,7 @@ pub mod types { GlobalImage { image_id: uuid::Uuid }, } - impl From<&DiskSource> for DiskSource { + impl ::std::convert::From<&DiskSource> for DiskSource { fn from(value: &DiskSource) -> Self { value.clone() } @@ -2296,7 +2298,7 @@ pub mod types { Faulted, } - impl From<&DiskState> for DiskState { + impl ::std::convert::From<&DiskState> for DiskState { fn from(value: &DiskState) -> Self { value.clone() } @@ -2343,7 +2345,7 @@ pub mod types { pub version: ::std::string::String, } - impl From<&Distribution> for Distribution { + impl ::std::convert::From<&Distribution> for Distribution { fn from(value: &Distribution) -> Self { value.clone() } @@ -2391,7 +2393,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -2434,7 +2436,7 @@ pub mod types { pub kind: IpKind, } - impl From<&ExternalIp> for ExternalIp { + impl ::std::convert::From<&ExternalIp> for ExternalIp { fn from(value: &ExternalIp) -> Self { value.clone() } @@ -2505,7 +2507,7 @@ pub mod types { }, } - impl From<&ExternalIpCreate> for ExternalIpCreate { + impl ::std::convert::From<&ExternalIpCreate> for ExternalIpCreate { fn from(value: &ExternalIpCreate) -> Self { value.clone() } @@ -2553,7 +2555,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ExternalIpResultsPage> for ExternalIpResultsPage { + impl ::std::convert::From<&ExternalIpResultsPage> for ExternalIpResultsPage { fn from(value: &ExternalIpResultsPage) -> Self { value.clone() } @@ -2602,7 +2604,7 @@ pub mod types { pub ty: FieldType, } - impl From<&FieldSchema> for FieldSchema { + impl ::std::convert::From<&FieldSchema> for FieldSchema { fn from(value: &FieldSchema) -> Self { value.clone() } @@ -2650,7 +2652,7 @@ pub mod types { Metric, } - impl From<&FieldSource> for FieldSource { + impl ::std::convert::From<&FieldSource> for FieldSource { fn from(value: &FieldSource) -> Self { value.clone() } @@ -2665,7 +2667,7 @@ pub mod types { } } - impl std::str::FromStr for FieldSource { + impl ::std::str::FromStr for FieldSource { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2676,14 +2678,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FieldSource { + impl ::std::convert::TryFrom<&str> for FieldSource { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FieldSource { + impl ::std::convert::TryFrom<&::std::string::String> for FieldSource { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2692,7 +2694,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FieldSource { + impl ::std::convert::TryFrom<::std::string::String> for FieldSource { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2746,7 +2748,7 @@ pub mod types { Bool, } - impl From<&FieldType> for FieldType { + impl ::std::convert::From<&FieldType> for FieldType { fn from(value: &FieldType) -> Self { value.clone() } @@ -2764,7 +2766,7 @@ pub mod types { } } - impl std::str::FromStr for FieldType { + impl ::std::str::FromStr for FieldType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2778,14 +2780,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FieldType { + impl ::std::convert::TryFrom<&str> for FieldType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FieldType { + impl ::std::convert::TryFrom<&::std::string::String> for FieldType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2794,7 +2796,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FieldType { + impl ::std::convert::TryFrom<::std::string::String> for FieldType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2840,7 +2842,7 @@ pub mod types { Viewer, } - impl From<&FleetRole> for FleetRole { + impl ::std::convert::From<&FleetRole> for FleetRole { fn from(value: &FleetRole) -> Self { value.clone() } @@ -2856,7 +2858,7 @@ pub mod types { } } - impl std::str::FromStr for FleetRole { + impl ::std::str::FromStr for FleetRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2868,14 +2870,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FleetRole { + impl ::std::convert::TryFrom<&str> for FleetRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FleetRole { + impl ::std::convert::TryFrom<&::std::string::String> for FleetRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2884,7 +2886,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FleetRole { + impl ::std::convert::TryFrom<::std::string::String> for FleetRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2932,7 +2934,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&FleetRolePolicy> for FleetRolePolicy { + impl ::std::convert::From<&FleetRolePolicy> for FleetRolePolicy { fn from(value: &FleetRolePolicy) -> Self { value.clone() } @@ -2990,7 +2992,7 @@ pub mod types { pub role_name: FleetRole, } - impl From<&FleetRoleRoleAssignment> for FleetRoleRoleAssignment { + impl ::std::convert::From<&FleetRoleRoleAssignment> for FleetRoleRoleAssignment { fn from(value: &FleetRoleRoleAssignment) -> Self { value.clone() } @@ -3131,7 +3133,7 @@ pub mod types { pub version: ::std::string::String, } - impl From<&GlobalImage> for GlobalImage { + impl ::std::convert::From<&GlobalImage> for GlobalImage { fn from(value: &GlobalImage) -> Self { value.clone() } @@ -3209,7 +3211,7 @@ pub mod types { pub source: ImageSource, } - impl From<&GlobalImageCreate> for GlobalImageCreate { + impl ::std::convert::From<&GlobalImageCreate> for GlobalImageCreate { fn from(value: &GlobalImageCreate) -> Self { value.clone() } @@ -3263,7 +3265,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&GlobalImageResultsPage> for GlobalImageResultsPage { + impl ::std::convert::From<&GlobalImageResultsPage> for GlobalImageResultsPage { fn from(value: &GlobalImageResultsPage) -> Self { value.clone() } @@ -3317,7 +3319,7 @@ pub mod types { pub silo_id: uuid::Uuid, } - impl From<&Group> for Group { + impl ::std::convert::From<&Group> for Group { fn from(value: &Group) -> Self { value.clone() } @@ -3371,7 +3373,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&GroupResultsPage> for GroupResultsPage { + impl ::std::convert::From<&GroupResultsPage> for GroupResultsPage { fn from(value: &GroupResultsPage) -> Self { value.clone() } @@ -3497,7 +3499,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&Histogramdouble> for Histogramdouble { + impl ::std::convert::From<&Histogramdouble> for Histogramdouble { fn from(value: &Histogramdouble) -> Self { value.clone() } @@ -3623,7 +3625,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&Histogramint64> for Histogramint64 { + impl ::std::convert::From<&Histogramint64> for Histogramint64 { fn from(value: &Histogramint64) -> Self { value.clone() } @@ -3676,7 +3678,7 @@ pub mod types { IdAscending, } - impl From<&IdSortMode> for IdSortMode { + impl ::std::convert::From<&IdSortMode> for IdSortMode { fn from(value: &IdSortMode) -> Self { value.clone() } @@ -3690,7 +3692,7 @@ pub mod types { } } - impl std::str::FromStr for IdSortMode { + impl ::std::str::FromStr for IdSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3700,14 +3702,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdSortMode { + impl ::std::convert::TryFrom<&str> for IdSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for IdSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3716,7 +3718,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdSortMode { + impl ::std::convert::TryFrom<::std::string::String> for IdSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3801,7 +3803,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&IdentityProvider> for IdentityProvider { + impl ::std::convert::From<&IdentityProvider> for IdentityProvider { fn from(value: &IdentityProvider) -> Self { value.clone() } @@ -3855,7 +3857,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { + impl ::std::convert::From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { fn from(value: &IdentityProviderResultsPage) -> Self { value.clone() } @@ -3904,7 +3906,7 @@ pub mod types { Saml, } - impl From<&IdentityProviderType> for IdentityProviderType { + impl ::std::convert::From<&IdentityProviderType> for IdentityProviderType { fn from(value: &IdentityProviderType) -> Self { value.clone() } @@ -3918,7 +3920,7 @@ pub mod types { } } - impl std::str::FromStr for IdentityProviderType { + impl ::std::str::FromStr for IdentityProviderType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3928,14 +3930,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdentityProviderType { + impl ::std::convert::TryFrom<&str> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdentityProviderType { + impl ::std::convert::TryFrom<&::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3944,7 +3946,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdentityProviderType { + impl ::std::convert::TryFrom<::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3988,7 +3990,7 @@ pub mod types { SiloGroup, } - impl From<&IdentityType> for IdentityType { + impl ::std::convert::From<&IdentityType> for IdentityType { fn from(value: &IdentityType) -> Self { value.clone() } @@ -4003,7 +4005,7 @@ pub mod types { } } - impl std::str::FromStr for IdentityType { + impl ::std::str::FromStr for IdentityType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4014,14 +4016,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdentityType { + impl ::std::convert::TryFrom<&str> for IdentityType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdentityType { + impl ::std::convert::TryFrom<&::std::string::String> for IdentityType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4030,7 +4032,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdentityType { + impl ::std::convert::TryFrom<::std::string::String> for IdentityType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4097,7 +4099,7 @@ pub mod types { Base64EncodedXml { data: ::std::string::String }, } - impl From<&IdpMetadataSource> for IdpMetadataSource { + impl ::std::convert::From<&IdpMetadataSource> for IdpMetadataSource { fn from(value: &IdpMetadataSource) -> Self { value.clone() } @@ -4236,7 +4238,7 @@ pub mod types { pub version: ::std::option::Option<::std::string::String>, } - impl From<&Image> for Image { + impl ::std::convert::From<&Image> for Image { fn from(value: &Image) -> Self { value.clone() } @@ -4303,7 +4305,7 @@ pub mod types { pub source: ImageSource, } - impl From<&ImageCreate> for ImageCreate { + impl ::std::convert::From<&ImageCreate> for ImageCreate { fn from(value: &ImageCreate) -> Self { value.clone() } @@ -4357,7 +4359,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ImageResultsPage> for ImageResultsPage { + impl ::std::convert::From<&ImageResultsPage> for ImageResultsPage { fn from(value: &ImageResultsPage) -> Self { value.clone() } @@ -4447,7 +4449,7 @@ pub mod types { YouCanBootAnythingAsLongAsItsAlpine, } - impl From<&ImageSource> for ImageSource { + impl ::std::convert::From<&ImageSource> for ImageSource { fn from(value: &ImageSource) -> Self { value.clone() } @@ -4566,7 +4568,7 @@ pub mod types { pub time_run_state_updated: chrono::DateTime, } - impl From<&Instance> for Instance { + impl ::std::convert::From<&Instance> for Instance { fn from(value: &Instance) -> Self { value.clone() } @@ -4594,6 +4596,7 @@ pub mod types { #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct InstanceCpuCount(pub u16); impl ::std::ops::Deref for InstanceCpuCount { type Target = u16; @@ -4602,46 +4605,46 @@ pub mod types { } } - impl From for u16 { + impl ::std::convert::From for u16 { fn from(value: InstanceCpuCount) -> Self { value.0 } } - impl From<&InstanceCpuCount> for InstanceCpuCount { + impl ::std::convert::From<&InstanceCpuCount> for InstanceCpuCount { fn from(value: &InstanceCpuCount) -> Self { value.clone() } } - impl From for InstanceCpuCount { + impl ::std::convert::From for InstanceCpuCount { fn from(value: u16) -> Self { Self(value) } } - impl std::str::FromStr for InstanceCpuCount { + impl ::std::str::FromStr for InstanceCpuCount { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for InstanceCpuCount { + impl ::std::convert::TryFrom<&str> for InstanceCpuCount { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceCpuCount { + impl ::std::convert::TryFrom<&String> for InstanceCpuCount { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceCpuCount { + impl ::std::convert::TryFrom for InstanceCpuCount { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -4773,7 +4776,7 @@ pub mod types { pub user_data: ::std::string::String, } - impl From<&InstanceCreate> for InstanceCreate { + impl ::std::convert::From<&InstanceCreate> for InstanceCreate { fn from(value: &InstanceCreate) -> Self { value.clone() } @@ -4885,7 +4888,7 @@ pub mod types { }, } - impl From<&InstanceDiskAttachment> for InstanceDiskAttachment { + impl ::std::convert::From<&InstanceDiskAttachment> for InstanceDiskAttachment { fn from(value: &InstanceDiskAttachment) -> Self { value.clone() } @@ -4920,7 +4923,7 @@ pub mod types { pub dst_sled_id: uuid::Uuid, } - impl From<&InstanceMigrate> for InstanceMigrate { + impl ::std::convert::From<&InstanceMigrate> for InstanceMigrate { fn from(value: &InstanceMigrate) -> Self { value.clone() } @@ -5021,13 +5024,17 @@ pub mod types { None, } - impl From<&InstanceNetworkInterfaceAttachment> for InstanceNetworkInterfaceAttachment { + impl ::std::convert::From<&InstanceNetworkInterfaceAttachment> + for InstanceNetworkInterfaceAttachment + { fn from(value: &InstanceNetworkInterfaceAttachment) -> Self { value.clone() } } - impl From<::std::vec::Vec> for InstanceNetworkInterfaceAttachment { + impl ::std::convert::From<::std::vec::Vec> + for InstanceNetworkInterfaceAttachment + { fn from(value: ::std::vec::Vec) -> Self { Self::Create(value) } @@ -5075,7 +5082,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&InstanceResultsPage> for InstanceResultsPage { + impl ::std::convert::From<&InstanceResultsPage> for InstanceResultsPage { fn from(value: &InstanceResultsPage) -> Self { value.clone() } @@ -5136,7 +5143,7 @@ pub mod types { pub last_byte_offset: u64, } - impl From<&InstanceSerialConsoleData> for InstanceSerialConsoleData { + impl ::std::convert::From<&InstanceSerialConsoleData> for InstanceSerialConsoleData { fn from(value: &InstanceSerialConsoleData) -> Self { value.clone() } @@ -5290,7 +5297,7 @@ pub mod types { Destroyed, } - impl From<&InstanceState> for InstanceState { + impl ::std::convert::From<&InstanceState> for InstanceState { fn from(value: &InstanceState) -> Self { value.clone() } @@ -5313,7 +5320,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceState { + impl ::std::str::FromStr for InstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5332,14 +5339,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceState { + impl ::std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5348,7 +5355,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5392,7 +5399,7 @@ pub mod types { Floating, } - impl From<&IpKind> for IpKind { + impl ::std::convert::From<&IpKind> for IpKind { fn from(value: &IpKind) -> Self { value.clone() } @@ -5407,7 +5414,7 @@ pub mod types { } } - impl std::str::FromStr for IpKind { + impl ::std::str::FromStr for IpKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5418,14 +5425,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IpKind { + impl ::std::convert::TryFrom<&str> for IpKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IpKind { + impl ::std::convert::TryFrom<&::std::string::String> for IpKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5434,7 +5441,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IpKind { + impl ::std::convert::TryFrom<::std::string::String> for IpKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5479,13 +5486,13 @@ pub mod types { V6(Ipv6Net), } - impl From<&IpNet> for IpNet { + impl ::std::convert::From<&IpNet> for IpNet { fn from(value: &IpNet) -> Self { value.clone() } } - impl std::str::FromStr for IpNet { + impl ::std::str::FromStr for IpNet { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -5498,14 +5505,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IpNet { + impl ::std::convert::TryFrom<&str> for IpNet { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IpNet { + impl ::std::convert::TryFrom<&::std::string::String> for IpNet { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5514,7 +5521,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IpNet { + impl ::std::convert::TryFrom<::std::string::String> for IpNet { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5532,13 +5539,13 @@ pub mod types { } } - impl From for IpNet { + impl ::std::convert::From for IpNet { fn from(value: Ipv4Net) -> Self { Self::V4(value) } } - impl From for IpNet { + impl ::std::convert::From for IpNet { fn from(value: Ipv6Net) -> Self { Self::V6(value) } @@ -5611,7 +5618,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&IpPool> for IpPool { + impl ::std::convert::From<&IpPool> for IpPool { fn from(value: &IpPool) -> Self { value.clone() } @@ -5657,7 +5664,7 @@ pub mod types { pub name: Name, } - impl From<&IpPoolCreate> for IpPoolCreate { + impl ::std::convert::From<&IpPoolCreate> for IpPoolCreate { fn from(value: &IpPoolCreate) -> Self { value.clone() } @@ -5706,7 +5713,7 @@ pub mod types { pub time_created: chrono::DateTime, } - impl From<&IpPoolRange> for IpPoolRange { + impl ::std::convert::From<&IpPoolRange> for IpPoolRange { fn from(value: &IpPoolRange) -> Self { value.clone() } @@ -5760,7 +5767,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { + impl ::std::convert::From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { fn from(value: &IpPoolRangeResultsPage) -> Self { value.clone() } @@ -5814,7 +5821,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IpPoolResultsPage> for IpPoolResultsPage { + impl ::std::convert::From<&IpPoolResultsPage> for IpPoolResultsPage { fn from(value: &IpPoolResultsPage) -> Self { value.clone() } @@ -5869,12 +5876,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&IpPoolUpdate> for IpPoolUpdate { + impl ::std::convert::From<&IpPoolUpdate> for IpPoolUpdate { fn from(value: &IpPoolUpdate) -> Self { value.clone() } } + impl ::std::default::Default for IpPoolUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl IpPoolUpdate { pub fn builder() -> builder::IpPoolUpdate { Default::default() @@ -5917,19 +5933,19 @@ pub mod types { V6(Ipv6Range), } - impl From<&IpRange> for IpRange { + impl ::std::convert::From<&IpRange> for IpRange { fn from(value: &IpRange) -> Self { value.clone() } } - impl From for IpRange { + impl ::std::convert::From for IpRange { fn from(value: Ipv4Range) -> Self { Self::V4(value) } } - impl From for IpRange { + impl ::std::convert::From for IpRange { fn from(value: Ipv6Range) -> Self { Self::V6(value) } @@ -5965,6 +5981,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct Ipv4Net(::std::string::String); impl ::std::ops::Deref for Ipv4Net { type Target = ::std::string::String; @@ -5973,13 +5990,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Ipv4Net) -> Self { value.0 } } - impl From<&Ipv4Net> for Ipv4Net { + impl ::std::convert::From<&Ipv4Net> for Ipv4Net { fn from(value: &Ipv4Net) -> Self { value.clone() } @@ -6082,7 +6099,7 @@ pub mod types { pub last: std::net::Ipv4Addr, } - impl From<&Ipv4Range> for Ipv4Range { + impl ::std::convert::From<&Ipv4Range> for Ipv4Range { fn from(value: &Ipv4Range) -> Self { value.clone() } @@ -6123,6 +6140,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct Ipv6Net(::std::string::String); impl ::std::ops::Deref for Ipv6Net { type Target = ::std::string::String; @@ -6131,13 +6149,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Ipv6Net) -> Self { value.0 } } - impl From<&Ipv6Net> for Ipv6Net { + impl ::std::convert::From<&Ipv6Net> for Ipv6Net { fn from(value: &Ipv6Net) -> Self { value.clone() } @@ -6239,7 +6257,7 @@ pub mod types { pub last: std::net::Ipv6Addr, } - impl From<&Ipv6Range> for Ipv6Range { + impl ::std::convert::From<&Ipv6Range> for Ipv6Range { fn from(value: &Ipv6Range) -> Self { value.clone() } @@ -6282,6 +6300,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct L4PortRange(::std::string::String); impl ::std::ops::Deref for L4PortRange { type Target = ::std::string::String; @@ -6290,13 +6309,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: L4PortRange) -> Self { value.0 } } - impl From<&L4PortRange> for L4PortRange { + impl ::std::convert::From<&L4PortRange> for L4PortRange { fn from(value: &L4PortRange) -> Self { value.clone() } @@ -6389,6 +6408,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct MacAddr(::std::string::String); impl ::std::ops::Deref for MacAddr { type Target = ::std::string::String; @@ -6397,13 +6417,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: MacAddr) -> Self { value.0 } } - impl From<&MacAddr> for MacAddr { + impl ::std::convert::From<&MacAddr> for MacAddr { fn from(value: &MacAddr) -> Self { value.clone() } @@ -6502,7 +6522,7 @@ pub mod types { pub timestamp: chrono::DateTime, } - impl From<&Measurement> for Measurement { + impl ::std::convert::From<&Measurement> for Measurement { fn from(value: &Measurement) -> Self { value.clone() } @@ -6556,7 +6576,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&MeasurementResultsPage> for MeasurementResultsPage { + impl ::std::convert::From<&MeasurementResultsPage> for MeasurementResultsPage { fn from(value: &MeasurementResultsPage) -> Self { value.clone() } @@ -6600,6 +6620,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct Name(::std::string::String); impl ::std::ops::Deref for Name { type Target = ::std::string::String; @@ -6608,13 +6629,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Name) -> Self { value.0 } } - impl From<&Name> for Name { + impl ::std::convert::From<&Name> for Name { fn from(value: &Name) -> Self { value.clone() } @@ -6706,13 +6727,13 @@ pub mod types { Name(Name), } - impl From<&NameOrId> for NameOrId { + impl ::std::convert::From<&NameOrId> for NameOrId { fn from(value: &NameOrId) -> Self { value.clone() } } - impl std::str::FromStr for NameOrId { + impl ::std::str::FromStr for NameOrId { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -6725,14 +6746,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameOrId { + impl ::std::convert::TryFrom<&str> for NameOrId { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameOrId { + impl ::std::convert::TryFrom<&::std::string::String> for NameOrId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6741,7 +6762,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameOrId { + impl ::std::convert::TryFrom<::std::string::String> for NameOrId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6759,13 +6780,13 @@ pub mod types { } } - impl From for NameOrId { + impl ::std::convert::From for NameOrId { fn from(value: uuid::Uuid) -> Self { Self::Id(value) } } - impl From for NameOrId { + impl ::std::convert::From for NameOrId { fn from(value: Name) -> Self { Self::Name(value) } @@ -6830,7 +6851,7 @@ pub mod types { IdAscending, } - impl From<&NameOrIdSortMode> for NameOrIdSortMode { + impl ::std::convert::From<&NameOrIdSortMode> for NameOrIdSortMode { fn from(value: &NameOrIdSortMode) -> Self { value.clone() } @@ -6846,7 +6867,7 @@ pub mod types { } } - impl std::str::FromStr for NameOrIdSortMode { + impl ::std::str::FromStr for NameOrIdSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6858,14 +6879,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameOrIdSortMode { + impl ::std::convert::TryFrom<&str> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6874,7 +6895,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { + impl ::std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6924,7 +6945,7 @@ pub mod types { NameAscending, } - impl From<&NameSortMode> for NameSortMode { + impl ::std::convert::From<&NameSortMode> for NameSortMode { fn from(value: &NameSortMode) -> Self { value.clone() } @@ -6938,7 +6959,7 @@ pub mod types { } } - impl std::str::FromStr for NameSortMode { + impl ::std::str::FromStr for NameSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6948,14 +6969,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameSortMode { + impl ::std::convert::TryFrom<&str> for NameSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for NameSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6964,7 +6985,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameSortMode { + impl ::std::convert::TryFrom<::std::string::String> for NameSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7091,7 +7112,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&NetworkInterface> for NetworkInterface { + impl ::std::convert::From<&NetworkInterface> for NetworkInterface { fn from(value: &NetworkInterface) -> Self { value.clone() } @@ -7170,7 +7191,7 @@ pub mod types { pub vpc_name: Name, } - impl From<&NetworkInterfaceCreate> for NetworkInterfaceCreate { + impl ::std::convert::From<&NetworkInterfaceCreate> for NetworkInterfaceCreate { fn from(value: &NetworkInterfaceCreate) -> Self { value.clone() } @@ -7224,7 +7245,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { + impl ::std::convert::From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { fn from(value: &NetworkInterfaceResultsPage) -> Self { value.clone() } @@ -7311,12 +7332,22 @@ pub mod types { pub primary: bool, } - impl From<&NetworkInterfaceUpdate> for NetworkInterfaceUpdate { + impl ::std::convert::From<&NetworkInterfaceUpdate> for NetworkInterfaceUpdate { fn from(value: &NetworkInterfaceUpdate) -> Self { value.clone() } } + impl ::std::default::Default for NetworkInterfaceUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + primary: Default::default(), + } + } + } + impl NetworkInterfaceUpdate { pub fn builder() -> builder::NetworkInterfaceUpdate { Default::default() @@ -7354,6 +7385,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct NodeName(pub ::std::string::String); impl ::std::ops::Deref for NodeName { type Target = ::std::string::String; @@ -7362,19 +7394,19 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: NodeName) -> Self { value.0 } } - impl From<&NodeName> for NodeName { + impl ::std::convert::From<&NodeName> for NodeName { fn from(value: &NodeName) -> Self { value.clone() } } - impl From<::std::string::String> for NodeName { + impl ::std::convert::From<::std::string::String> for NodeName { fn from(value: ::std::string::String) -> Self { Self(value) } @@ -7458,7 +7490,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Organization> for Organization { + impl ::std::convert::From<&Organization> for Organization { fn from(value: &Organization) -> Self { value.clone() } @@ -7503,7 +7535,7 @@ pub mod types { pub name: Name, } - impl From<&OrganizationCreate> for OrganizationCreate { + impl ::std::convert::From<&OrganizationCreate> for OrganizationCreate { fn from(value: &OrganizationCreate) -> Self { value.clone() } @@ -7557,7 +7589,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&OrganizationResultsPage> for OrganizationResultsPage { + impl ::std::convert::From<&OrganizationResultsPage> for OrganizationResultsPage { fn from(value: &OrganizationResultsPage) -> Self { value.clone() } @@ -7606,7 +7638,7 @@ pub mod types { Viewer, } - impl From<&OrganizationRole> for OrganizationRole { + impl ::std::convert::From<&OrganizationRole> for OrganizationRole { fn from(value: &OrganizationRole) -> Self { value.clone() } @@ -7622,7 +7654,7 @@ pub mod types { } } - impl std::str::FromStr for OrganizationRole { + impl ::std::str::FromStr for OrganizationRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7634,14 +7666,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for OrganizationRole { + impl ::std::convert::TryFrom<&str> for OrganizationRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for OrganizationRole { + impl ::std::convert::TryFrom<&::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7650,7 +7682,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for OrganizationRole { + impl ::std::convert::TryFrom<::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7698,7 +7730,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&OrganizationRolePolicy> for OrganizationRolePolicy { + impl ::std::convert::From<&OrganizationRolePolicy> for OrganizationRolePolicy { fn from(value: &OrganizationRolePolicy) -> Self { value.clone() } @@ -7756,7 +7788,7 @@ pub mod types { pub role_name: OrganizationRole, } - impl From<&OrganizationRoleRoleAssignment> for OrganizationRoleRoleAssignment { + impl ::std::convert::From<&OrganizationRoleRoleAssignment> for OrganizationRoleRoleAssignment { fn from(value: &OrganizationRoleRoleAssignment) -> Self { value.clone() } @@ -7813,12 +7845,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&OrganizationUpdate> for OrganizationUpdate { + impl ::std::convert::From<&OrganizationUpdate> for OrganizationUpdate { fn from(value: &OrganizationUpdate) -> Self { value.clone() } } + impl ::std::default::Default for OrganizationUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl OrganizationUpdate { pub fn builder() -> builder::OrganizationUpdate { Default::default() @@ -7849,6 +7890,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct Password(::std::string::String); impl ::std::ops::Deref for Password { type Target = ::std::string::String; @@ -7857,13 +7899,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Password) -> Self { value.0 } } - impl From<&Password> for Password { + impl ::std::convert::From<&Password> for Password { fn from(value: &Password) -> Self { value.clone() } @@ -7994,7 +8036,7 @@ pub mod types { pub vendor: ::std::string::String, } - impl From<&PhysicalDisk> for PhysicalDisk { + impl ::std::convert::From<&PhysicalDisk> for PhysicalDisk { fn from(value: &PhysicalDisk) -> Self { value.clone() } @@ -8048,7 +8090,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { + impl ::std::convert::From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { fn from(value: &PhysicalDiskResultsPage) -> Self { value.clone() } @@ -8094,7 +8136,7 @@ pub mod types { External, } - impl From<&PhysicalDiskType> for PhysicalDiskType { + impl ::std::convert::From<&PhysicalDiskType> for PhysicalDiskType { fn from(value: &PhysicalDiskType) -> Self { value.clone() } @@ -8109,7 +8151,7 @@ pub mod types { } } - impl std::str::FromStr for PhysicalDiskType { + impl ::std::str::FromStr for PhysicalDiskType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8120,14 +8162,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for PhysicalDiskType { + impl ::std::convert::TryFrom<&str> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { + impl ::std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8136,7 +8178,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for PhysicalDiskType { + impl ::std::convert::TryFrom<::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8216,7 +8258,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Project> for Project { + impl ::std::convert::From<&Project> for Project { fn from(value: &Project) -> Self { value.clone() } @@ -8261,7 +8303,7 @@ pub mod types { pub name: Name, } - impl From<&ProjectCreate> for ProjectCreate { + impl ::std::convert::From<&ProjectCreate> for ProjectCreate { fn from(value: &ProjectCreate) -> Self { value.clone() } @@ -8315,7 +8357,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ProjectResultsPage> for ProjectResultsPage { + impl ::std::convert::From<&ProjectResultsPage> for ProjectResultsPage { fn from(value: &ProjectResultsPage) -> Self { value.clone() } @@ -8364,7 +8406,7 @@ pub mod types { Viewer, } - impl From<&ProjectRole> for ProjectRole { + impl ::std::convert::From<&ProjectRole> for ProjectRole { fn from(value: &ProjectRole) -> Self { value.clone() } @@ -8380,7 +8422,7 @@ pub mod types { } } - impl std::str::FromStr for ProjectRole { + impl ::std::str::FromStr for ProjectRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8392,14 +8434,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for ProjectRole { + impl ::std::convert::TryFrom<&str> for ProjectRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for ProjectRole { + impl ::std::convert::TryFrom<&::std::string::String> for ProjectRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8408,7 +8450,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for ProjectRole { + impl ::std::convert::TryFrom<::std::string::String> for ProjectRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8456,7 +8498,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&ProjectRolePolicy> for ProjectRolePolicy { + impl ::std::convert::From<&ProjectRolePolicy> for ProjectRolePolicy { fn from(value: &ProjectRolePolicy) -> Self { value.clone() } @@ -8514,7 +8556,7 @@ pub mod types { pub role_name: ProjectRole, } - impl From<&ProjectRoleRoleAssignment> for ProjectRoleRoleAssignment { + impl ::std::convert::From<&ProjectRoleRoleAssignment> for ProjectRoleRoleAssignment { fn from(value: &ProjectRoleRoleAssignment) -> Self { value.clone() } @@ -8571,12 +8613,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&ProjectUpdate> for ProjectUpdate { + impl ::std::convert::From<&ProjectUpdate> for ProjectUpdate { fn from(value: &ProjectUpdate) -> Self { value.clone() } } + impl ::std::default::Default for ProjectUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl ProjectUpdate { pub fn builder() -> builder::ProjectUpdate { Default::default() @@ -8629,7 +8680,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Rack> for Rack { + impl ::std::convert::From<&Rack> for Rack { fn from(value: &Rack) -> Self { value.clone() } @@ -8683,7 +8734,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RackResultsPage> for RackResultsPage { + impl ::std::convert::From<&RackResultsPage> for RackResultsPage { fn from(value: &RackResultsPage) -> Self { value.clone() } @@ -8726,7 +8777,7 @@ pub mod types { pub name: RoleName, } - impl From<&Role> for Role { + impl ::std::convert::From<&Role> for Role { fn from(value: &Role) -> Self { value.clone() } @@ -8764,6 +8815,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct RoleName(::std::string::String); impl ::std::ops::Deref for RoleName { type Target = ::std::string::String; @@ -8772,13 +8824,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: RoleName) -> Self { value.0 } } - impl From<&RoleName> for RoleName { + impl ::std::convert::From<&RoleName> for RoleName { fn from(value: &RoleName) -> Self { value.clone() } @@ -8881,7 +8933,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RoleResultsPage> for RoleResultsPage { + impl ::std::convert::From<&RoleResultsPage> for RoleResultsPage { fn from(value: &RoleResultsPage) -> Self { value.clone() } @@ -9013,19 +9065,19 @@ pub mod types { Subnet(Name), } - impl From<&RouteDestination> for RouteDestination { + impl ::std::convert::From<&RouteDestination> for RouteDestination { fn from(value: &RouteDestination) -> Self { value.clone() } } - impl From for RouteDestination { + impl ::std::convert::From for RouteDestination { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for RouteDestination { + impl ::std::convert::From for RouteDestination { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -9163,13 +9215,13 @@ pub mod types { InternetGateway(Name), } - impl From<&RouteTarget> for RouteTarget { + impl ::std::convert::From<&RouteTarget> for RouteTarget { fn from(value: &RouteTarget) -> Self { value.clone() } } - impl From for RouteTarget { + impl ::std::convert::From for RouteTarget { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } @@ -9272,7 +9324,7 @@ pub mod types { pub vpc_router_id: uuid::Uuid, } - impl From<&RouterRoute> for RouterRoute { + impl ::std::convert::From<&RouterRoute> for RouterRoute { fn from(value: &RouterRoute) -> Self { value.clone() } @@ -9325,7 +9377,7 @@ pub mod types { pub target: RouteTarget, } - impl From<&RouterRouteCreateParams> for RouterRouteCreateParams { + impl ::std::convert::From<&RouterRouteCreateParams> for RouterRouteCreateParams { fn from(value: &RouterRouteCreateParams) -> Self { value.clone() } @@ -9423,7 +9475,7 @@ pub mod types { Custom, } - impl From<&RouterRouteKind> for RouterRouteKind { + impl ::std::convert::From<&RouterRouteKind> for RouterRouteKind { fn from(value: &RouterRouteKind) -> Self { value.clone() } @@ -9440,7 +9492,7 @@ pub mod types { } } - impl std::str::FromStr for RouterRouteKind { + impl ::std::str::FromStr for RouterRouteKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9453,14 +9505,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for RouterRouteKind { + impl ::std::convert::TryFrom<&str> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for RouterRouteKind { + impl ::std::convert::TryFrom<&::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9469,7 +9521,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for RouterRouteKind { + impl ::std::convert::TryFrom<::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9520,7 +9572,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RouterRouteResultsPage> for RouterRouteResultsPage { + impl ::std::convert::From<&RouterRouteResultsPage> for RouterRouteResultsPage { fn from(value: &RouterRouteResultsPage) -> Self { value.clone() } @@ -9587,7 +9639,7 @@ pub mod types { pub target: RouteTarget, } - impl From<&RouterRouteUpdateParams> for RouterRouteUpdateParams { + impl ::std::convert::From<&RouterRouteUpdateParams> for RouterRouteUpdateParams { fn from(value: &RouterRouteUpdateParams) -> Self { value.clone() } @@ -9630,7 +9682,7 @@ pub mod types { pub state: SagaState, } - impl From<&Saga> for Saga { + impl ::std::convert::From<&Saga> for Saga { fn from(value: &Saga) -> Self { value.clone() } @@ -9754,7 +9806,7 @@ pub mod types { SubsagaCreateFailed { message: ::std::string::String }, } - impl From<&SagaErrorInfo> for SagaErrorInfo { + impl ::std::convert::From<&SagaErrorInfo> for SagaErrorInfo { fn from(value: &SagaErrorInfo) -> Self { value.clone() } @@ -9802,7 +9854,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SagaResultsPage> for SagaResultsPage { + impl ::std::convert::From<&SagaResultsPage> for SagaResultsPage { fn from(value: &SagaResultsPage) -> Self { value.clone() } @@ -9891,7 +9943,7 @@ pub mod types { }, } - impl From<&SagaState> for SagaState { + impl ::std::convert::From<&SagaState> for SagaState { fn from(value: &SagaState) -> Self { value.clone() } @@ -10014,7 +10066,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&SamlIdentityProvider> for SamlIdentityProvider { + impl ::std::convert::From<&SamlIdentityProvider> for SamlIdentityProvider { fn from(value: &SamlIdentityProvider) -> Self { value.clone() } @@ -10139,7 +10191,7 @@ pub mod types { pub technical_contact_email: ::std::string::String, } - impl From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { + impl ::std::convert::From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { fn from(value: &SamlIdentityProviderCreate) -> Self { value.clone() } @@ -10173,6 +10225,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct SemverVersion(::std::string::String); impl ::std::ops::Deref for SemverVersion { type Target = ::std::string::String; @@ -10181,13 +10234,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: SemverVersion) -> Self { value.0 } } - impl From<&SemverVersion> for SemverVersion { + impl ::std::convert::From<&SemverVersion> for SemverVersion { fn from(value: &SemverVersion) -> Self { value.clone() } @@ -10284,7 +10337,7 @@ pub mod types { ExternalApi, } - impl From<&ServiceUsingCertificate> for ServiceUsingCertificate { + impl ::std::convert::From<&ServiceUsingCertificate> for ServiceUsingCertificate { fn from(value: &ServiceUsingCertificate) -> Self { value.clone() } @@ -10298,7 +10351,7 @@ pub mod types { } } - impl std::str::FromStr for ServiceUsingCertificate { + impl ::std::str::FromStr for ServiceUsingCertificate { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10308,14 +10361,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<&str> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10324,7 +10377,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10417,7 +10470,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Silo> for Silo { + impl ::std::convert::From<&Silo> for Silo { fn from(value: &Silo) -> Self { value.clone() } @@ -10494,7 +10547,7 @@ pub mod types { pub name: Name, } - impl From<&SiloCreate> for SiloCreate { + impl ::std::convert::From<&SiloCreate> for SiloCreate { fn from(value: &SiloCreate) -> Self { value.clone() } @@ -10565,7 +10618,7 @@ pub mod types { LocalOnly, } - impl From<&SiloIdentityMode> for SiloIdentityMode { + impl ::std::convert::From<&SiloIdentityMode> for SiloIdentityMode { fn from(value: &SiloIdentityMode) -> Self { value.clone() } @@ -10580,7 +10633,7 @@ pub mod types { } } - impl std::str::FromStr for SiloIdentityMode { + impl ::std::str::FromStr for SiloIdentityMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10591,14 +10644,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SiloIdentityMode { + impl ::std::convert::TryFrom<&str> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { + impl ::std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10607,7 +10660,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SiloIdentityMode { + impl ::std::convert::TryFrom<::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10658,7 +10711,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SiloResultsPage> for SiloResultsPage { + impl ::std::convert::From<&SiloResultsPage> for SiloResultsPage { fn from(value: &SiloResultsPage) -> Self { value.clone() } @@ -10707,7 +10760,7 @@ pub mod types { Viewer, } - impl From<&SiloRole> for SiloRole { + impl ::std::convert::From<&SiloRole> for SiloRole { fn from(value: &SiloRole) -> Self { value.clone() } @@ -10723,7 +10776,7 @@ pub mod types { } } - impl std::str::FromStr for SiloRole { + impl ::std::str::FromStr for SiloRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10735,14 +10788,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SiloRole { + impl ::std::convert::TryFrom<&str> for SiloRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SiloRole { + impl ::std::convert::TryFrom<&::std::string::String> for SiloRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10751,7 +10804,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SiloRole { + impl ::std::convert::TryFrom<::std::string::String> for SiloRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10799,7 +10852,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&SiloRolePolicy> for SiloRolePolicy { + impl ::std::convert::From<&SiloRolePolicy> for SiloRolePolicy { fn from(value: &SiloRolePolicy) -> Self { value.clone() } @@ -10857,7 +10910,7 @@ pub mod types { pub role_name: SiloRole, } - impl From<&SiloRoleRoleAssignment> for SiloRoleRoleAssignment { + impl ::std::convert::From<&SiloRoleRoleAssignment> for SiloRoleRoleAssignment { fn from(value: &SiloRoleRoleAssignment) -> Self { value.clone() } @@ -10925,7 +10978,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Sled> for Sled { + impl ::std::convert::From<&Sled> for Sled { fn from(value: &Sled) -> Self { value.clone() } @@ -10979,7 +11032,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SledResultsPage> for SledResultsPage { + impl ::std::convert::From<&SledResultsPage> for SledResultsPage { fn from(value: &SledResultsPage) -> Self { value.clone() } @@ -11078,7 +11131,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Snapshot> for Snapshot { + impl ::std::convert::From<&Snapshot> for Snapshot { fn from(value: &Snapshot) -> Self { value.clone() } @@ -11134,7 +11187,7 @@ pub mod types { pub name: Name, } - impl From<&SnapshotCreate> for SnapshotCreate { + impl ::std::convert::From<&SnapshotCreate> for SnapshotCreate { fn from(value: &SnapshotCreate) -> Self { value.clone() } @@ -11188,7 +11241,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SnapshotResultsPage> for SnapshotResultsPage { + impl ::std::convert::From<&SnapshotResultsPage> for SnapshotResultsPage { fn from(value: &SnapshotResultsPage) -> Self { value.clone() } @@ -11240,7 +11293,7 @@ pub mod types { Destroyed, } - impl From<&SnapshotState> for SnapshotState { + impl ::std::convert::From<&SnapshotState> for SnapshotState { fn from(value: &SnapshotState) -> Self { value.clone() } @@ -11257,7 +11310,7 @@ pub mod types { } } - impl std::str::FromStr for SnapshotState { + impl ::std::str::FromStr for SnapshotState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11270,14 +11323,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SnapshotState { + impl ::std::convert::TryFrom<&str> for SnapshotState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SnapshotState { + impl ::std::convert::TryFrom<&::std::string::String> for SnapshotState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11286,7 +11339,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SnapshotState { + impl ::std::convert::TryFrom<::std::string::String> for SnapshotState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11320,7 +11373,7 @@ pub mod types { pub username: ::std::string::String, } - impl From<&SpoofLoginBody> for SpoofLoginBody { + impl ::std::convert::From<&SpoofLoginBody> for SpoofLoginBody { fn from(value: &SpoofLoginBody) -> Self { value.clone() } @@ -11413,7 +11466,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&SshKey> for SshKey { + impl ::std::convert::From<&SshKey> for SshKey { fn from(value: &SshKey) -> Self { value.clone() } @@ -11466,7 +11519,7 @@ pub mod types { pub public_key: ::std::string::String, } - impl From<&SshKeyCreate> for SshKeyCreate { + impl ::std::convert::From<&SshKeyCreate> for SshKeyCreate { fn from(value: &SshKeyCreate) -> Self { value.clone() } @@ -11520,7 +11573,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SshKeyResultsPage> for SshKeyResultsPage { + impl ::std::convert::From<&SshKeyResultsPage> for SshKeyResultsPage { fn from(value: &SshKeyResultsPage) -> Self { value.clone() } @@ -11569,7 +11622,7 @@ pub mod types { RamProvisioned, } - impl From<&SystemMetricName> for SystemMetricName { + impl ::std::convert::From<&SystemMetricName> for SystemMetricName { fn from(value: &SystemMetricName) -> Self { value.clone() } @@ -11585,7 +11638,7 @@ pub mod types { } } - impl std::str::FromStr for SystemMetricName { + impl ::std::str::FromStr for SystemMetricName { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11597,14 +11650,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SystemMetricName { + impl ::std::convert::TryFrom<&str> for SystemMetricName { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SystemMetricName { + impl ::std::convert::TryFrom<&::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11613,7 +11666,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SystemMetricName { + impl ::std::convert::TryFrom<::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11675,7 +11728,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&SystemUpdate> for SystemUpdate { + impl ::std::convert::From<&SystemUpdate> for SystemUpdate { fn from(value: &SystemUpdate) -> Self { value.clone() } @@ -11729,7 +11782,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { + impl ::std::convert::From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { fn from(value: &SystemUpdateResultsPage) -> Self { value.clone() } @@ -11766,7 +11819,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&SystemUpdateStart> for SystemUpdateStart { + impl ::std::convert::From<&SystemUpdateStart> for SystemUpdateStart { fn from(value: &SystemUpdateStart) -> Self { value.clone() } @@ -11808,7 +11861,7 @@ pub mod types { pub version_range: VersionRange, } - impl From<&SystemVersion> for SystemVersion { + impl ::std::convert::From<&SystemVersion> for SystemVersion { fn from(value: &SystemVersion) -> Self { value.clone() } @@ -11849,6 +11902,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct TimeseriesName(::std::string::String); impl ::std::ops::Deref for TimeseriesName { type Target = ::std::string::String; @@ -11857,13 +11911,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: TimeseriesName) -> Self { value.0 } } - impl From<&TimeseriesName> for TimeseriesName { + impl ::std::convert::From<&TimeseriesName> for TimeseriesName { fn from(value: &TimeseriesName) -> Self { value.clone() } @@ -11976,7 +12030,7 @@ pub mod types { pub timeseries_name: TimeseriesName, } - impl From<&TimeseriesSchema> for TimeseriesSchema { + impl ::std::convert::From<&TimeseriesSchema> for TimeseriesSchema { fn from(value: &TimeseriesSchema) -> Self { value.clone() } @@ -12030,7 +12084,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { + impl ::std::convert::From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { fn from(value: &TimeseriesSchemaResultsPage) -> Self { value.clone() } @@ -12100,7 +12154,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&UpdateDeployment> for UpdateDeployment { + impl ::std::convert::From<&UpdateDeployment> for UpdateDeployment { fn from(value: &UpdateDeployment) -> Self { value.clone() } @@ -12154,7 +12208,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { + impl ::std::convert::From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { fn from(value: &UpdateDeploymentResultsPage) -> Self { value.clone() } @@ -12226,7 +12280,7 @@ pub mod types { Steady, } - impl From<&UpdateStatus> for UpdateStatus { + impl ::std::convert::From<&UpdateStatus> for UpdateStatus { fn from(value: &UpdateStatus) -> Self { value.clone() } @@ -12241,7 +12295,7 @@ pub mod types { } } - impl std::str::FromStr for UpdateStatus { + impl ::std::str::FromStr for UpdateStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12252,14 +12306,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for UpdateStatus { + impl ::std::convert::TryFrom<&str> for UpdateStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for UpdateStatus { + impl ::std::convert::TryFrom<&::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12268,7 +12322,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for UpdateStatus { + impl ::std::convert::TryFrom<::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12350,7 +12404,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&UpdateableComponent> for UpdateableComponent { + impl ::std::convert::From<&UpdateableComponent> for UpdateableComponent { fn from(value: &UpdateableComponent) -> Self { value.clone() } @@ -12404,7 +12458,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { + impl ::std::convert::From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { fn from(value: &UpdateableComponentResultsPage) -> Self { value.clone() } @@ -12480,7 +12534,7 @@ pub mod types { HostOmicron, } - impl From<&UpdateableComponentType> for UpdateableComponentType { + impl ::std::convert::From<&UpdateableComponentType> for UpdateableComponentType { fn from(value: &UpdateableComponentType) -> Self { value.clone() } @@ -12505,7 +12559,7 @@ pub mod types { } } - impl std::str::FromStr for UpdateableComponentType { + impl ::std::str::FromStr for UpdateableComponentType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12526,14 +12580,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for UpdateableComponentType { + impl ::std::convert::TryFrom<&str> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { + impl ::std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12542,7 +12596,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for UpdateableComponentType { + impl ::std::convert::TryFrom<::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12593,7 +12647,7 @@ pub mod types { pub silo_id: uuid::Uuid, } - impl From<&User> for User { + impl ::std::convert::From<&User> for User { fn from(value: &User) -> Self { value.clone() } @@ -12670,7 +12724,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&UserBuiltin> for UserBuiltin { + impl ::std::convert::From<&UserBuiltin> for UserBuiltin { fn from(value: &UserBuiltin) -> Self { value.clone() } @@ -12724,7 +12778,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { + impl ::std::convert::From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { fn from(value: &UserBuiltinResultsPage) -> Self { value.clone() } @@ -12780,7 +12834,7 @@ pub mod types { pub password: UserPassword, } - impl From<&UserCreate> for UserCreate { + impl ::std::convert::From<&UserCreate> for UserCreate { fn from(value: &UserCreate) -> Self { value.clone() } @@ -12824,6 +12878,7 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct UserId(::std::string::String); impl ::std::ops::Deref for UserId { type Target = ::std::string::String; @@ -12832,13 +12887,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: UserId) -> Self { value.0 } } - impl From<&UserId> for UserId { + impl ::std::convert::From<&UserId> for UserId { fn from(value: &UserId) -> Self { value.clone() } @@ -12952,13 +13007,13 @@ pub mod types { InvalidPassword, } - impl From<&UserPassword> for UserPassword { + impl ::std::convert::From<&UserPassword> for UserPassword { fn from(value: &UserPassword) -> Self { value.clone() } } - impl From for UserPassword { + impl ::std::convert::From for UserPassword { fn from(value: Password) -> Self { Self::Password(value) } @@ -13006,7 +13061,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UserResultsPage> for UserResultsPage { + impl ::std::convert::From<&UserResultsPage> for UserResultsPage { fn from(value: &UserResultsPage) -> Self { value.clone() } @@ -13049,7 +13104,7 @@ pub mod types { pub username: UserId, } - impl From<&UsernamePasswordCredentials> for UsernamePasswordCredentials { + impl ::std::convert::From<&UsernamePasswordCredentials> for UsernamePasswordCredentials { fn from(value: &UsernamePasswordCredentials) -> Self { value.clone() } @@ -13091,7 +13146,7 @@ pub mod types { pub low: SemverVersion, } - impl From<&VersionRange> for VersionRange { + impl ::std::convert::From<&VersionRange> for VersionRange { fn from(value: &VersionRange) -> Self { value.clone() } @@ -13208,7 +13263,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Vpc> for Vpc { + impl ::std::convert::From<&Vpc> for Vpc { fn from(value: &Vpc) -> Self { value.clone() } @@ -13283,7 +13338,7 @@ pub mod types { pub name: Name, } - impl From<&VpcCreate> for VpcCreate { + impl ::std::convert::From<&VpcCreate> for VpcCreate { fn from(value: &VpcCreate) -> Self { value.clone() } @@ -13434,7 +13489,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcFirewallRule> for VpcFirewallRule { + impl ::std::convert::From<&VpcFirewallRule> for VpcFirewallRule { fn from(value: &VpcFirewallRule) -> Self { value.clone() } @@ -13480,7 +13535,7 @@ pub mod types { Deny, } - impl From<&VpcFirewallRuleAction> for VpcFirewallRuleAction { + impl ::std::convert::From<&VpcFirewallRuleAction> for VpcFirewallRuleAction { fn from(value: &VpcFirewallRuleAction) -> Self { value.clone() } @@ -13495,7 +13550,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleAction { + impl ::std::str::FromStr for VpcFirewallRuleAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13506,14 +13561,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13522,7 +13577,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13565,7 +13620,7 @@ pub mod types { Outbound, } - impl From<&VpcFirewallRuleDirection> for VpcFirewallRuleDirection { + impl ::std::convert::From<&VpcFirewallRuleDirection> for VpcFirewallRuleDirection { fn from(value: &VpcFirewallRuleDirection) -> Self { value.clone() } @@ -13580,7 +13635,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleDirection { + impl ::std::str::FromStr for VpcFirewallRuleDirection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13591,14 +13646,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13607,7 +13662,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13682,12 +13737,22 @@ pub mod types { pub protocols: ::std::option::Option<::std::vec::Vec>, } - impl From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { + impl ::std::convert::From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { fn from(value: &VpcFirewallRuleFilter) -> Self { value.clone() } } + impl ::std::default::Default for VpcFirewallRuleFilter { + fn default() -> Self { + Self { + hosts: Default::default(), + ports: Default::default(), + protocols: Default::default(), + } + } + } + impl VpcFirewallRuleFilter { pub fn builder() -> builder::VpcFirewallRuleFilter { Default::default() @@ -13831,19 +13896,19 @@ pub mod types { IpNet(IpNet), } - impl From<&VpcFirewallRuleHostFilter> for VpcFirewallRuleHostFilter { + impl ::std::convert::From<&VpcFirewallRuleHostFilter> for VpcFirewallRuleHostFilter { fn from(value: &VpcFirewallRuleHostFilter) -> Self { value.clone() } } - impl From for VpcFirewallRuleHostFilter { + impl ::std::convert::From for VpcFirewallRuleHostFilter { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for VpcFirewallRuleHostFilter { + impl ::std::convert::From for VpcFirewallRuleHostFilter { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -13888,7 +13953,7 @@ pub mod types { Icmp, } - impl From<&VpcFirewallRuleProtocol> for VpcFirewallRuleProtocol { + impl ::std::convert::From<&VpcFirewallRuleProtocol> for VpcFirewallRuleProtocol { fn from(value: &VpcFirewallRuleProtocol) -> Self { value.clone() } @@ -13904,7 +13969,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleProtocol { + impl ::std::str::FromStr for VpcFirewallRuleProtocol { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13916,14 +13981,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13932,7 +13997,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13975,7 +14040,7 @@ pub mod types { Enabled, } - impl From<&VpcFirewallRuleStatus> for VpcFirewallRuleStatus { + impl ::std::convert::From<&VpcFirewallRuleStatus> for VpcFirewallRuleStatus { fn from(value: &VpcFirewallRuleStatus) -> Self { value.clone() } @@ -13990,7 +14055,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleStatus { + impl ::std::str::FromStr for VpcFirewallRuleStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14001,14 +14066,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14017,7 +14082,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14159,19 +14224,19 @@ pub mod types { IpNet(IpNet), } - impl From<&VpcFirewallRuleTarget> for VpcFirewallRuleTarget { + impl ::std::convert::From<&VpcFirewallRuleTarget> for VpcFirewallRuleTarget { fn from(value: &VpcFirewallRuleTarget) -> Self { value.clone() } } - impl From for VpcFirewallRuleTarget { + impl ::std::convert::From for VpcFirewallRuleTarget { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for VpcFirewallRuleTarget { + impl ::std::convert::From for VpcFirewallRuleTarget { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -14282,7 +14347,7 @@ pub mod types { pub targets: ::std::vec::Vec, } - impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { + impl ::std::convert::From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { fn from(value: &VpcFirewallRuleUpdate) -> Self { value.clone() } @@ -14327,7 +14392,7 @@ pub mod types { pub rules: ::std::vec::Vec, } - impl From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { + impl ::std::convert::From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { fn from(value: &VpcFirewallRuleUpdateParams) -> Self { value.clone() } @@ -14368,7 +14433,7 @@ pub mod types { pub rules: ::std::vec::Vec, } - impl From<&VpcFirewallRules> for VpcFirewallRules { + impl ::std::convert::From<&VpcFirewallRules> for VpcFirewallRules { fn from(value: &VpcFirewallRules) -> Self { value.clone() } @@ -14422,7 +14487,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcResultsPage> for VpcResultsPage { + impl ::std::convert::From<&VpcResultsPage> for VpcResultsPage { fn from(value: &VpcResultsPage) -> Self { value.clone() } @@ -14514,7 +14579,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcRouter> for VpcRouter { + impl ::std::convert::From<&VpcRouter> for VpcRouter { fn from(value: &VpcRouter) -> Self { value.clone() } @@ -14559,7 +14624,7 @@ pub mod types { pub name: Name, } - impl From<&VpcRouterCreate> for VpcRouterCreate { + impl ::std::convert::From<&VpcRouterCreate> for VpcRouterCreate { fn from(value: &VpcRouterCreate) -> Self { value.clone() } @@ -14605,7 +14670,7 @@ pub mod types { Custom, } - impl From<&VpcRouterKind> for VpcRouterKind { + impl ::std::convert::From<&VpcRouterKind> for VpcRouterKind { fn from(value: &VpcRouterKind) -> Self { value.clone() } @@ -14620,7 +14685,7 @@ pub mod types { } } - impl std::str::FromStr for VpcRouterKind { + impl ::std::str::FromStr for VpcRouterKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14631,14 +14696,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcRouterKind { + impl ::std::convert::TryFrom<&str> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcRouterKind { + impl ::std::convert::TryFrom<&::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14647,7 +14712,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcRouterKind { + impl ::std::convert::TryFrom<::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14698,7 +14763,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcRouterResultsPage> for VpcRouterResultsPage { + impl ::std::convert::From<&VpcRouterResultsPage> for VpcRouterResultsPage { fn from(value: &VpcRouterResultsPage) -> Self { value.clone() } @@ -14755,12 +14820,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcRouterUpdate> for VpcRouterUpdate { + impl ::std::convert::From<&VpcRouterUpdate> for VpcRouterUpdate { fn from(value: &VpcRouterUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcRouterUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl VpcRouterUpdate { pub fn builder() -> builder::VpcRouterUpdate { Default::default() @@ -14866,7 +14940,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcSubnet> for VpcSubnet { + impl ::std::convert::From<&VpcSubnet> for VpcSubnet { fn from(value: &VpcSubnet) -> Self { value.clone() } @@ -14954,7 +15028,7 @@ pub mod types { pub name: Name, } - impl From<&VpcSubnetCreate> for VpcSubnetCreate { + impl ::std::convert::From<&VpcSubnetCreate> for VpcSubnetCreate { fn from(value: &VpcSubnetCreate) -> Self { value.clone() } @@ -15008,7 +15082,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { + impl ::std::convert::From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { fn from(value: &VpcSubnetResultsPage) -> Self { value.clone() } @@ -15065,12 +15139,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcSubnetUpdate> for VpcSubnetUpdate { + impl ::std::convert::From<&VpcSubnetUpdate> for VpcSubnetUpdate { fn from(value: &VpcSubnetUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcSubnetUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl VpcSubnetUpdate { pub fn builder() -> builder::VpcSubnetUpdate { Default::default() @@ -15137,12 +15220,22 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcUpdate> for VpcUpdate { + impl ::std::convert::From<&VpcUpdate> for VpcUpdate { fn from(value: &VpcUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcUpdate { + fn default() -> Self { + Self { + description: Default::default(), + dns_name: Default::default(), + name: Default::default(), + } + } + } + impl VpcUpdate { pub fn builder() -> builder::VpcUpdate { Default::default() @@ -15158,7 +15251,7 @@ pub mod types { serial: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Baseboard { + impl ::std::default::Default for Baseboard { fn default() -> Self { Self { part: Err("no value supplied for part".to_string()), @@ -15171,8 +15264,8 @@ pub mod types { impl Baseboard { pub fn part(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.part = value .try_into() @@ -15181,8 +15274,8 @@ pub mod types { } pub fn revision(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.revision = value .try_into() @@ -15191,8 +15284,8 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.serial = value .try_into() @@ -15214,7 +15307,7 @@ pub mod types { } } - impl From for Baseboard { + impl ::std::convert::From for Baseboard { fn from(value: super::Baseboard) -> Self { Self { part: Ok(value.part), @@ -15230,7 +15323,7 @@ pub mod types { range: ::std::result::Result, } - impl Default for Bindouble { + impl ::std::default::Default for Bindouble { fn default() -> Self { Self { count: Err("no value supplied for count".to_string()), @@ -15242,8 +15335,8 @@ pub mod types { impl Bindouble { pub fn count(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.count = value .try_into() @@ -15252,8 +15345,8 @@ pub mod types { } pub fn range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.range = value .try_into() @@ -15274,7 +15367,7 @@ pub mod types { } } - impl From for Bindouble { + impl ::std::convert::From for Bindouble { fn from(value: super::Bindouble) -> Self { Self { count: Ok(value.count), @@ -15289,7 +15382,7 @@ pub mod types { range: ::std::result::Result, } - impl Default for Binint64 { + impl ::std::default::Default for Binint64 { fn default() -> Self { Self { count: Err("no value supplied for count".to_string()), @@ -15301,8 +15394,8 @@ pub mod types { impl Binint64 { pub fn count(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.count = value .try_into() @@ -15311,8 +15404,8 @@ pub mod types { } pub fn range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.range = value .try_into() @@ -15333,7 +15426,7 @@ pub mod types { } } - impl From for Binint64 { + impl ::std::convert::From for Binint64 { fn from(value: super::Binint64) -> Self { Self { count: Ok(value.count), @@ -15354,7 +15447,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Certificate { + impl ::std::default::Default for Certificate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -15370,8 +15463,8 @@ pub mod types { impl Certificate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -15380,8 +15473,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -15390,8 +15483,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -15400,8 +15493,8 @@ pub mod types { } pub fn service(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.service = value .try_into() @@ -15410,8 +15503,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -15420,8 +15513,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -15446,7 +15539,7 @@ pub mod types { } } - impl From for Certificate { + impl ::std::convert::From for Certificate { fn from(value: super::Certificate) -> Self { Self { description: Ok(value.description), @@ -15468,7 +15561,7 @@ pub mod types { service: ::std::result::Result, } - impl Default for CertificateCreate { + impl ::std::default::Default for CertificateCreate { fn default() -> Self { Self { cert: Err("no value supplied for cert".to_string()), @@ -15483,8 +15576,8 @@ pub mod types { impl CertificateCreate { pub fn cert(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.cert = value .try_into() @@ -15493,8 +15586,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -15503,8 +15596,8 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.key = value .try_into() @@ -15513,8 +15606,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -15523,8 +15616,8 @@ pub mod types { } pub fn service(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.service = value .try_into() @@ -15548,7 +15641,7 @@ pub mod types { } } - impl From for CertificateCreate { + impl ::std::convert::From for CertificateCreate { fn from(value: super::CertificateCreate) -> Self { Self { cert: Ok(value.cert), @@ -15570,7 +15663,7 @@ pub mod types { >, } - impl Default for CertificateResultsPage { + impl ::std::default::Default for CertificateResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -15582,8 +15675,8 @@ pub mod types { impl CertificateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -15592,8 +15685,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -15614,7 +15707,7 @@ pub mod types { } } - impl From for CertificateResultsPage { + impl ::std::convert::From for CertificateResultsPage { fn from(value: super::CertificateResultsPage) -> Self { Self { items: Ok(value.items), @@ -15635,7 +15728,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for ComponentUpdate { + impl ::std::default::Default for ComponentUpdate { fn default() -> Self { Self { component_type: Err("no value supplied for component_type".to_string()), @@ -15650,8 +15743,8 @@ pub mod types { impl ComponentUpdate { pub fn component_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.component_type = value.try_into().map_err(|e| { format!("error converting supplied value for component_type: {}", e) @@ -15660,8 +15753,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -15670,8 +15763,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -15680,8 +15773,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -15690,8 +15783,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -15715,7 +15808,7 @@ pub mod types { } } - impl From for ComponentUpdate { + impl ::std::convert::From for ComponentUpdate { fn from(value: super::ComponentUpdate) -> Self { Self { component_type: Ok(value.component_type), @@ -15739,7 +15832,7 @@ pub mod types { >, } - impl Default for ComponentUpdateResultsPage { + impl ::std::default::Default for ComponentUpdateResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -15751,8 +15844,8 @@ pub mod types { impl ComponentUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -15761,8 +15854,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -15783,7 +15876,7 @@ pub mod types { } } - impl From for ComponentUpdateResultsPage { + impl ::std::convert::From for ComponentUpdateResultsPage { fn from(value: super::ComponentUpdateResultsPage) -> Self { Self { items: Ok(value.items), @@ -15799,7 +15892,7 @@ pub mod types { value: ::std::result::Result, } - impl Default for Cumulativedouble { + impl ::std::default::Default for Cumulativedouble { fn default() -> Self { Self { start_time: Err("no value supplied for start_time".to_string()), @@ -15811,8 +15904,8 @@ pub mod types { impl Cumulativedouble { pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -15821,8 +15914,8 @@ pub mod types { } pub fn value(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.value = value .try_into() @@ -15843,7 +15936,7 @@ pub mod types { } } - impl From for Cumulativedouble { + impl ::std::convert::From for Cumulativedouble { fn from(value: super::Cumulativedouble) -> Self { Self { start_time: Ok(value.start_time), @@ -15859,7 +15952,7 @@ pub mod types { value: ::std::result::Result, } - impl Default for Cumulativeint64 { + impl ::std::default::Default for Cumulativeint64 { fn default() -> Self { Self { start_time: Err("no value supplied for start_time".to_string()), @@ -15871,8 +15964,8 @@ pub mod types { impl Cumulativeint64 { pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -15881,8 +15974,8 @@ pub mod types { } pub fn value(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.value = value .try_into() @@ -15903,7 +15996,7 @@ pub mod types { } } - impl From for Cumulativeint64 { + impl ::std::convert::From for Cumulativeint64 { fn from(value: super::Cumulativeint64) -> Self { Self { start_time: Ok(value.start_time), @@ -15918,7 +16011,7 @@ pub mod types { public_cert: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for DerEncodedKeyPair { + impl ::std::default::Default for DerEncodedKeyPair { fn default() -> Self { Self { private_key: Err("no value supplied for private_key".to_string()), @@ -15930,8 +16023,8 @@ pub mod types { impl DerEncodedKeyPair { pub fn private_key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.private_key = value .try_into() @@ -15940,8 +16033,8 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.public_cert = value .try_into() @@ -15962,7 +16055,7 @@ pub mod types { } } - impl From for DerEncodedKeyPair { + impl ::std::convert::From for DerEncodedKeyPair { fn from(value: super::DerEncodedKeyPair) -> Self { Self { private_key: Ok(value.private_key), @@ -15978,7 +16071,7 @@ pub mod types { grant_type: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for DeviceAccessTokenRequest { + impl ::std::default::Default for DeviceAccessTokenRequest { fn default() -> Self { Self { client_id: Err("no value supplied for client_id".to_string()), @@ -15991,8 +16084,8 @@ pub mod types { impl DeviceAccessTokenRequest { pub fn client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.client_id = value .try_into() @@ -16001,8 +16094,8 @@ pub mod types { } pub fn device_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device_code = value .try_into() @@ -16011,8 +16104,8 @@ pub mod types { } pub fn grant_type(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.grant_type = value .try_into() @@ -16034,7 +16127,7 @@ pub mod types { } } - impl From for DeviceAccessTokenRequest { + impl ::std::convert::From for DeviceAccessTokenRequest { fn from(value: super::DeviceAccessTokenRequest) -> Self { Self { client_id: Ok(value.client_id), @@ -16049,7 +16142,7 @@ pub mod types { client_id: ::std::result::Result, } - impl Default for DeviceAuthRequest { + impl ::std::default::Default for DeviceAuthRequest { fn default() -> Self { Self { client_id: Err("no value supplied for client_id".to_string()), @@ -16060,8 +16153,8 @@ pub mod types { impl DeviceAuthRequest { pub fn client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.client_id = value .try_into() @@ -16081,7 +16174,7 @@ pub mod types { } } - impl From for DeviceAuthRequest { + impl ::std::convert::From for DeviceAuthRequest { fn from(value: super::DeviceAuthRequest) -> Self { Self { client_id: Ok(value.client_id), @@ -16094,7 +16187,7 @@ pub mod types { user_code: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for DeviceAuthVerify { + impl ::std::default::Default for DeviceAuthVerify { fn default() -> Self { Self { user_code: Err("no value supplied for user_code".to_string()), @@ -16105,8 +16198,8 @@ pub mod types { impl DeviceAuthVerify { pub fn user_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.user_code = value .try_into() @@ -16126,7 +16219,7 @@ pub mod types { } } - impl From for DeviceAuthVerify { + impl ::std::convert::From for DeviceAuthVerify { fn from(value: super::DeviceAuthVerify) -> Self { Self { user_code: Ok(value.user_code), @@ -16154,7 +16247,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Disk { + impl ::std::default::Default for Disk { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -16176,8 +16269,8 @@ pub mod types { impl Disk { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -16186,8 +16279,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -16196,8 +16289,8 @@ pub mod types { } pub fn device_path(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device_path = value .try_into() @@ -16206,8 +16299,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -16216,8 +16309,8 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.image_id = value .try_into() @@ -16226,8 +16319,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16236,8 +16329,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -16246,8 +16339,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -16256,8 +16349,8 @@ pub mod types { } pub fn snapshot_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.snapshot_id = value .try_into() @@ -16266,8 +16359,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -16276,8 +16369,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -16286,8 +16379,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -16316,7 +16409,7 @@ pub mod types { } } - impl From for Disk { + impl ::std::convert::From for Disk { fn from(value: super::Disk) -> Self { Self { block_size: Ok(value.block_size), @@ -16343,7 +16436,7 @@ pub mod types { size: ::std::result::Result, } - impl Default for DiskCreate { + impl ::std::default::Default for DiskCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -16357,8 +16450,8 @@ pub mod types { impl DiskCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -16367,8 +16460,8 @@ pub mod types { } pub fn disk_source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_source = value .try_into() @@ -16377,8 +16470,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16387,8 +16480,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -16411,7 +16504,7 @@ pub mod types { } } - impl From for DiskCreate { + impl ::std::convert::From for DiskCreate { fn from(value: super::DiskCreate) -> Self { Self { description: Ok(value.description), @@ -16427,7 +16520,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for DiskIdentifier { + impl ::std::default::Default for DiskIdentifier { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -16438,8 +16531,8 @@ pub mod types { impl DiskIdentifier { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16457,7 +16550,7 @@ pub mod types { } } - impl From for DiskIdentifier { + impl ::std::convert::From for DiskIdentifier { fn from(value: super::DiskIdentifier) -> Self { Self { name: Ok(value.name), @@ -16470,7 +16563,7 @@ pub mod types { disk: ::std::result::Result, } - impl Default for DiskPath { + impl ::std::default::Default for DiskPath { fn default() -> Self { Self { disk: Err("no value supplied for disk".to_string()), @@ -16481,8 +16574,8 @@ pub mod types { impl DiskPath { pub fn disk(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk = value .try_into() @@ -16500,7 +16593,7 @@ pub mod types { } } - impl From for DiskPath { + impl ::std::convert::From for DiskPath { fn from(value: super::DiskPath) -> Self { Self { disk: Ok(value.disk), @@ -16517,7 +16610,7 @@ pub mod types { >, } - impl Default for DiskResultsPage { + impl ::std::default::Default for DiskResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -16529,8 +16622,8 @@ pub mod types { impl DiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -16539,8 +16632,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -16561,7 +16654,7 @@ pub mod types { } } - impl From for DiskResultsPage { + impl ::std::convert::From for DiskResultsPage { fn from(value: super::DiskResultsPage) -> Self { Self { items: Ok(value.items), @@ -16576,7 +16669,7 @@ pub mod types { version: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Distribution { + impl ::std::default::Default for Distribution { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -16588,8 +16681,8 @@ pub mod types { impl Distribution { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16598,8 +16691,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -16620,7 +16713,7 @@ pub mod types { } } - impl From for Distribution { + impl ::std::convert::From for Distribution { fn from(value: super::Distribution) -> Self { Self { name: Ok(value.name), @@ -16639,7 +16732,7 @@ pub mod types { request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Error { + impl ::std::default::Default for Error { fn default() -> Self { Self { error_code: Ok(Default::default()), @@ -16652,8 +16745,8 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.error_code = value .try_into() @@ -16662,8 +16755,8 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.message = value .try_into() @@ -16672,8 +16765,8 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.request_id = value .try_into() @@ -16695,7 +16788,7 @@ pub mod types { } } - impl From for Error { + impl ::std::convert::From for Error { fn from(value: super::Error) -> Self { Self { error_code: Ok(value.error_code), @@ -16711,7 +16804,7 @@ pub mod types { kind: ::std::result::Result, } - impl Default for ExternalIp { + impl ::std::default::Default for ExternalIp { fn default() -> Self { Self { ip: Err("no value supplied for ip".to_string()), @@ -16723,8 +16816,8 @@ pub mod types { impl ExternalIp { pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ip = value .try_into() @@ -16733,8 +16826,8 @@ pub mod types { } pub fn kind(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.kind = value .try_into() @@ -16755,7 +16848,7 @@ pub mod types { } } - impl From for ExternalIp { + impl ::std::convert::From for ExternalIp { fn from(value: super::ExternalIp) -> Self { Self { ip: Ok(value.ip), @@ -16773,7 +16866,7 @@ pub mod types { >, } - impl Default for ExternalIpResultsPage { + impl ::std::default::Default for ExternalIpResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -16785,8 +16878,8 @@ pub mod types { impl ExternalIpResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -16795,8 +16888,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -16817,7 +16910,7 @@ pub mod types { } } - impl From for ExternalIpResultsPage { + impl ::std::convert::From for ExternalIpResultsPage { fn from(value: super::ExternalIpResultsPage) -> Self { Self { items: Ok(value.items), @@ -16833,7 +16926,7 @@ pub mod types { ty: ::std::result::Result, } - impl Default for FieldSchema { + impl ::std::default::Default for FieldSchema { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -16846,8 +16939,8 @@ pub mod types { impl FieldSchema { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16856,8 +16949,8 @@ pub mod types { } pub fn source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.source = value .try_into() @@ -16866,8 +16959,8 @@ pub mod types { } pub fn ty(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ty = value .try_into() @@ -16889,7 +16982,7 @@ pub mod types { } } - impl From for FieldSchema { + impl ::std::convert::From for FieldSchema { fn from(value: super::FieldSchema) -> Self { Self { name: Ok(value.name), @@ -16907,7 +17000,7 @@ pub mod types { >, } - impl Default for FleetRolePolicy { + impl ::std::default::Default for FleetRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -16918,8 +17011,8 @@ pub mod types { impl FleetRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -16942,7 +17035,7 @@ pub mod types { } } - impl From for FleetRolePolicy { + impl ::std::convert::From for FleetRolePolicy { fn from(value: super::FleetRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -16957,7 +17050,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for FleetRoleRoleAssignment { + impl ::std::default::Default for FleetRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -16970,8 +17063,8 @@ pub mod types { impl FleetRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -16980,8 +17073,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -16990,8 +17083,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -17013,7 +17106,7 @@ pub mod types { } } - impl From for FleetRoleRoleAssignment { + impl ::std::convert::From for FleetRoleRoleAssignment { fn from(value: super::FleetRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -17044,7 +17137,7 @@ pub mod types { version: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for GlobalImage { + impl ::std::default::Default for GlobalImage { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -17065,8 +17158,8 @@ pub mod types { impl GlobalImage { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -17075,8 +17168,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17085,8 +17178,8 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.digest = value .try_into() @@ -17095,8 +17188,8 @@ pub mod types { } pub fn distribution(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.distribution = value.try_into().map_err(|e| { format!("error converting supplied value for distribution: {}", e) @@ -17105,8 +17198,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17115,8 +17208,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17125,8 +17218,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -17135,8 +17228,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -17145,8 +17238,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -17155,8 +17248,8 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.url = value .try_into() @@ -17165,8 +17258,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -17196,7 +17289,7 @@ pub mod types { } } - impl From for GlobalImage { + impl ::std::convert::From for GlobalImage { fn from(value: super::GlobalImage) -> Self { Self { block_size: Ok(value.block_size), @@ -17223,7 +17316,7 @@ pub mod types { source: ::std::result::Result, } - impl Default for GlobalImageCreate { + impl ::std::default::Default for GlobalImageCreate { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -17238,8 +17331,8 @@ pub mod types { impl GlobalImageCreate { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -17248,8 +17341,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17258,8 +17351,8 @@ pub mod types { } pub fn distribution(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.distribution = value.try_into().map_err(|e| { format!("error converting supplied value for distribution: {}", e) @@ -17268,8 +17361,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17278,8 +17371,8 @@ pub mod types { } pub fn source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.source = value .try_into() @@ -17303,7 +17396,7 @@ pub mod types { } } - impl From for GlobalImageCreate { + impl ::std::convert::From for GlobalImageCreate { fn from(value: super::GlobalImageCreate) -> Self { Self { block_size: Ok(value.block_size), @@ -17325,7 +17418,7 @@ pub mod types { >, } - impl Default for GlobalImageResultsPage { + impl ::std::default::Default for GlobalImageResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -17337,8 +17430,8 @@ pub mod types { impl GlobalImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -17347,8 +17440,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -17369,7 +17462,7 @@ pub mod types { } } - impl From for GlobalImageResultsPage { + impl ::std::convert::From for GlobalImageResultsPage { fn from(value: super::GlobalImageResultsPage) -> Self { Self { items: Ok(value.items), @@ -17385,7 +17478,7 @@ pub mod types { silo_id: ::std::result::Result, } - impl Default for Group { + impl ::std::default::Default for Group { fn default() -> Self { Self { display_name: Err("no value supplied for display_name".to_string()), @@ -17398,8 +17491,8 @@ pub mod types { impl Group { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { format!("error converting supplied value for display_name: {}", e) @@ -17408,8 +17501,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17418,8 +17511,8 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.silo_id = value .try_into() @@ -17441,7 +17534,7 @@ pub mod types { } } - impl From for Group { + impl ::std::convert::From for Group { fn from(value: super::Group) -> Self { Self { display_name: Ok(value.display_name), @@ -17460,7 +17553,7 @@ pub mod types { >, } - impl Default for GroupResultsPage { + impl ::std::default::Default for GroupResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -17472,8 +17565,8 @@ pub mod types { impl GroupResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -17482,8 +17575,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -17504,7 +17597,7 @@ pub mod types { } } - impl From for GroupResultsPage { + impl ::std::convert::From for GroupResultsPage { fn from(value: super::GroupResultsPage) -> Self { Self { items: Ok(value.items), @@ -17521,7 +17614,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Histogramdouble { + impl ::std::default::Default for Histogramdouble { fn default() -> Self { Self { bins: Err("no value supplied for bins".to_string()), @@ -17534,8 +17627,8 @@ pub mod types { impl Histogramdouble { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.bins = value .try_into() @@ -17544,8 +17637,8 @@ pub mod types { } pub fn n_samples(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.n_samples = value .try_into() @@ -17554,8 +17647,8 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -17577,7 +17670,7 @@ pub mod types { } } - impl From for Histogramdouble { + impl ::std::convert::From for Histogramdouble { fn from(value: super::Histogramdouble) -> Self { Self { bins: Ok(value.bins), @@ -17595,7 +17688,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Histogramint64 { + impl ::std::default::Default for Histogramint64 { fn default() -> Self { Self { bins: Err("no value supplied for bins".to_string()), @@ -17608,8 +17701,8 @@ pub mod types { impl Histogramint64 { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.bins = value .try_into() @@ -17618,8 +17711,8 @@ pub mod types { } pub fn n_samples(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.n_samples = value .try_into() @@ -17628,8 +17721,8 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -17651,7 +17744,7 @@ pub mod types { } } - impl From for Histogramint64 { + impl ::std::convert::From for Histogramint64 { fn from(value: super::Histogramint64) -> Self { Self { bins: Ok(value.bins), @@ -17674,7 +17767,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for IdentityProvider { + impl ::std::default::Default for IdentityProvider { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -17690,8 +17783,8 @@ pub mod types { impl IdentityProvider { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17700,8 +17793,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17710,8 +17803,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17720,8 +17813,8 @@ pub mod types { } pub fn provider_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.provider_type = value.try_into().map_err(|e| { format!("error converting supplied value for provider_type: {}", e) @@ -17730,8 +17823,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -17740,8 +17833,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -17766,7 +17859,7 @@ pub mod types { } } - impl From for IdentityProvider { + impl ::std::convert::From for IdentityProvider { fn from(value: super::IdentityProvider) -> Self { Self { description: Ok(value.description), @@ -17791,7 +17884,7 @@ pub mod types { >, } - impl Default for IdentityProviderResultsPage { + impl ::std::default::Default for IdentityProviderResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -17803,8 +17896,8 @@ pub mod types { impl IdentityProviderResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -17813,8 +17906,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -17835,7 +17928,7 @@ pub mod types { } } - impl From for IdentityProviderResultsPage { + impl ::std::convert::From for IdentityProviderResultsPage { fn from(value: super::IdentityProviderResultsPage) -> Self { Self { items: Ok(value.items), @@ -17868,7 +17961,7 @@ pub mod types { >, } - impl Default for Image { + impl ::std::default::Default for Image { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -17889,8 +17982,8 @@ pub mod types { impl Image { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -17899,8 +17992,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17909,8 +18002,8 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.digest = value .try_into() @@ -17919,8 +18012,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17929,8 +18022,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17939,8 +18032,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -17949,8 +18042,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -17959,8 +18052,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -17969,8 +18062,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -17979,8 +18072,8 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.url = value .try_into() @@ -17989,8 +18082,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -18020,7 +18113,7 @@ pub mod types { } } - impl From for Image { + impl ::std::convert::From for Image { fn from(value: super::Image) -> Self { Self { block_size: Ok(value.block_size), @@ -18046,7 +18139,7 @@ pub mod types { source: ::std::result::Result, } - impl Default for ImageCreate { + impl ::std::default::Default for ImageCreate { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -18060,8 +18153,8 @@ pub mod types { impl ImageCreate { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -18070,8 +18163,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18080,8 +18173,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18090,8 +18183,8 @@ pub mod types { } pub fn source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.source = value .try_into() @@ -18114,7 +18207,7 @@ pub mod types { } } - impl From for ImageCreate { + impl ::std::convert::From for ImageCreate { fn from(value: super::ImageCreate) -> Self { Self { block_size: Ok(value.block_size), @@ -18134,7 +18227,7 @@ pub mod types { >, } - impl Default for ImageResultsPage { + impl ::std::default::Default for ImageResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18146,8 +18239,8 @@ pub mod types { impl ImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -18156,8 +18249,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -18178,7 +18271,7 @@ pub mod types { } } - impl From for ImageResultsPage { + impl ::std::convert::From for ImageResultsPage { fn from(value: super::ImageResultsPage) -> Self { Self { items: Ok(value.items), @@ -18205,7 +18298,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Instance { + impl ::std::default::Default for Instance { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18228,8 +18321,8 @@ pub mod types { impl Instance { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18238,8 +18331,8 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.hostname = value .try_into() @@ -18248,8 +18341,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -18258,8 +18351,8 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.memory = value .try_into() @@ -18268,8 +18361,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18278,8 +18371,8 @@ pub mod types { } pub fn ncpus(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ncpus = value .try_into() @@ -18288,8 +18381,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -18298,8 +18391,8 @@ pub mod types { } pub fn run_state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.run_state = value .try_into() @@ -18308,8 +18401,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -18318,8 +18411,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -18328,8 +18421,8 @@ pub mod types { } pub fn time_run_state_updated(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_run_state_updated = value.try_into().map_err(|e| { format!( @@ -18362,7 +18455,7 @@ pub mod types { } } - impl From for Instance { + impl ::std::convert::From for Instance { fn from(value: super::Instance) -> Self { Self { description: Ok(value.description), @@ -18403,7 +18496,7 @@ pub mod types { user_data: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for InstanceCreate { + impl ::std::default::Default for InstanceCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18423,8 +18516,8 @@ pub mod types { impl InstanceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18433,8 +18526,8 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.disks = value .try_into() @@ -18443,8 +18536,8 @@ pub mod types { } pub fn external_ips(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.external_ips = value.try_into().map_err(|e| { format!("error converting supplied value for external_ips: {}", e) @@ -18453,8 +18546,8 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.hostname = value .try_into() @@ -18463,8 +18556,8 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.memory = value .try_into() @@ -18473,8 +18566,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18483,8 +18576,8 @@ pub mod types { } pub fn ncpus(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ncpus = value .try_into() @@ -18493,8 +18586,8 @@ pub mod types { } pub fn network_interfaces(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.network_interfaces = value.try_into().map_err(|e| { format!( @@ -18506,8 +18599,8 @@ pub mod types { } pub fn start(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.start = value .try_into() @@ -18516,8 +18609,8 @@ pub mod types { } pub fn user_data(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.user_data = value .try_into() @@ -18546,7 +18639,7 @@ pub mod types { } } - impl From for InstanceCreate { + impl ::std::convert::From for InstanceCreate { fn from(value: super::InstanceCreate) -> Self { Self { description: Ok(value.description), @@ -18568,7 +18661,7 @@ pub mod types { dst_sled_id: ::std::result::Result, } - impl Default for InstanceMigrate { + impl ::std::default::Default for InstanceMigrate { fn default() -> Self { Self { dst_sled_id: Err("no value supplied for dst_sled_id".to_string()), @@ -18579,8 +18672,8 @@ pub mod types { impl InstanceMigrate { pub fn dst_sled_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.dst_sled_id = value .try_into() @@ -18600,7 +18693,7 @@ pub mod types { } } - impl From for InstanceMigrate { + impl ::std::convert::From for InstanceMigrate { fn from(value: super::InstanceMigrate) -> Self { Self { dst_sled_id: Ok(value.dst_sled_id), @@ -18617,7 +18710,7 @@ pub mod types { >, } - impl Default for InstanceResultsPage { + impl ::std::default::Default for InstanceResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18629,8 +18722,8 @@ pub mod types { impl InstanceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -18639,8 +18732,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -18661,7 +18754,7 @@ pub mod types { } } - impl From for InstanceResultsPage { + impl ::std::convert::From for InstanceResultsPage { fn from(value: super::InstanceResultsPage) -> Self { Self { items: Ok(value.items), @@ -18676,7 +18769,7 @@ pub mod types { last_byte_offset: ::std::result::Result, } - impl Default for InstanceSerialConsoleData { + impl ::std::default::Default for InstanceSerialConsoleData { fn default() -> Self { Self { data: Err("no value supplied for data".to_string()), @@ -18688,8 +18781,8 @@ pub mod types { impl InstanceSerialConsoleData { pub fn data(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.data = value .try_into() @@ -18698,8 +18791,8 @@ pub mod types { } pub fn last_byte_offset(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.last_byte_offset = value.try_into().map_err(|e| { format!( @@ -18723,7 +18816,7 @@ pub mod types { } } - impl From for InstanceSerialConsoleData { + impl ::std::convert::From for InstanceSerialConsoleData { fn from(value: super::InstanceSerialConsoleData) -> Self { Self { data: Ok(value.data), @@ -18743,7 +18836,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for IpPool { + impl ::std::default::Default for IpPool { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18758,8 +18851,8 @@ pub mod types { impl IpPool { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18768,8 +18861,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -18778,8 +18871,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18788,8 +18881,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -18798,8 +18891,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -18823,7 +18916,7 @@ pub mod types { } } - impl From for IpPool { + impl ::std::convert::From for IpPool { fn from(value: super::IpPool) -> Self { Self { description: Ok(value.description), @@ -18841,7 +18934,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for IpPoolCreate { + impl ::std::default::Default for IpPoolCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18853,8 +18946,8 @@ pub mod types { impl IpPoolCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18863,8 +18956,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18885,7 +18978,7 @@ pub mod types { } } - impl From for IpPoolCreate { + impl ::std::convert::From for IpPoolCreate { fn from(value: super::IpPoolCreate) -> Self { Self { description: Ok(value.description), @@ -18902,7 +18995,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for IpPoolRange { + impl ::std::default::Default for IpPoolRange { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -18915,8 +19008,8 @@ pub mod types { impl IpPoolRange { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -18925,8 +19018,8 @@ pub mod types { } pub fn range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.range = value .try_into() @@ -18935,8 +19028,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -18958,7 +19051,7 @@ pub mod types { } } - impl From for IpPoolRange { + impl ::std::convert::From for IpPoolRange { fn from(value: super::IpPoolRange) -> Self { Self { id: Ok(value.id), @@ -18978,7 +19071,7 @@ pub mod types { >, } - impl Default for IpPoolRangeResultsPage { + impl ::std::default::Default for IpPoolRangeResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18990,8 +19083,8 @@ pub mod types { impl IpPoolRangeResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19000,8 +19093,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -19022,7 +19115,7 @@ pub mod types { } } - impl From for IpPoolRangeResultsPage { + impl ::std::convert::From for IpPoolRangeResultsPage { fn from(value: super::IpPoolRangeResultsPage) -> Self { Self { items: Ok(value.items), @@ -19040,7 +19133,7 @@ pub mod types { >, } - impl Default for IpPoolResultsPage { + impl ::std::default::Default for IpPoolResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -19052,8 +19145,8 @@ pub mod types { impl IpPoolResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19062,8 +19155,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -19084,7 +19177,7 @@ pub mod types { } } - impl From for IpPoolResultsPage { + impl ::std::convert::From for IpPoolResultsPage { fn from(value: super::IpPoolResultsPage) -> Self { Self { items: Ok(value.items), @@ -19102,7 +19195,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for IpPoolUpdate { + impl ::std::default::Default for IpPoolUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -19114,8 +19207,8 @@ pub mod types { impl IpPoolUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19124,8 +19217,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19146,7 +19239,7 @@ pub mod types { } } - impl From for IpPoolUpdate { + impl ::std::convert::From for IpPoolUpdate { fn from(value: super::IpPoolUpdate) -> Self { Self { description: Ok(value.description), @@ -19161,7 +19254,7 @@ pub mod types { last: ::std::result::Result, } - impl Default for Ipv4Range { + impl ::std::default::Default for Ipv4Range { fn default() -> Self { Self { first: Err("no value supplied for first".to_string()), @@ -19173,8 +19266,8 @@ pub mod types { impl Ipv4Range { pub fn first(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.first = value .try_into() @@ -19183,8 +19276,8 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.last = value .try_into() @@ -19205,7 +19298,7 @@ pub mod types { } } - impl From for Ipv4Range { + impl ::std::convert::From for Ipv4Range { fn from(value: super::Ipv4Range) -> Self { Self { first: Ok(value.first), @@ -19220,7 +19313,7 @@ pub mod types { last: ::std::result::Result, } - impl Default for Ipv6Range { + impl ::std::default::Default for Ipv6Range { fn default() -> Self { Self { first: Err("no value supplied for first".to_string()), @@ -19232,8 +19325,8 @@ pub mod types { impl Ipv6Range { pub fn first(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.first = value .try_into() @@ -19242,8 +19335,8 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.last = value .try_into() @@ -19264,7 +19357,7 @@ pub mod types { } } - impl From for Ipv6Range { + impl ::std::convert::From for Ipv6Range { fn from(value: super::Ipv6Range) -> Self { Self { first: Ok(value.first), @@ -19280,7 +19373,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Measurement { + impl ::std::default::Default for Measurement { fn default() -> Self { Self { datum: Err("no value supplied for datum".to_string()), @@ -19292,8 +19385,8 @@ pub mod types { impl Measurement { pub fn datum(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.datum = value .try_into() @@ -19302,8 +19395,8 @@ pub mod types { } pub fn timestamp(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.timestamp = value .try_into() @@ -19324,7 +19417,7 @@ pub mod types { } } - impl From for Measurement { + impl ::std::convert::From for Measurement { fn from(value: super::Measurement) -> Self { Self { datum: Ok(value.datum), @@ -19343,7 +19436,7 @@ pub mod types { >, } - impl Default for MeasurementResultsPage { + impl ::std::default::Default for MeasurementResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -19355,8 +19448,8 @@ pub mod types { impl MeasurementResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19365,8 +19458,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -19387,7 +19480,7 @@ pub mod types { } } - impl From for MeasurementResultsPage { + impl ::std::convert::From for MeasurementResultsPage { fn from(value: super::MeasurementResultsPage) -> Self { Self { items: Ok(value.items), @@ -19413,7 +19506,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for NetworkInterface { + impl ::std::default::Default for NetworkInterface { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19434,8 +19527,8 @@ pub mod types { impl NetworkInterface { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19444,8 +19537,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -19454,8 +19547,8 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.instance_id = value .try_into() @@ -19464,8 +19557,8 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ip = value .try_into() @@ -19474,8 +19567,8 @@ pub mod types { } pub fn mac(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.mac = value .try_into() @@ -19484,8 +19577,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19494,8 +19587,8 @@ pub mod types { } pub fn primary(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.primary = value .try_into() @@ -19504,8 +19597,8 @@ pub mod types { } pub fn subnet_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.subnet_id = value .try_into() @@ -19514,8 +19607,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -19524,8 +19617,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -19534,8 +19627,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -19565,7 +19658,7 @@ pub mod types { } } - impl From for NetworkInterface { + impl ::std::convert::From for NetworkInterface { fn from(value: super::NetworkInterface) -> Self { Self { description: Ok(value.description), @@ -19595,7 +19688,7 @@ pub mod types { vpc_name: ::std::result::Result, } - impl Default for NetworkInterfaceCreate { + impl ::std::default::Default for NetworkInterfaceCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19610,8 +19703,8 @@ pub mod types { impl NetworkInterfaceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19620,8 +19713,8 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.ip = value .try_into() @@ -19630,8 +19723,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19640,8 +19733,8 @@ pub mod types { } pub fn subnet_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.subnet_name = value .try_into() @@ -19650,8 +19743,8 @@ pub mod types { } pub fn vpc_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_name = value .try_into() @@ -19675,7 +19768,7 @@ pub mod types { } } - impl From for NetworkInterfaceCreate { + impl ::std::convert::From for NetworkInterfaceCreate { fn from(value: super::NetworkInterfaceCreate) -> Self { Self { description: Ok(value.description), @@ -19699,7 +19792,7 @@ pub mod types { >, } - impl Default for NetworkInterfaceResultsPage { + impl ::std::default::Default for NetworkInterfaceResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -19711,8 +19804,8 @@ pub mod types { impl NetworkInterfaceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19721,8 +19814,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -19743,7 +19836,7 @@ pub mod types { } } - impl From for NetworkInterfaceResultsPage { + impl ::std::convert::From for NetworkInterfaceResultsPage { fn from(value: super::NetworkInterfaceResultsPage) -> Self { Self { items: Ok(value.items), @@ -19762,7 +19855,7 @@ pub mod types { primary: ::std::result::Result, } - impl Default for NetworkInterfaceUpdate { + impl ::std::default::Default for NetworkInterfaceUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -19775,8 +19868,8 @@ pub mod types { impl NetworkInterfaceUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19785,8 +19878,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19795,8 +19888,8 @@ pub mod types { } pub fn primary(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.primary = value .try_into() @@ -19818,7 +19911,7 @@ pub mod types { } } - impl From for NetworkInterfaceUpdate { + impl ::std::convert::From for NetworkInterfaceUpdate { fn from(value: super::NetworkInterfaceUpdate) -> Self { Self { description: Ok(value.description), @@ -19839,7 +19932,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Organization { + impl ::std::default::Default for Organization { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19854,8 +19947,8 @@ pub mod types { impl Organization { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19864,8 +19957,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -19874,8 +19967,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19884,8 +19977,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -19894,8 +19987,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -19919,7 +20012,7 @@ pub mod types { } } - impl From for Organization { + impl ::std::convert::From for Organization { fn from(value: super::Organization) -> Self { Self { description: Ok(value.description), @@ -19937,7 +20030,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for OrganizationCreate { + impl ::std::default::Default for OrganizationCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19949,8 +20042,8 @@ pub mod types { impl OrganizationCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19959,8 +20052,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19981,7 +20074,7 @@ pub mod types { } } - impl From for OrganizationCreate { + impl ::std::convert::From for OrganizationCreate { fn from(value: super::OrganizationCreate) -> Self { Self { description: Ok(value.description), @@ -20000,7 +20093,7 @@ pub mod types { >, } - impl Default for OrganizationResultsPage { + impl ::std::default::Default for OrganizationResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20012,8 +20105,8 @@ pub mod types { impl OrganizationResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20022,8 +20115,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20044,7 +20137,7 @@ pub mod types { } } - impl From for OrganizationResultsPage { + impl ::std::convert::From for OrganizationResultsPage { fn from(value: super::OrganizationResultsPage) -> Self { Self { items: Ok(value.items), @@ -20061,7 +20154,7 @@ pub mod types { >, } - impl Default for OrganizationRolePolicy { + impl ::std::default::Default for OrganizationRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -20072,8 +20165,8 @@ pub mod types { impl OrganizationRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -20096,7 +20189,7 @@ pub mod types { } } - impl From for OrganizationRolePolicy { + impl ::std::convert::From for OrganizationRolePolicy { fn from(value: super::OrganizationRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -20111,7 +20204,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for OrganizationRoleRoleAssignment { + impl ::std::default::Default for OrganizationRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -20124,8 +20217,8 @@ pub mod types { impl OrganizationRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -20134,8 +20227,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -20144,8 +20237,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -20169,7 +20262,9 @@ pub mod types { } } - impl From for OrganizationRoleRoleAssignment { + impl ::std::convert::From + for OrganizationRoleRoleAssignment + { fn from(value: super::OrganizationRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -20188,7 +20283,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for OrganizationUpdate { + impl ::std::default::Default for OrganizationUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -20200,8 +20295,8 @@ pub mod types { impl OrganizationUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20210,8 +20305,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20232,7 +20327,7 @@ pub mod types { } } - impl From for OrganizationUpdate { + impl ::std::convert::From for OrganizationUpdate { fn from(value: super::OrganizationUpdate) -> Self { Self { description: Ok(value.description), @@ -20256,7 +20351,7 @@ pub mod types { vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for PhysicalDisk { + impl ::std::default::Default for PhysicalDisk { fn default() -> Self { Self { disk_type: Err("no value supplied for disk_type".to_string()), @@ -20274,8 +20369,8 @@ pub mod types { impl PhysicalDisk { pub fn disk_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_type = value .try_into() @@ -20284,8 +20379,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -20294,8 +20389,8 @@ pub mod types { } pub fn model(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.model = value .try_into() @@ -20304,8 +20399,8 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.serial = value .try_into() @@ -20314,8 +20409,8 @@ pub mod types { } pub fn sled_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.sled_id = value .try_into() @@ -20324,8 +20419,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -20334,8 +20429,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -20344,8 +20439,8 @@ pub mod types { } pub fn vendor(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.vendor = value .try_into() @@ -20372,7 +20467,7 @@ pub mod types { } } - impl From for PhysicalDisk { + impl ::std::convert::From for PhysicalDisk { fn from(value: super::PhysicalDisk) -> Self { Self { disk_type: Ok(value.disk_type), @@ -20397,7 +20492,7 @@ pub mod types { >, } - impl Default for PhysicalDiskResultsPage { + impl ::std::default::Default for PhysicalDiskResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20409,8 +20504,8 @@ pub mod types { impl PhysicalDiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20419,8 +20514,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20441,7 +20536,7 @@ pub mod types { } } - impl From for PhysicalDiskResultsPage { + impl ::std::convert::From for PhysicalDiskResultsPage { fn from(value: super::PhysicalDiskResultsPage) -> Self { Self { items: Ok(value.items), @@ -20462,7 +20557,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Project { + impl ::std::default::Default for Project { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20478,8 +20573,8 @@ pub mod types { impl Project { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20488,8 +20583,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -20498,8 +20593,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20508,8 +20603,8 @@ pub mod types { } pub fn organization_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.organization_id = value.try_into().map_err(|e| { format!("error converting supplied value for organization_id: {}", e) @@ -20518,8 +20613,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -20528,8 +20623,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -20554,7 +20649,7 @@ pub mod types { } } - impl From for Project { + impl ::std::convert::From for Project { fn from(value: super::Project) -> Self { Self { description: Ok(value.description), @@ -20573,7 +20668,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for ProjectCreate { + impl ::std::default::Default for ProjectCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20585,8 +20680,8 @@ pub mod types { impl ProjectCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20595,8 +20690,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20617,7 +20712,7 @@ pub mod types { } } - impl From for ProjectCreate { + impl ::std::convert::From for ProjectCreate { fn from(value: super::ProjectCreate) -> Self { Self { description: Ok(value.description), @@ -20635,7 +20730,7 @@ pub mod types { >, } - impl Default for ProjectResultsPage { + impl ::std::default::Default for ProjectResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20647,8 +20742,8 @@ pub mod types { impl ProjectResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20657,8 +20752,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20679,7 +20774,7 @@ pub mod types { } } - impl From for ProjectResultsPage { + impl ::std::convert::From for ProjectResultsPage { fn from(value: super::ProjectResultsPage) -> Self { Self { items: Ok(value.items), @@ -20696,7 +20791,7 @@ pub mod types { >, } - impl Default for ProjectRolePolicy { + impl ::std::default::Default for ProjectRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -20707,8 +20802,8 @@ pub mod types { impl ProjectRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -20731,7 +20826,7 @@ pub mod types { } } - impl From for ProjectRolePolicy { + impl ::std::convert::From for ProjectRolePolicy { fn from(value: super::ProjectRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -20746,7 +20841,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for ProjectRoleRoleAssignment { + impl ::std::default::Default for ProjectRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -20759,8 +20854,8 @@ pub mod types { impl ProjectRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -20769,8 +20864,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -20779,8 +20874,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -20802,7 +20897,7 @@ pub mod types { } } - impl From for ProjectRoleRoleAssignment { + impl ::std::convert::From for ProjectRoleRoleAssignment { fn from(value: super::ProjectRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -20821,7 +20916,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for ProjectUpdate { + impl ::std::default::Default for ProjectUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -20833,8 +20928,8 @@ pub mod types { impl ProjectUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20843,8 +20938,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20865,7 +20960,7 @@ pub mod types { } } - impl From for ProjectUpdate { + impl ::std::convert::From for ProjectUpdate { fn from(value: super::ProjectUpdate) -> Self { Self { description: Ok(value.description), @@ -20883,7 +20978,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Rack { + impl ::std::default::Default for Rack { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -20896,8 +20991,8 @@ pub mod types { impl Rack { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -20906,8 +21001,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -20916,8 +21011,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -20937,7 +21032,7 @@ pub mod types { } } - impl From for Rack { + impl ::std::convert::From for Rack { fn from(value: super::Rack) -> Self { Self { id: Ok(value.id), @@ -20956,7 +21051,7 @@ pub mod types { >, } - impl Default for RackResultsPage { + impl ::std::default::Default for RackResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20968,8 +21063,8 @@ pub mod types { impl RackResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20978,8 +21073,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -21000,7 +21095,7 @@ pub mod types { } } - impl From for RackResultsPage { + impl ::std::convert::From for RackResultsPage { fn from(value: super::RackResultsPage) -> Self { Self { items: Ok(value.items), @@ -21015,7 +21110,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for Role { + impl ::std::default::Default for Role { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -21027,8 +21122,8 @@ pub mod types { impl Role { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21037,8 +21132,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21057,7 +21152,7 @@ pub mod types { } } - impl From for Role { + impl ::std::convert::From for Role { fn from(value: super::Role) -> Self { Self { description: Ok(value.description), @@ -21075,7 +21170,7 @@ pub mod types { >, } - impl Default for RoleResultsPage { + impl ::std::default::Default for RoleResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -21087,8 +21182,8 @@ pub mod types { impl RoleResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -21097,8 +21192,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -21119,7 +21214,7 @@ pub mod types { } } - impl From for RoleResultsPage { + impl ::std::convert::From for RoleResultsPage { fn from(value: super::RoleResultsPage) -> Self { Self { items: Ok(value.items), @@ -21143,7 +21238,7 @@ pub mod types { vpc_router_id: ::std::result::Result, } - impl Default for RouterRoute { + impl ::std::default::Default for RouterRoute { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -21162,8 +21257,8 @@ pub mod types { impl RouterRoute { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21172,8 +21267,8 @@ pub mod types { } pub fn destination(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.destination = value .try_into() @@ -21182,8 +21277,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -21192,8 +21287,8 @@ pub mod types { } pub fn kind(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.kind = value .try_into() @@ -21202,8 +21297,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21212,8 +21307,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -21222,8 +21317,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -21232,8 +21327,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -21242,8 +21337,8 @@ pub mod types { } pub fn vpc_router_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_router_id = value.try_into().map_err(|e| { format!("error converting supplied value for vpc_router_id: {}", e) @@ -21271,7 +21366,7 @@ pub mod types { } } - impl From for RouterRoute { + impl ::std::convert::From for RouterRoute { fn from(value: super::RouterRoute) -> Self { Self { description: Ok(value.description), @@ -21295,7 +21390,7 @@ pub mod types { target: ::std::result::Result, } - impl Default for RouterRouteCreateParams { + impl ::std::default::Default for RouterRouteCreateParams { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -21309,8 +21404,8 @@ pub mod types { impl RouterRouteCreateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21319,8 +21414,8 @@ pub mod types { } pub fn destination(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.destination = value .try_into() @@ -21329,8 +21424,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21339,8 +21434,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -21363,7 +21458,7 @@ pub mod types { } } - impl From for RouterRouteCreateParams { + impl ::std::convert::From for RouterRouteCreateParams { fn from(value: super::RouterRouteCreateParams) -> Self { Self { description: Ok(value.description), @@ -21384,7 +21479,7 @@ pub mod types { >, } - impl Default for RouterRouteResultsPage { + impl ::std::default::Default for RouterRouteResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -21396,8 +21491,8 @@ pub mod types { impl RouterRouteResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -21406,8 +21501,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -21428,7 +21523,7 @@ pub mod types { } } - impl From for RouterRouteResultsPage { + impl ::std::convert::From for RouterRouteResultsPage { fn from(value: super::RouterRouteResultsPage) -> Self { Self { items: Ok(value.items), @@ -21448,7 +21543,7 @@ pub mod types { target: ::std::result::Result, } - impl Default for RouterRouteUpdateParams { + impl ::std::default::Default for RouterRouteUpdateParams { fn default() -> Self { Self { description: Ok(Default::default()), @@ -21462,8 +21557,8 @@ pub mod types { impl RouterRouteUpdateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21472,8 +21567,8 @@ pub mod types { } pub fn destination(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.destination = value .try_into() @@ -21482,8 +21577,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21492,8 +21587,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -21516,7 +21611,7 @@ pub mod types { } } - impl From for RouterRouteUpdateParams { + impl ::std::convert::From for RouterRouteUpdateParams { fn from(value: super::RouterRouteUpdateParams) -> Self { Self { description: Ok(value.description), @@ -21533,7 +21628,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for Saga { + impl ::std::default::Default for Saga { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -21545,8 +21640,8 @@ pub mod types { impl Saga { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -21555,8 +21650,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -21575,7 +21670,7 @@ pub mod types { } } - impl From for Saga { + impl ::std::convert::From for Saga { fn from(value: super::Saga) -> Self { Self { id: Ok(value.id), @@ -21593,7 +21688,7 @@ pub mod types { >, } - impl Default for SagaResultsPage { + impl ::std::default::Default for SagaResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -21605,8 +21700,8 @@ pub mod types { impl SagaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -21615,8 +21710,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -21637,7 +21732,7 @@ pub mod types { } } - impl From for SagaResultsPage { + impl ::std::convert::From for SagaResultsPage { fn from(value: super::SagaResultsPage) -> Self { Self { items: Ok(value.items), @@ -21667,7 +21762,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for SamlIdentityProvider { + impl ::std::default::Default for SamlIdentityProvider { fn default() -> Self { Self { acs_url: Err("no value supplied for acs_url".to_string()), @@ -21690,8 +21785,8 @@ pub mod types { impl SamlIdentityProvider { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.acs_url = value .try_into() @@ -21700,8 +21795,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21710,8 +21805,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -21720,8 +21815,8 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { format!("error converting supplied value for idp_entity_id: {}", e) @@ -21730,8 +21825,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21740,8 +21835,8 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.public_cert = value .try_into() @@ -21750,8 +21845,8 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.slo_url = value .try_into() @@ -21760,8 +21855,8 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { format!("error converting supplied value for sp_client_id: {}", e) @@ -21770,8 +21865,8 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { format!( @@ -21783,8 +21878,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -21793,8 +21888,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -21824,7 +21919,7 @@ pub mod types { } } - impl From for SamlIdentityProvider { + impl ::std::convert::From for SamlIdentityProvider { fn from(value: super::SamlIdentityProvider) -> Self { Self { acs_url: Ok(value.acs_url), @@ -21864,7 +21959,7 @@ pub mod types { ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for SamlIdentityProviderCreate { + impl ::std::default::Default for SamlIdentityProviderCreate { fn default() -> Self { Self { acs_url: Err("no value supplied for acs_url".to_string()), @@ -21888,8 +21983,8 @@ pub mod types { impl SamlIdentityProviderCreate { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.acs_url = value .try_into() @@ -21898,8 +21993,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21908,8 +22003,8 @@ pub mod types { } pub fn group_attribute_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.group_attribute_name = value.try_into().map_err(|e| { format!( @@ -21921,8 +22016,8 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { format!("error converting supplied value for idp_entity_id: {}", e) @@ -21931,8 +22026,8 @@ pub mod types { } pub fn idp_metadata_source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.idp_metadata_source = value.try_into().map_err(|e| { format!( @@ -21944,8 +22039,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21954,8 +22049,8 @@ pub mod types { } pub fn signing_keypair(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.signing_keypair = value.try_into().map_err(|e| { format!("error converting supplied value for signing_keypair: {}", e) @@ -21964,8 +22059,8 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.slo_url = value .try_into() @@ -21974,8 +22069,8 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { format!("error converting supplied value for sp_client_id: {}", e) @@ -21984,8 +22079,8 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { format!( @@ -22017,7 +22112,7 @@ pub mod types { } } - impl From for SamlIdentityProviderCreate { + impl ::std::convert::From for SamlIdentityProviderCreate { fn from(value: super::SamlIdentityProviderCreate) -> Self { Self { acs_url: Ok(value.acs_url), @@ -22047,7 +22142,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Silo { + impl ::std::default::Default for Silo { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22064,8 +22159,8 @@ pub mod types { impl Silo { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22074,8 +22169,8 @@ pub mod types { } pub fn discoverable(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.discoverable = value.try_into().map_err(|e| { format!("error converting supplied value for discoverable: {}", e) @@ -22084,8 +22179,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22094,8 +22189,8 @@ pub mod types { } pub fn identity_mode(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_mode = value.try_into().map_err(|e| { format!("error converting supplied value for identity_mode: {}", e) @@ -22104,8 +22199,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22114,8 +22209,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22124,8 +22219,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22149,7 +22244,7 @@ pub mod types { } } - impl From for Silo { + impl ::std::convert::From for Silo { fn from(value: super::Silo) -> Self { Self { description: Ok(value.description), @@ -22175,7 +22270,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for SiloCreate { + impl ::std::default::Default for SiloCreate { fn default() -> Self { Self { admin_group_name: Ok(Default::default()), @@ -22190,8 +22285,8 @@ pub mod types { impl SiloCreate { pub fn admin_group_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.admin_group_name = value.try_into().map_err(|e| { format!( @@ -22203,8 +22298,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22213,8 +22308,8 @@ pub mod types { } pub fn discoverable(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.discoverable = value.try_into().map_err(|e| { format!("error converting supplied value for discoverable: {}", e) @@ -22223,8 +22318,8 @@ pub mod types { } pub fn identity_mode(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_mode = value.try_into().map_err(|e| { format!("error converting supplied value for identity_mode: {}", e) @@ -22233,8 +22328,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22258,7 +22353,7 @@ pub mod types { } } - impl From for SiloCreate { + impl ::std::convert::From for SiloCreate { fn from(value: super::SiloCreate) -> Self { Self { admin_group_name: Ok(value.admin_group_name), @@ -22279,7 +22374,7 @@ pub mod types { >, } - impl Default for SiloResultsPage { + impl ::std::default::Default for SiloResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22291,8 +22386,8 @@ pub mod types { impl SiloResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22301,8 +22396,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22323,7 +22418,7 @@ pub mod types { } } - impl From for SiloResultsPage { + impl ::std::convert::From for SiloResultsPage { fn from(value: super::SiloResultsPage) -> Self { Self { items: Ok(value.items), @@ -22340,7 +22435,7 @@ pub mod types { >, } - impl Default for SiloRolePolicy { + impl ::std::default::Default for SiloRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -22351,8 +22446,8 @@ pub mod types { impl SiloRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -22375,7 +22470,7 @@ pub mod types { } } - impl From for SiloRolePolicy { + impl ::std::convert::From for SiloRolePolicy { fn from(value: super::SiloRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -22390,7 +22485,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for SiloRoleRoleAssignment { + impl ::std::default::Default for SiloRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -22403,8 +22498,8 @@ pub mod types { impl SiloRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -22413,8 +22508,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -22423,8 +22518,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -22446,7 +22541,7 @@ pub mod types { } } - impl From for SiloRoleRoleAssignment { + impl ::std::convert::From for SiloRoleRoleAssignment { fn from(value: super::SiloRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -22467,7 +22562,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Sled { + impl ::std::default::Default for Sled { fn default() -> Self { Self { baseboard: Err("no value supplied for baseboard".to_string()), @@ -22482,8 +22577,8 @@ pub mod types { impl Sled { pub fn baseboard(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.baseboard = value .try_into() @@ -22492,8 +22587,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22502,8 +22597,8 @@ pub mod types { } pub fn service_address(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.service_address = value.try_into().map_err(|e| { format!("error converting supplied value for service_address: {}", e) @@ -22512,8 +22607,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22522,8 +22617,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22545,7 +22640,7 @@ pub mod types { } } - impl From for Sled { + impl ::std::convert::From for Sled { fn from(value: super::Sled) -> Self { Self { baseboard: Ok(value.baseboard), @@ -22566,7 +22661,7 @@ pub mod types { >, } - impl Default for SledResultsPage { + impl ::std::default::Default for SledResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22578,8 +22673,8 @@ pub mod types { impl SledResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22588,8 +22683,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22610,7 +22705,7 @@ pub mod types { } } - impl From for SledResultsPage { + impl ::std::convert::From for SledResultsPage { fn from(value: super::SledResultsPage) -> Self { Self { items: Ok(value.items), @@ -22634,7 +22729,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Snapshot { + impl ::std::default::Default for Snapshot { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22653,8 +22748,8 @@ pub mod types { impl Snapshot { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22663,8 +22758,8 @@ pub mod types { } pub fn disk_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_id = value .try_into() @@ -22673,8 +22768,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22683,8 +22778,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22693,8 +22788,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -22703,8 +22798,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -22713,8 +22808,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -22723,8 +22818,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22733,8 +22828,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22762,7 +22857,7 @@ pub mod types { } } - impl From for Snapshot { + impl ::std::convert::From for Snapshot { fn from(value: super::Snapshot) -> Self { Self { description: Ok(value.description), @@ -22785,7 +22880,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for SnapshotCreate { + impl ::std::default::Default for SnapshotCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22798,8 +22893,8 @@ pub mod types { impl SnapshotCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22808,8 +22903,8 @@ pub mod types { } pub fn disk(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk = value .try_into() @@ -22818,8 +22913,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22841,7 +22936,7 @@ pub mod types { } } - impl From for SnapshotCreate { + impl ::std::convert::From for SnapshotCreate { fn from(value: super::SnapshotCreate) -> Self { Self { description: Ok(value.description), @@ -22860,7 +22955,7 @@ pub mod types { >, } - impl Default for SnapshotResultsPage { + impl ::std::default::Default for SnapshotResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22872,8 +22967,8 @@ pub mod types { impl SnapshotResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22882,8 +22977,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22904,7 +22999,7 @@ pub mod types { } } - impl From for SnapshotResultsPage { + impl ::std::convert::From for SnapshotResultsPage { fn from(value: super::SnapshotResultsPage) -> Self { Self { items: Ok(value.items), @@ -22918,7 +23013,7 @@ pub mod types { username: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for SpoofLoginBody { + impl ::std::default::Default for SpoofLoginBody { fn default() -> Self { Self { username: Err("no value supplied for username".to_string()), @@ -22929,8 +23024,8 @@ pub mod types { impl SpoofLoginBody { pub fn username(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.username = value .try_into() @@ -22950,7 +23045,7 @@ pub mod types { } } - impl From for SpoofLoginBody { + impl ::std::convert::From for SpoofLoginBody { fn from(value: super::SpoofLoginBody) -> Self { Self { username: Ok(value.username), @@ -22971,7 +23066,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for SshKey { + impl ::std::default::Default for SshKey { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22988,8 +23083,8 @@ pub mod types { impl SshKey { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22998,8 +23093,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23008,8 +23103,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -23018,8 +23113,8 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.public_key = value .try_into() @@ -23028,8 +23123,8 @@ pub mod types { } pub fn silo_user_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.silo_user_id = value.try_into().map_err(|e| { format!("error converting supplied value for silo_user_id: {}", e) @@ -23038,8 +23133,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23048,8 +23143,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23075,7 +23170,7 @@ pub mod types { } } - impl From for SshKey { + impl ::std::convert::From for SshKey { fn from(value: super::SshKey) -> Self { Self { description: Ok(value.description), @@ -23096,7 +23191,7 @@ pub mod types { public_key: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for SshKeyCreate { + impl ::std::default::Default for SshKeyCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -23109,8 +23204,8 @@ pub mod types { impl SshKeyCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -23119,8 +23214,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -23129,8 +23224,8 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.public_key = value .try_into() @@ -23152,7 +23247,7 @@ pub mod types { } } - impl From for SshKeyCreate { + impl ::std::convert::From for SshKeyCreate { fn from(value: super::SshKeyCreate) -> Self { Self { description: Ok(value.description), @@ -23171,7 +23266,7 @@ pub mod types { >, } - impl Default for SshKeyResultsPage { + impl ::std::default::Default for SshKeyResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23183,8 +23278,8 @@ pub mod types { impl SshKeyResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23193,8 +23288,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23215,7 +23310,7 @@ pub mod types { } } - impl From for SshKeyResultsPage { + impl ::std::convert::From for SshKeyResultsPage { fn from(value: super::SshKeyResultsPage) -> Self { Self { items: Ok(value.items), @@ -23234,7 +23329,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for SystemUpdate { + impl ::std::default::Default for SystemUpdate { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -23248,8 +23343,8 @@ pub mod types { impl SystemUpdate { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23258,8 +23353,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23268,8 +23363,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23278,8 +23373,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -23302,7 +23397,7 @@ pub mod types { } } - impl From for SystemUpdate { + impl ::std::convert::From for SystemUpdate { fn from(value: super::SystemUpdate) -> Self { Self { id: Ok(value.id), @@ -23323,7 +23418,7 @@ pub mod types { >, } - impl Default for SystemUpdateResultsPage { + impl ::std::default::Default for SystemUpdateResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23335,8 +23430,8 @@ pub mod types { impl SystemUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23345,8 +23440,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23367,7 +23462,7 @@ pub mod types { } } - impl From for SystemUpdateResultsPage { + impl ::std::convert::From for SystemUpdateResultsPage { fn from(value: super::SystemUpdateResultsPage) -> Self { Self { items: Ok(value.items), @@ -23381,7 +23476,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for SystemUpdateStart { + impl ::std::default::Default for SystemUpdateStart { fn default() -> Self { Self { version: Err("no value supplied for version".to_string()), @@ -23392,8 +23487,8 @@ pub mod types { impl SystemUpdateStart { pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -23413,7 +23508,7 @@ pub mod types { } } - impl From for SystemUpdateStart { + impl ::std::convert::From for SystemUpdateStart { fn from(value: super::SystemUpdateStart) -> Self { Self { version: Ok(value.version), @@ -23427,7 +23522,7 @@ pub mod types { version_range: ::std::result::Result, } - impl Default for SystemVersion { + impl ::std::default::Default for SystemVersion { fn default() -> Self { Self { status: Err("no value supplied for status".to_string()), @@ -23439,8 +23534,8 @@ pub mod types { impl SystemVersion { pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -23449,8 +23544,8 @@ pub mod types { } pub fn version_range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version_range = value.try_into().map_err(|e| { format!("error converting supplied value for version_range: {}", e) @@ -23471,7 +23566,7 @@ pub mod types { } } - impl From for SystemVersion { + impl ::std::convert::From for SystemVersion { fn from(value: super::SystemVersion) -> Self { Self { status: Ok(value.status), @@ -23490,7 +23585,7 @@ pub mod types { timeseries_name: ::std::result::Result, } - impl Default for TimeseriesSchema { + impl ::std::default::Default for TimeseriesSchema { fn default() -> Self { Self { created: Err("no value supplied for created".to_string()), @@ -23504,8 +23599,8 @@ pub mod types { impl TimeseriesSchema { pub fn created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.created = value .try_into() @@ -23514,8 +23609,8 @@ pub mod types { } pub fn datum_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.datum_type = value .try_into() @@ -23524,8 +23619,8 @@ pub mod types { } pub fn field_schema(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.field_schema = value.try_into().map_err(|e| { format!("error converting supplied value for field_schema: {}", e) @@ -23534,8 +23629,8 @@ pub mod types { } pub fn timeseries_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.timeseries_name = value.try_into().map_err(|e| { format!("error converting supplied value for timeseries_name: {}", e) @@ -23558,7 +23653,7 @@ pub mod types { } } - impl From for TimeseriesSchema { + impl ::std::convert::From for TimeseriesSchema { fn from(value: super::TimeseriesSchema) -> Self { Self { created: Ok(value.created), @@ -23581,7 +23676,7 @@ pub mod types { >, } - impl Default for TimeseriesSchemaResultsPage { + impl ::std::default::Default for TimeseriesSchemaResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23593,8 +23688,8 @@ pub mod types { impl TimeseriesSchemaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23603,8 +23698,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23625,7 +23720,7 @@ pub mod types { } } - impl From for TimeseriesSchemaResultsPage { + impl ::std::convert::From for TimeseriesSchemaResultsPage { fn from(value: super::TimeseriesSchemaResultsPage) -> Self { Self { items: Ok(value.items), @@ -23645,7 +23740,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for UpdateDeployment { + impl ::std::default::Default for UpdateDeployment { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -23660,8 +23755,8 @@ pub mod types { impl UpdateDeployment { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23670,8 +23765,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -23680,8 +23775,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23690,8 +23785,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23700,8 +23795,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -23725,7 +23820,7 @@ pub mod types { } } - impl From for UpdateDeployment { + impl ::std::convert::From for UpdateDeployment { fn from(value: super::UpdateDeployment) -> Self { Self { id: Ok(value.id), @@ -23749,7 +23844,7 @@ pub mod types { >, } - impl Default for UpdateDeploymentResultsPage { + impl ::std::default::Default for UpdateDeploymentResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23761,8 +23856,8 @@ pub mod types { impl UpdateDeploymentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23771,8 +23866,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23793,7 +23888,7 @@ pub mod types { } } - impl From for UpdateDeploymentResultsPage { + impl ::std::convert::From for UpdateDeploymentResultsPage { fn from(value: super::UpdateDeploymentResultsPage) -> Self { Self { items: Ok(value.items), @@ -23817,7 +23912,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for UpdateableComponent { + impl ::std::default::Default for UpdateableComponent { fn default() -> Self { Self { component_type: Err("no value supplied for component_type".to_string()), @@ -23835,8 +23930,8 @@ pub mod types { impl UpdateableComponent { pub fn component_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.component_type = value.try_into().map_err(|e| { format!("error converting supplied value for component_type: {}", e) @@ -23845,8 +23940,8 @@ pub mod types { } pub fn device_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device_id = value .try_into() @@ -23855,8 +23950,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23865,8 +23960,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -23875,8 +23970,8 @@ pub mod types { } pub fn system_version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.system_version = value.try_into().map_err(|e| { format!("error converting supplied value for system_version: {}", e) @@ -23885,8 +23980,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23895,8 +23990,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23905,8 +24000,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -23933,7 +24028,7 @@ pub mod types { } } - impl From for UpdateableComponent { + impl ::std::convert::From for UpdateableComponent { fn from(value: super::UpdateableComponent) -> Self { Self { component_type: Ok(value.component_type), @@ -23960,7 +24055,7 @@ pub mod types { >, } - impl Default for UpdateableComponentResultsPage { + impl ::std::default::Default for UpdateableComponentResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23972,8 +24067,8 @@ pub mod types { impl UpdateableComponentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23982,8 +24077,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -24006,7 +24101,9 @@ pub mod types { } } - impl From for UpdateableComponentResultsPage { + impl ::std::convert::From + for UpdateableComponentResultsPage + { fn from(value: super::UpdateableComponentResultsPage) -> Self { Self { items: Ok(value.items), @@ -24022,7 +24119,7 @@ pub mod types { silo_id: ::std::result::Result, } - impl Default for User { + impl ::std::default::Default for User { fn default() -> Self { Self { display_name: Err("no value supplied for display_name".to_string()), @@ -24035,8 +24132,8 @@ pub mod types { impl User { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { format!("error converting supplied value for display_name: {}", e) @@ -24045,8 +24142,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24055,8 +24152,8 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.silo_id = value .try_into() @@ -24076,7 +24173,7 @@ pub mod types { } } - impl From for User { + impl ::std::convert::From for User { fn from(value: super::User) -> Self { Self { display_name: Ok(value.display_name), @@ -24097,7 +24194,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for UserBuiltin { + impl ::std::default::Default for UserBuiltin { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -24112,8 +24209,8 @@ pub mod types { impl UserBuiltin { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24122,8 +24219,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24132,8 +24229,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24142,8 +24239,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -24152,8 +24249,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -24177,7 +24274,7 @@ pub mod types { } } - impl From for UserBuiltin { + impl ::std::convert::From for UserBuiltin { fn from(value: super::UserBuiltin) -> Self { Self { description: Ok(value.description), @@ -24199,7 +24296,7 @@ pub mod types { >, } - impl Default for UserBuiltinResultsPage { + impl ::std::default::Default for UserBuiltinResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -24211,8 +24308,8 @@ pub mod types { impl UserBuiltinResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -24221,8 +24318,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -24243,7 +24340,7 @@ pub mod types { } } - impl From for UserBuiltinResultsPage { + impl ::std::convert::From for UserBuiltinResultsPage { fn from(value: super::UserBuiltinResultsPage) -> Self { Self { items: Ok(value.items), @@ -24258,7 +24355,7 @@ pub mod types { password: ::std::result::Result, } - impl Default for UserCreate { + impl ::std::default::Default for UserCreate { fn default() -> Self { Self { external_id: Err("no value supplied for external_id".to_string()), @@ -24270,8 +24367,8 @@ pub mod types { impl UserCreate { pub fn external_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.external_id = value .try_into() @@ -24280,8 +24377,8 @@ pub mod types { } pub fn password(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.password = value .try_into() @@ -24302,7 +24399,7 @@ pub mod types { } } - impl From for UserCreate { + impl ::std::convert::From for UserCreate { fn from(value: super::UserCreate) -> Self { Self { external_id: Ok(value.external_id), @@ -24320,7 +24417,7 @@ pub mod types { >, } - impl Default for UserResultsPage { + impl ::std::default::Default for UserResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -24332,8 +24429,8 @@ pub mod types { impl UserResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -24342,8 +24439,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -24364,7 +24461,7 @@ pub mod types { } } - impl From for UserResultsPage { + impl ::std::convert::From for UserResultsPage { fn from(value: super::UserResultsPage) -> Self { Self { items: Ok(value.items), @@ -24379,7 +24476,7 @@ pub mod types { username: ::std::result::Result, } - impl Default for UsernamePasswordCredentials { + impl ::std::default::Default for UsernamePasswordCredentials { fn default() -> Self { Self { password: Err("no value supplied for password".to_string()), @@ -24391,8 +24488,8 @@ pub mod types { impl UsernamePasswordCredentials { pub fn password(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.password = value .try_into() @@ -24401,8 +24498,8 @@ pub mod types { } pub fn username(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.username = value .try_into() @@ -24423,7 +24520,7 @@ pub mod types { } } - impl From for UsernamePasswordCredentials { + impl ::std::convert::From for UsernamePasswordCredentials { fn from(value: super::UsernamePasswordCredentials) -> Self { Self { password: Ok(value.password), @@ -24438,7 +24535,7 @@ pub mod types { low: ::std::result::Result, } - impl Default for VersionRange { + impl ::std::default::Default for VersionRange { fn default() -> Self { Self { high: Err("no value supplied for high".to_string()), @@ -24450,8 +24547,8 @@ pub mod types { impl VersionRange { pub fn high(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.high = value .try_into() @@ -24460,8 +24557,8 @@ pub mod types { } pub fn low(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.low = value .try_into() @@ -24482,7 +24579,7 @@ pub mod types { } } - impl From for VersionRange { + impl ::std::convert::From for VersionRange { fn from(value: super::VersionRange) -> Self { Self { high: Ok(value.high), @@ -24506,7 +24603,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Vpc { + impl ::std::default::Default for Vpc { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -24525,8 +24622,8 @@ pub mod types { impl Vpc { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24535,8 +24632,8 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.dns_name = value .try_into() @@ -24545,8 +24642,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24555,8 +24652,8 @@ pub mod types { } pub fn ipv6_prefix(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv6_prefix = value .try_into() @@ -24565,8 +24662,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24575,8 +24672,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -24585,8 +24682,8 @@ pub mod types { } pub fn system_router_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.system_router_id = value.try_into().map_err(|e| { format!( @@ -24598,8 +24695,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -24608,8 +24705,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -24635,7 +24732,7 @@ pub mod types { } } - impl From for Vpc { + impl ::std::convert::From for Vpc { fn from(value: super::Vpc) -> Self { Self { description: Ok(value.description), @@ -24660,7 +24757,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for VpcCreate { + impl ::std::default::Default for VpcCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -24674,8 +24771,8 @@ pub mod types { impl VpcCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24684,8 +24781,8 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.dns_name = value .try_into() @@ -24694,8 +24791,8 @@ pub mod types { } pub fn ipv6_prefix(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.ipv6_prefix = value .try_into() @@ -24704,8 +24801,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24728,7 +24825,7 @@ pub mod types { } } - impl From for VpcCreate { + impl ::std::convert::From for VpcCreate { fn from(value: super::VpcCreate) -> Self { Self { description: Ok(value.description), @@ -24761,7 +24858,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for VpcFirewallRule { + impl ::std::default::Default for VpcFirewallRule { fn default() -> Self { Self { action: Err("no value supplied for action".to_string()), @@ -24783,8 +24880,8 @@ pub mod types { impl VpcFirewallRule { pub fn action(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.action = value .try_into() @@ -24793,8 +24890,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24803,8 +24900,8 @@ pub mod types { } pub fn direction(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.direction = value .try_into() @@ -24813,8 +24910,8 @@ pub mod types { } pub fn filters(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.filters = value .try_into() @@ -24823,8 +24920,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24833,8 +24930,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24843,8 +24940,8 @@ pub mod types { } pub fn priority(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.priority = value .try_into() @@ -24853,8 +24950,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -24863,8 +24960,8 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.targets = value .try_into() @@ -24873,8 +24970,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -24883,8 +24980,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -24893,8 +24990,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -24925,7 +25022,7 @@ pub mod types { } } - impl From for VpcFirewallRule { + impl ::std::convert::From for VpcFirewallRule { fn from(value: super::VpcFirewallRule) -> Self { Self { action: Ok(value.action), @@ -24960,7 +25057,7 @@ pub mod types { >, } - impl Default for VpcFirewallRuleFilter { + impl ::std::default::Default for VpcFirewallRuleFilter { fn default() -> Self { Self { hosts: Ok(Default::default()), @@ -24973,10 +25070,10 @@ pub mod types { impl VpcFirewallRuleFilter { pub fn hosts(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option<::std::vec::Vec>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.hosts = value .try_into() @@ -24985,10 +25082,10 @@ pub mod types { } pub fn ports(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option<::std::vec::Vec>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.ports = value .try_into() @@ -24997,10 +25094,10 @@ pub mod types { } pub fn protocols(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option<::std::vec::Vec>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.protocols = value .try_into() @@ -25022,7 +25119,7 @@ pub mod types { } } - impl From for VpcFirewallRuleFilter { + impl ::std::convert::From for VpcFirewallRuleFilter { fn from(value: super::VpcFirewallRuleFilter) -> Self { Self { hosts: Ok(value.hosts), @@ -25048,7 +25145,7 @@ pub mod types { >, } - impl Default for VpcFirewallRuleUpdate { + impl ::std::default::Default for VpcFirewallRuleUpdate { fn default() -> Self { Self { action: Err("no value supplied for action".to_string()), @@ -25066,8 +25163,8 @@ pub mod types { impl VpcFirewallRuleUpdate { pub fn action(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.action = value .try_into() @@ -25076,8 +25173,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25086,8 +25183,8 @@ pub mod types { } pub fn direction(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.direction = value .try_into() @@ -25096,8 +25193,8 @@ pub mod types { } pub fn filters(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.filters = value .try_into() @@ -25106,8 +25203,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25116,8 +25213,8 @@ pub mod types { } pub fn priority(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.priority = value .try_into() @@ -25126,8 +25223,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -25136,8 +25233,8 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.targets = value .try_into() @@ -25164,7 +25261,7 @@ pub mod types { } } - impl From for VpcFirewallRuleUpdate { + impl ::std::convert::From for VpcFirewallRuleUpdate { fn from(value: super::VpcFirewallRuleUpdate) -> Self { Self { action: Ok(value.action), @@ -25187,7 +25284,7 @@ pub mod types { >, } - impl Default for VpcFirewallRuleUpdateParams { + impl ::std::default::Default for VpcFirewallRuleUpdateParams { fn default() -> Self { Self { rules: Err("no value supplied for rules".to_string()), @@ -25198,8 +25295,8 @@ pub mod types { impl VpcFirewallRuleUpdateParams { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.rules = value .try_into() @@ -25219,7 +25316,7 @@ pub mod types { } } - impl From for VpcFirewallRuleUpdateParams { + impl ::std::convert::From for VpcFirewallRuleUpdateParams { fn from(value: super::VpcFirewallRuleUpdateParams) -> Self { Self { rules: Ok(value.rules), @@ -25235,7 +25332,7 @@ pub mod types { >, } - impl Default for VpcFirewallRules { + impl ::std::default::Default for VpcFirewallRules { fn default() -> Self { Self { rules: Err("no value supplied for rules".to_string()), @@ -25246,8 +25343,8 @@ pub mod types { impl VpcFirewallRules { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.rules = value .try_into() @@ -25267,7 +25364,7 @@ pub mod types { } } - impl From for VpcFirewallRules { + impl ::std::convert::From for VpcFirewallRules { fn from(value: super::VpcFirewallRules) -> Self { Self { rules: Ok(value.rules), @@ -25284,7 +25381,7 @@ pub mod types { >, } - impl Default for VpcResultsPage { + impl ::std::default::Default for VpcResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -25296,8 +25393,8 @@ pub mod types { impl VpcResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -25306,8 +25403,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -25328,7 +25425,7 @@ pub mod types { } } - impl From for VpcResultsPage { + impl ::std::convert::From for VpcResultsPage { fn from(value: super::VpcResultsPage) -> Self { Self { items: Ok(value.items), @@ -25350,7 +25447,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for VpcRouter { + impl ::std::default::Default for VpcRouter { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25367,8 +25464,8 @@ pub mod types { impl VpcRouter { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25377,8 +25474,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -25387,8 +25484,8 @@ pub mod types { } pub fn kind(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.kind = value .try_into() @@ -25397,8 +25494,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25407,8 +25504,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -25417,8 +25514,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -25427,8 +25524,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -25454,7 +25551,7 @@ pub mod types { } } - impl From for VpcRouter { + impl ::std::convert::From for VpcRouter { fn from(value: super::VpcRouter) -> Self { Self { description: Ok(value.description), @@ -25474,7 +25571,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for VpcRouterCreate { + impl ::std::default::Default for VpcRouterCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25486,8 +25583,8 @@ pub mod types { impl VpcRouterCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25496,8 +25593,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25518,7 +25615,7 @@ pub mod types { } } - impl From for VpcRouterCreate { + impl ::std::convert::From for VpcRouterCreate { fn from(value: super::VpcRouterCreate) -> Self { Self { description: Ok(value.description), @@ -25536,7 +25633,7 @@ pub mod types { >, } - impl Default for VpcRouterResultsPage { + impl ::std::default::Default for VpcRouterResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -25548,8 +25645,8 @@ pub mod types { impl VpcRouterResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -25558,8 +25655,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -25580,7 +25677,7 @@ pub mod types { } } - impl From for VpcRouterResultsPage { + impl ::std::convert::From for VpcRouterResultsPage { fn from(value: super::VpcRouterResultsPage) -> Self { Self { items: Ok(value.items), @@ -25598,7 +25695,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for VpcRouterUpdate { + impl ::std::default::Default for VpcRouterUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -25610,8 +25707,8 @@ pub mod types { impl VpcRouterUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25620,8 +25717,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25642,7 +25739,7 @@ pub mod types { } } - impl From for VpcRouterUpdate { + impl ::std::convert::From for VpcRouterUpdate { fn from(value: super::VpcRouterUpdate) -> Self { Self { description: Ok(value.description), @@ -25665,7 +25762,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for VpcSubnet { + impl ::std::default::Default for VpcSubnet { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25683,8 +25780,8 @@ pub mod types { impl VpcSubnet { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25693,8 +25790,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -25703,8 +25800,8 @@ pub mod types { } pub fn ipv4_block(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv4_block = value .try_into() @@ -25713,8 +25810,8 @@ pub mod types { } pub fn ipv6_block(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv6_block = value .try_into() @@ -25723,8 +25820,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25733,8 +25830,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -25743,8 +25840,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -25753,8 +25850,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -25781,7 +25878,7 @@ pub mod types { } } - impl From for VpcSubnet { + impl ::std::convert::From for VpcSubnet { fn from(value: super::VpcSubnet) -> Self { Self { description: Ok(value.description), @@ -25805,7 +25902,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for VpcSubnetCreate { + impl ::std::default::Default for VpcSubnetCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25819,8 +25916,8 @@ pub mod types { impl VpcSubnetCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25829,8 +25926,8 @@ pub mod types { } pub fn ipv4_block(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv4_block = value .try_into() @@ -25839,8 +25936,8 @@ pub mod types { } pub fn ipv6_block(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.ipv6_block = value .try_into() @@ -25849,8 +25946,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25873,7 +25970,7 @@ pub mod types { } } - impl From for VpcSubnetCreate { + impl ::std::convert::From for VpcSubnetCreate { fn from(value: super::VpcSubnetCreate) -> Self { Self { description: Ok(value.description), @@ -25893,7 +25990,7 @@ pub mod types { >, } - impl Default for VpcSubnetResultsPage { + impl ::std::default::Default for VpcSubnetResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -25905,8 +26002,8 @@ pub mod types { impl VpcSubnetResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -25915,8 +26012,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -25937,7 +26034,7 @@ pub mod types { } } - impl From for VpcSubnetResultsPage { + impl ::std::convert::From for VpcSubnetResultsPage { fn from(value: super::VpcSubnetResultsPage) -> Self { Self { items: Ok(value.items), @@ -25955,7 +26052,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for VpcSubnetUpdate { + impl ::std::default::Default for VpcSubnetUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -25967,8 +26064,8 @@ pub mod types { impl VpcSubnetUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25977,8 +26074,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25999,7 +26096,7 @@ pub mod types { } } - impl From for VpcSubnetUpdate { + impl ::std::convert::From for VpcSubnetUpdate { fn from(value: super::VpcSubnetUpdate) -> Self { Self { description: Ok(value.description), @@ -26019,7 +26116,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for VpcUpdate { + impl ::std::default::Default for VpcUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -26032,8 +26129,8 @@ pub mod types { impl VpcUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -26042,8 +26139,8 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.dns_name = value .try_into() @@ -26052,8 +26149,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -26075,7 +26172,7 @@ pub mod types { } } - impl From for VpcUpdate { + impl ::std::convert::From for VpcUpdate { fn from(value: super::VpcUpdate) -> Self { Self { description: Ok(value.description), diff --git a/progenitor-impl/tests/output/src/nexus_builder_tagged.rs b/progenitor-impl/tests/output/src/nexus_builder_tagged.rs index 20e0f90b..b7cba235 100644 --- a/progenitor-impl/tests/output/src/nexus_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/nexus_builder_tagged.rs @@ -73,7 +73,7 @@ pub mod types { pub serial: ::std::string::String, } - impl From<&Baseboard> for Baseboard { + impl ::std::convert::From<&Baseboard> for Baseboard { fn from(value: &Baseboard) -> Self { value.clone() } @@ -187,7 +187,7 @@ pub mod types { RangeFrom { start: f64 }, } - impl From<&BinRangedouble> for BinRangedouble { + impl ::std::convert::From<&BinRangedouble> for BinRangedouble { fn from(value: &BinRangedouble) -> Self { value.clone() } @@ -295,7 +295,7 @@ pub mod types { RangeFrom { start: i64 }, } - impl From<&BinRangeint64> for BinRangeint64 { + impl ::std::convert::From<&BinRangeint64> for BinRangeint64 { fn from(value: &BinRangeint64) -> Self { value.clone() } @@ -341,7 +341,7 @@ pub mod types { pub range: BinRangedouble, } - impl From<&Bindouble> for Bindouble { + impl ::std::convert::From<&Bindouble> for Bindouble { fn from(value: &Bindouble) -> Self { value.clone() } @@ -393,7 +393,7 @@ pub mod types { pub range: BinRangeint64, } - impl From<&Binint64> for Binint64 { + impl ::std::convert::From<&Binint64> for Binint64 { fn from(value: &Binint64) -> Self { value.clone() } @@ -422,6 +422,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct BlockSize(i64); impl ::std::ops::Deref for BlockSize { type Target = i64; @@ -430,13 +431,13 @@ pub mod types { } } - impl From for i64 { + impl ::std::convert::From for i64 { fn from(value: BlockSize) -> Self { value.0 } } - impl From<&BlockSize> for BlockSize { + impl ::std::convert::From<&BlockSize> for BlockSize { fn from(value: &BlockSize) -> Self { value.clone() } @@ -489,6 +490,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct ByteCount(pub u64); impl ::std::ops::Deref for ByteCount { type Target = u64; @@ -497,46 +499,46 @@ pub mod types { } } - impl From for u64 { + impl ::std::convert::From for u64 { fn from(value: ByteCount) -> Self { value.0 } } - impl From<&ByteCount> for ByteCount { + impl ::std::convert::From<&ByteCount> for ByteCount { fn from(value: &ByteCount) -> Self { value.clone() } } - impl From for ByteCount { + impl ::std::convert::From for ByteCount { fn from(value: u64) -> Self { Self(value) } } - impl std::str::FromStr for ByteCount { + impl ::std::str::FromStr for ByteCount { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for ByteCount { + impl ::std::convert::TryFrom<&str> for ByteCount { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ByteCount { + impl ::std::convert::TryFrom<&String> for ByteCount { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ByteCount { + impl ::std::convert::TryFrom for ByteCount { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -617,7 +619,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Certificate> for Certificate { + impl ::std::convert::From<&Certificate> for Certificate { fn from(value: &Certificate) -> Self { value.clone() } @@ -695,7 +697,7 @@ pub mod types { pub service: ServiceUsingCertificate, } - impl From<&CertificateCreate> for CertificateCreate { + impl ::std::convert::From<&CertificateCreate> for CertificateCreate { fn from(value: &CertificateCreate) -> Self { value.clone() } @@ -747,7 +749,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&CertificateResultsPage> for CertificateResultsPage { + impl ::std::convert::From<&CertificateResultsPage> for CertificateResultsPage { fn from(value: &CertificateResultsPage) -> Self { value.clone() } @@ -815,7 +817,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&ComponentUpdate> for ComponentUpdate { + impl ::std::convert::From<&ComponentUpdate> for ComponentUpdate { fn from(value: &ComponentUpdate) -> Self { value.clone() } @@ -867,7 +869,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { + impl ::std::convert::From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { fn from(value: &ComponentUpdateResultsPage) -> Self { value.clone() } @@ -910,7 +912,7 @@ pub mod types { pub value: f64, } - impl From<&Cumulativedouble> for Cumulativedouble { + impl ::std::convert::From<&Cumulativedouble> for Cumulativedouble { fn from(value: &Cumulativedouble) -> Self { value.clone() } @@ -953,7 +955,7 @@ pub mod types { pub value: i64, } - impl From<&Cumulativeint64> for Cumulativeint64 { + impl ::std::convert::From<&Cumulativeint64> for Cumulativeint64 { fn from(value: &Cumulativeint64) -> Self { value.clone() } @@ -1170,55 +1172,55 @@ pub mod types { HistogramF64(Histogramdouble), } - impl From<&Datum> for Datum { + impl ::std::convert::From<&Datum> for Datum { fn from(value: &Datum) -> Self { value.clone() } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: bool) -> Self { Self::Bool(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: i64) -> Self { Self::I64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: f64) -> Self { Self::F64(value) } } - impl From<::std::vec::Vec> for Datum { + impl ::std::convert::From<::std::vec::Vec> for Datum { fn from(value: ::std::vec::Vec) -> Self { Self::Bytes(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Cumulativeint64) -> Self { Self::CumulativeI64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Cumulativedouble) -> Self { Self::CumulativeF64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Histogramint64) -> Self { Self::HistogramI64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Histogramdouble) -> Self { Self::HistogramF64(value) } @@ -1279,7 +1281,7 @@ pub mod types { HistogramF64, } - impl From<&DatumType> for DatumType { + impl ::std::convert::From<&DatumType> for DatumType { fn from(value: &DatumType) -> Self { value.clone() } @@ -1301,7 +1303,7 @@ pub mod types { } } - impl std::str::FromStr for DatumType { + impl ::std::str::FromStr for DatumType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1319,14 +1321,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for DatumType { + impl ::std::convert::TryFrom<&str> for DatumType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for DatumType { + impl ::std::convert::TryFrom<&::std::string::String> for DatumType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1335,7 +1337,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for DatumType { + impl ::std::convert::TryFrom<::std::string::String> for DatumType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1378,7 +1380,7 @@ pub mod types { pub public_cert: ::std::string::String, } - impl From<&DerEncodedKeyPair> for DerEncodedKeyPair { + impl ::std::convert::From<&DerEncodedKeyPair> for DerEncodedKeyPair { fn from(value: &DerEncodedKeyPair) -> Self { value.clone() } @@ -1424,7 +1426,7 @@ pub mod types { pub grant_type: ::std::string::String, } - impl From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { + impl ::std::convert::From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { fn from(value: &DeviceAccessTokenRequest) -> Self { value.clone() } @@ -1460,7 +1462,7 @@ pub mod types { pub client_id: uuid::Uuid, } - impl From<&DeviceAuthRequest> for DeviceAuthRequest { + impl ::std::convert::From<&DeviceAuthRequest> for DeviceAuthRequest { fn from(value: &DeviceAuthRequest) -> Self { value.clone() } @@ -1495,7 +1497,7 @@ pub mod types { pub user_code: ::std::string::String, } - impl From<&DeviceAuthVerify> for DeviceAuthVerify { + impl ::std::convert::From<&DeviceAuthVerify> for DeviceAuthVerify { fn from(value: &DeviceAuthVerify) -> Self { value.clone() } @@ -1543,7 +1545,7 @@ pub mod types { Sha256(::std::string::String), } - impl From<&Digest> for Digest { + impl ::std::convert::From<&Digest> for Digest { fn from(value: &Digest) -> Self { value.clone() } @@ -1656,7 +1658,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Disk> for Disk { + impl ::std::convert::From<&Disk> for Disk { fn from(value: &Disk) -> Self { value.clone() } @@ -1721,7 +1723,7 @@ pub mod types { pub size: ByteCount, } - impl From<&DiskCreate> for DiskCreate { + impl ::std::convert::From<&DiskCreate> for DiskCreate { fn from(value: &DiskCreate) -> Self { value.clone() } @@ -1761,7 +1763,7 @@ pub mod types { pub name: Name, } - impl From<&DiskIdentifier> for DiskIdentifier { + impl ::std::convert::From<&DiskIdentifier> for DiskIdentifier { fn from(value: &DiskIdentifier) -> Self { value.clone() } @@ -1818,7 +1820,7 @@ pub mod types { WriteBytes, } - impl From<&DiskMetricName> for DiskMetricName { + impl ::std::convert::From<&DiskMetricName> for DiskMetricName { fn from(value: &DiskMetricName) -> Self { value.clone() } @@ -1837,7 +1839,7 @@ pub mod types { } } - impl std::str::FromStr for DiskMetricName { + impl ::std::str::FromStr for DiskMetricName { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1852,14 +1854,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for DiskMetricName { + impl ::std::convert::TryFrom<&str> for DiskMetricName { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for DiskMetricName { + impl ::std::convert::TryFrom<&::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1868,7 +1870,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for DiskMetricName { + impl ::std::convert::TryFrom<::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1900,7 +1902,7 @@ pub mod types { pub disk: NameOrId, } - impl From<&DiskPath> for DiskPath { + impl ::std::convert::From<&DiskPath> for DiskPath { fn from(value: &DiskPath) -> Self { value.clone() } @@ -1952,7 +1954,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&DiskResultsPage> for DiskResultsPage { + impl ::std::convert::From<&DiskResultsPage> for DiskResultsPage { fn from(value: &DiskResultsPage) -> Self { value.clone() } @@ -2082,7 +2084,7 @@ pub mod types { GlobalImage { image_id: uuid::Uuid }, } - impl From<&DiskSource> for DiskSource { + impl ::std::convert::From<&DiskSource> for DiskSource { fn from(value: &DiskSource) -> Self { value.clone() } @@ -2242,7 +2244,7 @@ pub mod types { Faulted, } - impl From<&DiskState> for DiskState { + impl ::std::convert::From<&DiskState> for DiskState { fn from(value: &DiskState) -> Self { value.clone() } @@ -2287,7 +2289,7 @@ pub mod types { pub version: ::std::string::String, } - impl From<&Distribution> for Distribution { + impl ::std::convert::From<&Distribution> for Distribution { fn from(value: &Distribution) -> Self { value.clone() } @@ -2333,7 +2335,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -2374,7 +2376,7 @@ pub mod types { pub kind: IpKind, } - impl From<&ExternalIp> for ExternalIp { + impl ::std::convert::From<&ExternalIp> for ExternalIp { fn from(value: &ExternalIp) -> Self { value.clone() } @@ -2443,7 +2445,7 @@ pub mod types { }, } - impl From<&ExternalIpCreate> for ExternalIpCreate { + impl ::std::convert::From<&ExternalIpCreate> for ExternalIpCreate { fn from(value: &ExternalIpCreate) -> Self { value.clone() } @@ -2489,7 +2491,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ExternalIpResultsPage> for ExternalIpResultsPage { + impl ::std::convert::From<&ExternalIpResultsPage> for ExternalIpResultsPage { fn from(value: &ExternalIpResultsPage) -> Self { value.clone() } @@ -2536,7 +2538,7 @@ pub mod types { pub ty: FieldType, } - impl From<&FieldSchema> for FieldSchema { + impl ::std::convert::From<&FieldSchema> for FieldSchema { fn from(value: &FieldSchema) -> Self { value.clone() } @@ -2583,7 +2585,7 @@ pub mod types { Metric, } - impl From<&FieldSource> for FieldSource { + impl ::std::convert::From<&FieldSource> for FieldSource { fn from(value: &FieldSource) -> Self { value.clone() } @@ -2598,7 +2600,7 @@ pub mod types { } } - impl std::str::FromStr for FieldSource { + impl ::std::str::FromStr for FieldSource { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2609,14 +2611,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FieldSource { + impl ::std::convert::TryFrom<&str> for FieldSource { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FieldSource { + impl ::std::convert::TryFrom<&::std::string::String> for FieldSource { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2625,7 +2627,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FieldSource { + impl ::std::convert::TryFrom<::std::string::String> for FieldSource { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2678,7 +2680,7 @@ pub mod types { Bool, } - impl From<&FieldType> for FieldType { + impl ::std::convert::From<&FieldType> for FieldType { fn from(value: &FieldType) -> Self { value.clone() } @@ -2696,7 +2698,7 @@ pub mod types { } } - impl std::str::FromStr for FieldType { + impl ::std::str::FromStr for FieldType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2710,14 +2712,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FieldType { + impl ::std::convert::TryFrom<&str> for FieldType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FieldType { + impl ::std::convert::TryFrom<&::std::string::String> for FieldType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2726,7 +2728,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FieldType { + impl ::std::convert::TryFrom<::std::string::String> for FieldType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2771,7 +2773,7 @@ pub mod types { Viewer, } - impl From<&FleetRole> for FleetRole { + impl ::std::convert::From<&FleetRole> for FleetRole { fn from(value: &FleetRole) -> Self { value.clone() } @@ -2787,7 +2789,7 @@ pub mod types { } } - impl std::str::FromStr for FleetRole { + impl ::std::str::FromStr for FleetRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2799,14 +2801,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FleetRole { + impl ::std::convert::TryFrom<&str> for FleetRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FleetRole { + impl ::std::convert::TryFrom<&::std::string::String> for FleetRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2815,7 +2817,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FleetRole { + impl ::std::convert::TryFrom<::std::string::String> for FleetRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2861,7 +2863,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&FleetRolePolicy> for FleetRolePolicy { + impl ::std::convert::From<&FleetRolePolicy> for FleetRolePolicy { fn from(value: &FleetRolePolicy) -> Self { value.clone() } @@ -2917,7 +2919,7 @@ pub mod types { pub role_name: FleetRole, } - impl From<&FleetRoleRoleAssignment> for FleetRoleRoleAssignment { + impl ::std::convert::From<&FleetRoleRoleAssignment> for FleetRoleRoleAssignment { fn from(value: &FleetRoleRoleAssignment) -> Self { value.clone() } @@ -3056,7 +3058,7 @@ pub mod types { pub version: ::std::string::String, } - impl From<&GlobalImage> for GlobalImage { + impl ::std::convert::From<&GlobalImage> for GlobalImage { fn from(value: &GlobalImage) -> Self { value.clone() } @@ -3132,7 +3134,7 @@ pub mod types { pub source: ImageSource, } - impl From<&GlobalImageCreate> for GlobalImageCreate { + impl ::std::convert::From<&GlobalImageCreate> for GlobalImageCreate { fn from(value: &GlobalImageCreate) -> Self { value.clone() } @@ -3184,7 +3186,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&GlobalImageResultsPage> for GlobalImageResultsPage { + impl ::std::convert::From<&GlobalImageResultsPage> for GlobalImageResultsPage { fn from(value: &GlobalImageResultsPage) -> Self { value.clone() } @@ -3236,7 +3238,7 @@ pub mod types { pub silo_id: uuid::Uuid, } - impl From<&Group> for Group { + impl ::std::convert::From<&Group> for Group { fn from(value: &Group) -> Self { value.clone() } @@ -3288,7 +3290,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&GroupResultsPage> for GroupResultsPage { + impl ::std::convert::From<&GroupResultsPage> for GroupResultsPage { fn from(value: &GroupResultsPage) -> Self { value.clone() } @@ -3412,7 +3414,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&Histogramdouble> for Histogramdouble { + impl ::std::convert::From<&Histogramdouble> for Histogramdouble { fn from(value: &Histogramdouble) -> Self { value.clone() } @@ -3536,7 +3538,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&Histogramint64> for Histogramint64 { + impl ::std::convert::From<&Histogramint64> for Histogramint64 { fn from(value: &Histogramint64) -> Self { value.clone() } @@ -3588,7 +3590,7 @@ pub mod types { IdAscending, } - impl From<&IdSortMode> for IdSortMode { + impl ::std::convert::From<&IdSortMode> for IdSortMode { fn from(value: &IdSortMode) -> Self { value.clone() } @@ -3602,7 +3604,7 @@ pub mod types { } } - impl std::str::FromStr for IdSortMode { + impl ::std::str::FromStr for IdSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3612,14 +3614,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdSortMode { + impl ::std::convert::TryFrom<&str> for IdSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for IdSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3628,7 +3630,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdSortMode { + impl ::std::convert::TryFrom<::std::string::String> for IdSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3711,7 +3713,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&IdentityProvider> for IdentityProvider { + impl ::std::convert::From<&IdentityProvider> for IdentityProvider { fn from(value: &IdentityProvider) -> Self { value.clone() } @@ -3763,7 +3765,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { + impl ::std::convert::From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { fn from(value: &IdentityProviderResultsPage) -> Self { value.clone() } @@ -3811,7 +3813,7 @@ pub mod types { Saml, } - impl From<&IdentityProviderType> for IdentityProviderType { + impl ::std::convert::From<&IdentityProviderType> for IdentityProviderType { fn from(value: &IdentityProviderType) -> Self { value.clone() } @@ -3825,7 +3827,7 @@ pub mod types { } } - impl std::str::FromStr for IdentityProviderType { + impl ::std::str::FromStr for IdentityProviderType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3835,14 +3837,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdentityProviderType { + impl ::std::convert::TryFrom<&str> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdentityProviderType { + impl ::std::convert::TryFrom<&::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3851,7 +3853,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdentityProviderType { + impl ::std::convert::TryFrom<::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3894,7 +3896,7 @@ pub mod types { SiloGroup, } - impl From<&IdentityType> for IdentityType { + impl ::std::convert::From<&IdentityType> for IdentityType { fn from(value: &IdentityType) -> Self { value.clone() } @@ -3909,7 +3911,7 @@ pub mod types { } } - impl std::str::FromStr for IdentityType { + impl ::std::str::FromStr for IdentityType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3920,14 +3922,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdentityType { + impl ::std::convert::TryFrom<&str> for IdentityType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdentityType { + impl ::std::convert::TryFrom<&::std::string::String> for IdentityType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3936,7 +3938,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdentityType { + impl ::std::convert::TryFrom<::std::string::String> for IdentityType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -4001,7 +4003,7 @@ pub mod types { Base64EncodedXml { data: ::std::string::String }, } - impl From<&IdpMetadataSource> for IdpMetadataSource { + impl ::std::convert::From<&IdpMetadataSource> for IdpMetadataSource { fn from(value: &IdpMetadataSource) -> Self { value.clone() } @@ -4138,7 +4140,7 @@ pub mod types { pub version: ::std::option::Option<::std::string::String>, } - impl From<&Image> for Image { + impl ::std::convert::From<&Image> for Image { fn from(value: &Image) -> Self { value.clone() } @@ -4203,7 +4205,7 @@ pub mod types { pub source: ImageSource, } - impl From<&ImageCreate> for ImageCreate { + impl ::std::convert::From<&ImageCreate> for ImageCreate { fn from(value: &ImageCreate) -> Self { value.clone() } @@ -4255,7 +4257,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ImageResultsPage> for ImageResultsPage { + impl ::std::convert::From<&ImageResultsPage> for ImageResultsPage { fn from(value: &ImageResultsPage) -> Self { value.clone() } @@ -4343,7 +4345,7 @@ pub mod types { YouCanBootAnythingAsLongAsItsAlpine, } - impl From<&ImageSource> for ImageSource { + impl ::std::convert::From<&ImageSource> for ImageSource { fn from(value: &ImageSource) -> Self { value.clone() } @@ -4460,7 +4462,7 @@ pub mod types { pub time_run_state_updated: chrono::DateTime, } - impl From<&Instance> for Instance { + impl ::std::convert::From<&Instance> for Instance { fn from(value: &Instance) -> Self { value.clone() } @@ -4486,6 +4488,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct InstanceCpuCount(pub u16); impl ::std::ops::Deref for InstanceCpuCount { type Target = u16; @@ -4494,46 +4497,46 @@ pub mod types { } } - impl From for u16 { + impl ::std::convert::From for u16 { fn from(value: InstanceCpuCount) -> Self { value.0 } } - impl From<&InstanceCpuCount> for InstanceCpuCount { + impl ::std::convert::From<&InstanceCpuCount> for InstanceCpuCount { fn from(value: &InstanceCpuCount) -> Self { value.clone() } } - impl From for InstanceCpuCount { + impl ::std::convert::From for InstanceCpuCount { fn from(value: u16) -> Self { Self(value) } } - impl std::str::FromStr for InstanceCpuCount { + impl ::std::str::FromStr for InstanceCpuCount { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for InstanceCpuCount { + impl ::std::convert::TryFrom<&str> for InstanceCpuCount { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceCpuCount { + impl ::std::convert::TryFrom<&String> for InstanceCpuCount { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceCpuCount { + impl ::std::convert::TryFrom for InstanceCpuCount { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -4663,7 +4666,7 @@ pub mod types { pub user_data: ::std::string::String, } - impl From<&InstanceCreate> for InstanceCreate { + impl ::std::convert::From<&InstanceCreate> for InstanceCreate { fn from(value: &InstanceCreate) -> Self { value.clone() } @@ -4773,7 +4776,7 @@ pub mod types { }, } - impl From<&InstanceDiskAttachment> for InstanceDiskAttachment { + impl ::std::convert::From<&InstanceDiskAttachment> for InstanceDiskAttachment { fn from(value: &InstanceDiskAttachment) -> Self { value.clone() } @@ -4806,7 +4809,7 @@ pub mod types { pub dst_sled_id: uuid::Uuid, } - impl From<&InstanceMigrate> for InstanceMigrate { + impl ::std::convert::From<&InstanceMigrate> for InstanceMigrate { fn from(value: &InstanceMigrate) -> Self { value.clone() } @@ -4905,13 +4908,17 @@ pub mod types { None, } - impl From<&InstanceNetworkInterfaceAttachment> for InstanceNetworkInterfaceAttachment { + impl ::std::convert::From<&InstanceNetworkInterfaceAttachment> + for InstanceNetworkInterfaceAttachment + { fn from(value: &InstanceNetworkInterfaceAttachment) -> Self { value.clone() } } - impl From<::std::vec::Vec> for InstanceNetworkInterfaceAttachment { + impl ::std::convert::From<::std::vec::Vec> + for InstanceNetworkInterfaceAttachment + { fn from(value: ::std::vec::Vec) -> Self { Self::Create(value) } @@ -4957,7 +4964,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&InstanceResultsPage> for InstanceResultsPage { + impl ::std::convert::From<&InstanceResultsPage> for InstanceResultsPage { fn from(value: &InstanceResultsPage) -> Self { value.clone() } @@ -5016,7 +5023,7 @@ pub mod types { pub last_byte_offset: u64, } - impl From<&InstanceSerialConsoleData> for InstanceSerialConsoleData { + impl ::std::convert::From<&InstanceSerialConsoleData> for InstanceSerialConsoleData { fn from(value: &InstanceSerialConsoleData) -> Self { value.clone() } @@ -5169,7 +5176,7 @@ pub mod types { Destroyed, } - impl From<&InstanceState> for InstanceState { + impl ::std::convert::From<&InstanceState> for InstanceState { fn from(value: &InstanceState) -> Self { value.clone() } @@ -5192,7 +5199,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceState { + impl ::std::str::FromStr for InstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5211,14 +5218,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceState { + impl ::std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5227,7 +5234,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5270,7 +5277,7 @@ pub mod types { Floating, } - impl From<&IpKind> for IpKind { + impl ::std::convert::From<&IpKind> for IpKind { fn from(value: &IpKind) -> Self { value.clone() } @@ -5285,7 +5292,7 @@ pub mod types { } } - impl std::str::FromStr for IpKind { + impl ::std::str::FromStr for IpKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5296,14 +5303,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IpKind { + impl ::std::convert::TryFrom<&str> for IpKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IpKind { + impl ::std::convert::TryFrom<&::std::string::String> for IpKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5312,7 +5319,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IpKind { + impl ::std::convert::TryFrom<::std::string::String> for IpKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5355,13 +5362,13 @@ pub mod types { V6(Ipv6Net), } - impl From<&IpNet> for IpNet { + impl ::std::convert::From<&IpNet> for IpNet { fn from(value: &IpNet) -> Self { value.clone() } } - impl std::str::FromStr for IpNet { + impl ::std::str::FromStr for IpNet { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -5374,14 +5381,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IpNet { + impl ::std::convert::TryFrom<&str> for IpNet { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IpNet { + impl ::std::convert::TryFrom<&::std::string::String> for IpNet { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5390,7 +5397,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IpNet { + impl ::std::convert::TryFrom<::std::string::String> for IpNet { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5408,13 +5415,13 @@ pub mod types { } } - impl From for IpNet { + impl ::std::convert::From for IpNet { fn from(value: Ipv4Net) -> Self { Self::V4(value) } } - impl From for IpNet { + impl ::std::convert::From for IpNet { fn from(value: Ipv6Net) -> Self { Self::V6(value) } @@ -5485,7 +5492,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&IpPool> for IpPool { + impl ::std::convert::From<&IpPool> for IpPool { fn from(value: &IpPool) -> Self { value.clone() } @@ -5529,7 +5536,7 @@ pub mod types { pub name: Name, } - impl From<&IpPoolCreate> for IpPoolCreate { + impl ::std::convert::From<&IpPoolCreate> for IpPoolCreate { fn from(value: &IpPoolCreate) -> Self { value.clone() } @@ -5576,7 +5583,7 @@ pub mod types { pub time_created: chrono::DateTime, } - impl From<&IpPoolRange> for IpPoolRange { + impl ::std::convert::From<&IpPoolRange> for IpPoolRange { fn from(value: &IpPoolRange) -> Self { value.clone() } @@ -5628,7 +5635,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { + impl ::std::convert::From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { fn from(value: &IpPoolRangeResultsPage) -> Self { value.clone() } @@ -5680,7 +5687,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IpPoolResultsPage> for IpPoolResultsPage { + impl ::std::convert::From<&IpPoolResultsPage> for IpPoolResultsPage { fn from(value: &IpPoolResultsPage) -> Self { value.clone() } @@ -5733,12 +5740,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&IpPoolUpdate> for IpPoolUpdate { + impl ::std::convert::From<&IpPoolUpdate> for IpPoolUpdate { fn from(value: &IpPoolUpdate) -> Self { value.clone() } } + impl ::std::default::Default for IpPoolUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl IpPoolUpdate { pub fn builder() -> builder::IpPoolUpdate { Default::default() @@ -5779,19 +5795,19 @@ pub mod types { V6(Ipv6Range), } - impl From<&IpRange> for IpRange { + impl ::std::convert::From<&IpRange> for IpRange { fn from(value: &IpRange) -> Self { value.clone() } } - impl From for IpRange { + impl ::std::convert::From for IpRange { fn from(value: Ipv4Range) -> Self { Self::V4(value) } } - impl From for IpRange { + impl ::std::convert::From for IpRange { fn from(value: Ipv6Range) -> Self { Self::V6(value) } @@ -5817,6 +5833,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Ipv4Net(::std::string::String); impl ::std::ops::Deref for Ipv4Net { type Target = ::std::string::String; @@ -5825,13 +5842,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Ipv4Net) -> Self { value.0 } } - impl From<&Ipv4Net> for Ipv4Net { + impl ::std::convert::From<&Ipv4Net> for Ipv4Net { fn from(value: &Ipv4Net) -> Self { value.clone() } @@ -5932,7 +5949,7 @@ pub mod types { pub last: std::net::Ipv4Addr, } - impl From<&Ipv4Range> for Ipv4Range { + impl ::std::convert::From<&Ipv4Range> for Ipv4Range { fn from(value: &Ipv4Range) -> Self { value.clone() } @@ -5963,6 +5980,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Ipv6Net(::std::string::String); impl ::std::ops::Deref for Ipv6Net { type Target = ::std::string::String; @@ -5971,13 +5989,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Ipv6Net) -> Self { value.0 } } - impl From<&Ipv6Net> for Ipv6Net { + impl ::std::convert::From<&Ipv6Net> for Ipv6Net { fn from(value: &Ipv6Net) -> Self { value.clone() } @@ -6077,7 +6095,7 @@ pub mod types { pub last: std::net::Ipv6Addr, } - impl From<&Ipv6Range> for Ipv6Range { + impl ::std::convert::From<&Ipv6Range> for Ipv6Range { fn from(value: &Ipv6Range) -> Self { value.clone() } @@ -6110,6 +6128,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct L4PortRange(::std::string::String); impl ::std::ops::Deref for L4PortRange { type Target = ::std::string::String; @@ -6118,13 +6137,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: L4PortRange) -> Self { value.0 } } - impl From<&L4PortRange> for L4PortRange { + impl ::std::convert::From<&L4PortRange> for L4PortRange { fn from(value: &L4PortRange) -> Self { value.clone() } @@ -6207,6 +6226,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct MacAddr(::std::string::String); impl ::std::ops::Deref for MacAddr { type Target = ::std::string::String; @@ -6215,13 +6235,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: MacAddr) -> Self { value.0 } } - impl From<&MacAddr> for MacAddr { + impl ::std::convert::From<&MacAddr> for MacAddr { fn from(value: &MacAddr) -> Self { value.clone() } @@ -6318,7 +6338,7 @@ pub mod types { pub timestamp: chrono::DateTime, } - impl From<&Measurement> for Measurement { + impl ::std::convert::From<&Measurement> for Measurement { fn from(value: &Measurement) -> Self { value.clone() } @@ -6370,7 +6390,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&MeasurementResultsPage> for MeasurementResultsPage { + impl ::std::convert::From<&MeasurementResultsPage> for MeasurementResultsPage { fn from(value: &MeasurementResultsPage) -> Self { value.clone() } @@ -6404,6 +6424,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Name(::std::string::String); impl ::std::ops::Deref for Name { type Target = ::std::string::String; @@ -6412,13 +6433,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Name) -> Self { value.0 } } - impl From<&Name> for Name { + impl ::std::convert::From<&Name> for Name { fn from(value: &Name) -> Self { value.clone() } @@ -6508,13 +6529,13 @@ pub mod types { Name(Name), } - impl From<&NameOrId> for NameOrId { + impl ::std::convert::From<&NameOrId> for NameOrId { fn from(value: &NameOrId) -> Self { value.clone() } } - impl std::str::FromStr for NameOrId { + impl ::std::str::FromStr for NameOrId { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -6527,14 +6548,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameOrId { + impl ::std::convert::TryFrom<&str> for NameOrId { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameOrId { + impl ::std::convert::TryFrom<&::std::string::String> for NameOrId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6543,7 +6564,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameOrId { + impl ::std::convert::TryFrom<::std::string::String> for NameOrId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6561,13 +6582,13 @@ pub mod types { } } - impl From for NameOrId { + impl ::std::convert::From for NameOrId { fn from(value: uuid::Uuid) -> Self { Self::Id(value) } } - impl From for NameOrId { + impl ::std::convert::From for NameOrId { fn from(value: Name) -> Self { Self::Name(value) } @@ -6631,7 +6652,7 @@ pub mod types { IdAscending, } - impl From<&NameOrIdSortMode> for NameOrIdSortMode { + impl ::std::convert::From<&NameOrIdSortMode> for NameOrIdSortMode { fn from(value: &NameOrIdSortMode) -> Self { value.clone() } @@ -6647,7 +6668,7 @@ pub mod types { } } - impl std::str::FromStr for NameOrIdSortMode { + impl ::std::str::FromStr for NameOrIdSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6659,14 +6680,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameOrIdSortMode { + impl ::std::convert::TryFrom<&str> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6675,7 +6696,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { + impl ::std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6724,7 +6745,7 @@ pub mod types { NameAscending, } - impl From<&NameSortMode> for NameSortMode { + impl ::std::convert::From<&NameSortMode> for NameSortMode { fn from(value: &NameSortMode) -> Self { value.clone() } @@ -6738,7 +6759,7 @@ pub mod types { } } - impl std::str::FromStr for NameSortMode { + impl ::std::str::FromStr for NameSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6748,14 +6769,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameSortMode { + impl ::std::convert::TryFrom<&str> for NameSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for NameSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6764,7 +6785,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameSortMode { + impl ::std::convert::TryFrom<::std::string::String> for NameSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6889,7 +6910,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&NetworkInterface> for NetworkInterface { + impl ::std::convert::From<&NetworkInterface> for NetworkInterface { fn from(value: &NetworkInterface) -> Self { value.clone() } @@ -6966,7 +6987,7 @@ pub mod types { pub vpc_name: Name, } - impl From<&NetworkInterfaceCreate> for NetworkInterfaceCreate { + impl ::std::convert::From<&NetworkInterfaceCreate> for NetworkInterfaceCreate { fn from(value: &NetworkInterfaceCreate) -> Self { value.clone() } @@ -7018,7 +7039,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { + impl ::std::convert::From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { fn from(value: &NetworkInterfaceResultsPage) -> Self { value.clone() } @@ -7103,12 +7124,22 @@ pub mod types { pub primary: bool, } - impl From<&NetworkInterfaceUpdate> for NetworkInterfaceUpdate { + impl ::std::convert::From<&NetworkInterfaceUpdate> for NetworkInterfaceUpdate { fn from(value: &NetworkInterfaceUpdate) -> Self { value.clone() } } + impl ::std::default::Default for NetworkInterfaceUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + primary: Default::default(), + } + } + } + impl NetworkInterfaceUpdate { pub fn builder() -> builder::NetworkInterfaceUpdate { Default::default() @@ -7145,6 +7176,7 @@ pub mod types { PartialEq, PartialOrd, )] + #[serde(transparent)] pub struct NodeName(pub ::std::string::String); impl ::std::ops::Deref for NodeName { type Target = ::std::string::String; @@ -7153,19 +7185,19 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: NodeName) -> Self { value.0 } } - impl From<&NodeName> for NodeName { + impl ::std::convert::From<&NodeName> for NodeName { fn from(value: &NodeName) -> Self { value.clone() } } - impl From<::std::string::String> for NodeName { + impl ::std::convert::From<::std::string::String> for NodeName { fn from(value: ::std::string::String) -> Self { Self(value) } @@ -7247,7 +7279,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Organization> for Organization { + impl ::std::convert::From<&Organization> for Organization { fn from(value: &Organization) -> Self { value.clone() } @@ -7290,7 +7322,7 @@ pub mod types { pub name: Name, } - impl From<&OrganizationCreate> for OrganizationCreate { + impl ::std::convert::From<&OrganizationCreate> for OrganizationCreate { fn from(value: &OrganizationCreate) -> Self { value.clone() } @@ -7342,7 +7374,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&OrganizationResultsPage> for OrganizationResultsPage { + impl ::std::convert::From<&OrganizationResultsPage> for OrganizationResultsPage { fn from(value: &OrganizationResultsPage) -> Self { value.clone() } @@ -7390,7 +7422,7 @@ pub mod types { Viewer, } - impl From<&OrganizationRole> for OrganizationRole { + impl ::std::convert::From<&OrganizationRole> for OrganizationRole { fn from(value: &OrganizationRole) -> Self { value.clone() } @@ -7406,7 +7438,7 @@ pub mod types { } } - impl std::str::FromStr for OrganizationRole { + impl ::std::str::FromStr for OrganizationRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7418,14 +7450,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for OrganizationRole { + impl ::std::convert::TryFrom<&str> for OrganizationRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for OrganizationRole { + impl ::std::convert::TryFrom<&::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7434,7 +7466,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for OrganizationRole { + impl ::std::convert::TryFrom<::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7480,7 +7512,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&OrganizationRolePolicy> for OrganizationRolePolicy { + impl ::std::convert::From<&OrganizationRolePolicy> for OrganizationRolePolicy { fn from(value: &OrganizationRolePolicy) -> Self { value.clone() } @@ -7536,7 +7568,7 @@ pub mod types { pub role_name: OrganizationRole, } - impl From<&OrganizationRoleRoleAssignment> for OrganizationRoleRoleAssignment { + impl ::std::convert::From<&OrganizationRoleRoleAssignment> for OrganizationRoleRoleAssignment { fn from(value: &OrganizationRoleRoleAssignment) -> Self { value.clone() } @@ -7591,12 +7623,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&OrganizationUpdate> for OrganizationUpdate { + impl ::std::convert::From<&OrganizationUpdate> for OrganizationUpdate { fn from(value: &OrganizationUpdate) -> Self { value.clone() } } + impl ::std::default::Default for OrganizationUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl OrganizationUpdate { pub fn builder() -> builder::OrganizationUpdate { Default::default() @@ -7617,6 +7658,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Password(::std::string::String); impl ::std::ops::Deref for Password { type Target = ::std::string::String; @@ -7625,13 +7667,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Password) -> Self { value.0 } } - impl From<&Password> for Password { + impl ::std::convert::From<&Password> for Password { fn from(value: &Password) -> Self { value.clone() } @@ -7760,7 +7802,7 @@ pub mod types { pub vendor: ::std::string::String, } - impl From<&PhysicalDisk> for PhysicalDisk { + impl ::std::convert::From<&PhysicalDisk> for PhysicalDisk { fn from(value: &PhysicalDisk) -> Self { value.clone() } @@ -7812,7 +7854,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { + impl ::std::convert::From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { fn from(value: &PhysicalDiskResultsPage) -> Self { value.clone() } @@ -7857,7 +7899,7 @@ pub mod types { External, } - impl From<&PhysicalDiskType> for PhysicalDiskType { + impl ::std::convert::From<&PhysicalDiskType> for PhysicalDiskType { fn from(value: &PhysicalDiskType) -> Self { value.clone() } @@ -7872,7 +7914,7 @@ pub mod types { } } - impl std::str::FromStr for PhysicalDiskType { + impl ::std::str::FromStr for PhysicalDiskType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7883,14 +7925,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for PhysicalDiskType { + impl ::std::convert::TryFrom<&str> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { + impl ::std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7899,7 +7941,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for PhysicalDiskType { + impl ::std::convert::TryFrom<::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7977,7 +8019,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Project> for Project { + impl ::std::convert::From<&Project> for Project { fn from(value: &Project) -> Self { value.clone() } @@ -8020,7 +8062,7 @@ pub mod types { pub name: Name, } - impl From<&ProjectCreate> for ProjectCreate { + impl ::std::convert::From<&ProjectCreate> for ProjectCreate { fn from(value: &ProjectCreate) -> Self { value.clone() } @@ -8072,7 +8114,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ProjectResultsPage> for ProjectResultsPage { + impl ::std::convert::From<&ProjectResultsPage> for ProjectResultsPage { fn from(value: &ProjectResultsPage) -> Self { value.clone() } @@ -8120,7 +8162,7 @@ pub mod types { Viewer, } - impl From<&ProjectRole> for ProjectRole { + impl ::std::convert::From<&ProjectRole> for ProjectRole { fn from(value: &ProjectRole) -> Self { value.clone() } @@ -8136,7 +8178,7 @@ pub mod types { } } - impl std::str::FromStr for ProjectRole { + impl ::std::str::FromStr for ProjectRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8148,14 +8190,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for ProjectRole { + impl ::std::convert::TryFrom<&str> for ProjectRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for ProjectRole { + impl ::std::convert::TryFrom<&::std::string::String> for ProjectRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8164,7 +8206,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for ProjectRole { + impl ::std::convert::TryFrom<::std::string::String> for ProjectRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8210,7 +8252,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&ProjectRolePolicy> for ProjectRolePolicy { + impl ::std::convert::From<&ProjectRolePolicy> for ProjectRolePolicy { fn from(value: &ProjectRolePolicy) -> Self { value.clone() } @@ -8266,7 +8308,7 @@ pub mod types { pub role_name: ProjectRole, } - impl From<&ProjectRoleRoleAssignment> for ProjectRoleRoleAssignment { + impl ::std::convert::From<&ProjectRoleRoleAssignment> for ProjectRoleRoleAssignment { fn from(value: &ProjectRoleRoleAssignment) -> Self { value.clone() } @@ -8321,12 +8363,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&ProjectUpdate> for ProjectUpdate { + impl ::std::convert::From<&ProjectUpdate> for ProjectUpdate { fn from(value: &ProjectUpdate) -> Self { value.clone() } } + impl ::std::default::Default for ProjectUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl ProjectUpdate { pub fn builder() -> builder::ProjectUpdate { Default::default() @@ -8377,7 +8428,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Rack> for Rack { + impl ::std::convert::From<&Rack> for Rack { fn from(value: &Rack) -> Self { value.clone() } @@ -8429,7 +8480,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RackResultsPage> for RackResultsPage { + impl ::std::convert::From<&RackResultsPage> for RackResultsPage { fn from(value: &RackResultsPage) -> Self { value.clone() } @@ -8470,7 +8521,7 @@ pub mod types { pub name: RoleName, } - impl From<&Role> for Role { + impl ::std::convert::From<&Role> for Role { fn from(value: &Role) -> Self { value.clone() } @@ -8498,6 +8549,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct RoleName(::std::string::String); impl ::std::ops::Deref for RoleName { type Target = ::std::string::String; @@ -8506,13 +8558,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: RoleName) -> Self { value.0 } } - impl From<&RoleName> for RoleName { + impl ::std::convert::From<&RoleName> for RoleName { fn from(value: &RoleName) -> Self { value.clone() } @@ -8613,7 +8665,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RoleResultsPage> for RoleResultsPage { + impl ::std::convert::From<&RoleResultsPage> for RoleResultsPage { fn from(value: &RoleResultsPage) -> Self { value.clone() } @@ -8743,19 +8795,19 @@ pub mod types { Subnet(Name), } - impl From<&RouteDestination> for RouteDestination { + impl ::std::convert::From<&RouteDestination> for RouteDestination { fn from(value: &RouteDestination) -> Self { value.clone() } } - impl From for RouteDestination { + impl ::std::convert::From for RouteDestination { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for RouteDestination { + impl ::std::convert::From for RouteDestination { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -8891,13 +8943,13 @@ pub mod types { InternetGateway(Name), } - impl From<&RouteTarget> for RouteTarget { + impl ::std::convert::From<&RouteTarget> for RouteTarget { fn from(value: &RouteTarget) -> Self { value.clone() } } - impl From for RouteTarget { + impl ::std::convert::From for RouteTarget { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } @@ -8998,7 +9050,7 @@ pub mod types { pub vpc_router_id: uuid::Uuid, } - impl From<&RouterRoute> for RouterRoute { + impl ::std::convert::From<&RouterRoute> for RouterRoute { fn from(value: &RouterRoute) -> Self { value.clone() } @@ -9049,7 +9101,7 @@ pub mod types { pub target: RouteTarget, } - impl From<&RouterRouteCreateParams> for RouterRouteCreateParams { + impl ::std::convert::From<&RouterRouteCreateParams> for RouterRouteCreateParams { fn from(value: &RouterRouteCreateParams) -> Self { value.clone() } @@ -9146,7 +9198,7 @@ pub mod types { Custom, } - impl From<&RouterRouteKind> for RouterRouteKind { + impl ::std::convert::From<&RouterRouteKind> for RouterRouteKind { fn from(value: &RouterRouteKind) -> Self { value.clone() } @@ -9163,7 +9215,7 @@ pub mod types { } } - impl std::str::FromStr for RouterRouteKind { + impl ::std::str::FromStr for RouterRouteKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9176,14 +9228,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for RouterRouteKind { + impl ::std::convert::TryFrom<&str> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for RouterRouteKind { + impl ::std::convert::TryFrom<&::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9192,7 +9244,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for RouterRouteKind { + impl ::std::convert::TryFrom<::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9241,7 +9293,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RouterRouteResultsPage> for RouterRouteResultsPage { + impl ::std::convert::From<&RouterRouteResultsPage> for RouterRouteResultsPage { fn from(value: &RouterRouteResultsPage) -> Self { value.clone() } @@ -9306,7 +9358,7 @@ pub mod types { pub target: RouteTarget, } - impl From<&RouterRouteUpdateParams> for RouterRouteUpdateParams { + impl ::std::convert::From<&RouterRouteUpdateParams> for RouterRouteUpdateParams { fn from(value: &RouterRouteUpdateParams) -> Self { value.clone() } @@ -9347,7 +9399,7 @@ pub mod types { pub state: SagaState, } - impl From<&Saga> for Saga { + impl ::std::convert::From<&Saga> for Saga { fn from(value: &Saga) -> Self { value.clone() } @@ -9469,7 +9521,7 @@ pub mod types { SubsagaCreateFailed { message: ::std::string::String }, } - impl From<&SagaErrorInfo> for SagaErrorInfo { + impl ::std::convert::From<&SagaErrorInfo> for SagaErrorInfo { fn from(value: &SagaErrorInfo) -> Self { value.clone() } @@ -9515,7 +9567,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SagaResultsPage> for SagaResultsPage { + impl ::std::convert::From<&SagaResultsPage> for SagaResultsPage { fn from(value: &SagaResultsPage) -> Self { value.clone() } @@ -9602,7 +9654,7 @@ pub mod types { }, } - impl From<&SagaState> for SagaState { + impl ::std::convert::From<&SagaState> for SagaState { fn from(value: &SagaState) -> Self { value.clone() } @@ -9723,7 +9775,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&SamlIdentityProvider> for SamlIdentityProvider { + impl ::std::convert::From<&SamlIdentityProvider> for SamlIdentityProvider { fn from(value: &SamlIdentityProvider) -> Self { value.clone() } @@ -9846,7 +9898,7 @@ pub mod types { pub technical_contact_email: ::std::string::String, } - impl From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { + impl ::std::convert::From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { fn from(value: &SamlIdentityProviderCreate) -> Self { value.clone() } @@ -9870,6 +9922,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct SemverVersion(::std::string::String); impl ::std::ops::Deref for SemverVersion { type Target = ::std::string::String; @@ -9878,13 +9931,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: SemverVersion) -> Self { value.0 } } - impl From<&SemverVersion> for SemverVersion { + impl ::std::convert::From<&SemverVersion> for SemverVersion { fn from(value: &SemverVersion) -> Self { value.clone() } @@ -9980,7 +10033,7 @@ pub mod types { ExternalApi, } - impl From<&ServiceUsingCertificate> for ServiceUsingCertificate { + impl ::std::convert::From<&ServiceUsingCertificate> for ServiceUsingCertificate { fn from(value: &ServiceUsingCertificate) -> Self { value.clone() } @@ -9994,7 +10047,7 @@ pub mod types { } } - impl std::str::FromStr for ServiceUsingCertificate { + impl ::std::str::FromStr for ServiceUsingCertificate { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10004,14 +10057,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<&str> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10020,7 +10073,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10111,7 +10164,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Silo> for Silo { + impl ::std::convert::From<&Silo> for Silo { fn from(value: &Silo) -> Self { value.clone() } @@ -10186,7 +10239,7 @@ pub mod types { pub name: Name, } - impl From<&SiloCreate> for SiloCreate { + impl ::std::convert::From<&SiloCreate> for SiloCreate { fn from(value: &SiloCreate) -> Self { value.clone() } @@ -10256,7 +10309,7 @@ pub mod types { LocalOnly, } - impl From<&SiloIdentityMode> for SiloIdentityMode { + impl ::std::convert::From<&SiloIdentityMode> for SiloIdentityMode { fn from(value: &SiloIdentityMode) -> Self { value.clone() } @@ -10271,7 +10324,7 @@ pub mod types { } } - impl std::str::FromStr for SiloIdentityMode { + impl ::std::str::FromStr for SiloIdentityMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10282,14 +10335,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SiloIdentityMode { + impl ::std::convert::TryFrom<&str> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { + impl ::std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10298,7 +10351,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SiloIdentityMode { + impl ::std::convert::TryFrom<::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10347,7 +10400,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SiloResultsPage> for SiloResultsPage { + impl ::std::convert::From<&SiloResultsPage> for SiloResultsPage { fn from(value: &SiloResultsPage) -> Self { value.clone() } @@ -10395,7 +10448,7 @@ pub mod types { Viewer, } - impl From<&SiloRole> for SiloRole { + impl ::std::convert::From<&SiloRole> for SiloRole { fn from(value: &SiloRole) -> Self { value.clone() } @@ -10411,7 +10464,7 @@ pub mod types { } } - impl std::str::FromStr for SiloRole { + impl ::std::str::FromStr for SiloRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10423,14 +10476,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SiloRole { + impl ::std::convert::TryFrom<&str> for SiloRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SiloRole { + impl ::std::convert::TryFrom<&::std::string::String> for SiloRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10439,7 +10492,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SiloRole { + impl ::std::convert::TryFrom<::std::string::String> for SiloRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10485,7 +10538,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&SiloRolePolicy> for SiloRolePolicy { + impl ::std::convert::From<&SiloRolePolicy> for SiloRolePolicy { fn from(value: &SiloRolePolicy) -> Self { value.clone() } @@ -10541,7 +10594,7 @@ pub mod types { pub role_name: SiloRole, } - impl From<&SiloRoleRoleAssignment> for SiloRoleRoleAssignment { + impl ::std::convert::From<&SiloRoleRoleAssignment> for SiloRoleRoleAssignment { fn from(value: &SiloRoleRoleAssignment) -> Self { value.clone() } @@ -10607,7 +10660,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Sled> for Sled { + impl ::std::convert::From<&Sled> for Sled { fn from(value: &Sled) -> Self { value.clone() } @@ -10659,7 +10712,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SledResultsPage> for SledResultsPage { + impl ::std::convert::From<&SledResultsPage> for SledResultsPage { fn from(value: &SledResultsPage) -> Self { value.clone() } @@ -10756,7 +10809,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Snapshot> for Snapshot { + impl ::std::convert::From<&Snapshot> for Snapshot { fn from(value: &Snapshot) -> Self { value.clone() } @@ -10810,7 +10863,7 @@ pub mod types { pub name: Name, } - impl From<&SnapshotCreate> for SnapshotCreate { + impl ::std::convert::From<&SnapshotCreate> for SnapshotCreate { fn from(value: &SnapshotCreate) -> Self { value.clone() } @@ -10862,7 +10915,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SnapshotResultsPage> for SnapshotResultsPage { + impl ::std::convert::From<&SnapshotResultsPage> for SnapshotResultsPage { fn from(value: &SnapshotResultsPage) -> Self { value.clone() } @@ -10913,7 +10966,7 @@ pub mod types { Destroyed, } - impl From<&SnapshotState> for SnapshotState { + impl ::std::convert::From<&SnapshotState> for SnapshotState { fn from(value: &SnapshotState) -> Self { value.clone() } @@ -10930,7 +10983,7 @@ pub mod types { } } - impl std::str::FromStr for SnapshotState { + impl ::std::str::FromStr for SnapshotState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10943,14 +10996,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SnapshotState { + impl ::std::convert::TryFrom<&str> for SnapshotState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SnapshotState { + impl ::std::convert::TryFrom<&::std::string::String> for SnapshotState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10959,7 +11012,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SnapshotState { + impl ::std::convert::TryFrom<::std::string::String> for SnapshotState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10991,7 +11044,7 @@ pub mod types { pub username: ::std::string::String, } - impl From<&SpoofLoginBody> for SpoofLoginBody { + impl ::std::convert::From<&SpoofLoginBody> for SpoofLoginBody { fn from(value: &SpoofLoginBody) -> Self { value.clone() } @@ -11082,7 +11135,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&SshKey> for SshKey { + impl ::std::convert::From<&SshKey> for SshKey { fn from(value: &SshKey) -> Self { value.clone() } @@ -11133,7 +11186,7 @@ pub mod types { pub public_key: ::std::string::String, } - impl From<&SshKeyCreate> for SshKeyCreate { + impl ::std::convert::From<&SshKeyCreate> for SshKeyCreate { fn from(value: &SshKeyCreate) -> Self { value.clone() } @@ -11185,7 +11238,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SshKeyResultsPage> for SshKeyResultsPage { + impl ::std::convert::From<&SshKeyResultsPage> for SshKeyResultsPage { fn from(value: &SshKeyResultsPage) -> Self { value.clone() } @@ -11233,7 +11286,7 @@ pub mod types { RamProvisioned, } - impl From<&SystemMetricName> for SystemMetricName { + impl ::std::convert::From<&SystemMetricName> for SystemMetricName { fn from(value: &SystemMetricName) -> Self { value.clone() } @@ -11249,7 +11302,7 @@ pub mod types { } } - impl std::str::FromStr for SystemMetricName { + impl ::std::str::FromStr for SystemMetricName { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11261,14 +11314,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SystemMetricName { + impl ::std::convert::TryFrom<&str> for SystemMetricName { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SystemMetricName { + impl ::std::convert::TryFrom<&::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11277,7 +11330,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SystemMetricName { + impl ::std::convert::TryFrom<::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11337,7 +11390,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&SystemUpdate> for SystemUpdate { + impl ::std::convert::From<&SystemUpdate> for SystemUpdate { fn from(value: &SystemUpdate) -> Self { value.clone() } @@ -11389,7 +11442,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { + impl ::std::convert::From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { fn from(value: &SystemUpdateResultsPage) -> Self { value.clone() } @@ -11424,7 +11477,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&SystemUpdateStart> for SystemUpdateStart { + impl ::std::convert::From<&SystemUpdateStart> for SystemUpdateStart { fn from(value: &SystemUpdateStart) -> Self { value.clone() } @@ -11464,7 +11517,7 @@ pub mod types { pub version_range: VersionRange, } - impl From<&SystemVersion> for SystemVersion { + impl ::std::convert::From<&SystemVersion> for SystemVersion { fn from(value: &SystemVersion) -> Self { value.clone() } @@ -11495,6 +11548,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct TimeseriesName(::std::string::String); impl ::std::ops::Deref for TimeseriesName { type Target = ::std::string::String; @@ -11503,13 +11557,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: TimeseriesName) -> Self { value.0 } } - impl From<&TimeseriesName> for TimeseriesName { + impl ::std::convert::From<&TimeseriesName> for TimeseriesName { fn from(value: &TimeseriesName) -> Self { value.clone() } @@ -11620,7 +11674,7 @@ pub mod types { pub timeseries_name: TimeseriesName, } - impl From<&TimeseriesSchema> for TimeseriesSchema { + impl ::std::convert::From<&TimeseriesSchema> for TimeseriesSchema { fn from(value: &TimeseriesSchema) -> Self { value.clone() } @@ -11672,7 +11726,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { + impl ::std::convert::From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { fn from(value: &TimeseriesSchemaResultsPage) -> Self { value.clone() } @@ -11740,7 +11794,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&UpdateDeployment> for UpdateDeployment { + impl ::std::convert::From<&UpdateDeployment> for UpdateDeployment { fn from(value: &UpdateDeployment) -> Self { value.clone() } @@ -11792,7 +11846,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { + impl ::std::convert::From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { fn from(value: &UpdateDeploymentResultsPage) -> Self { value.clone() } @@ -11863,7 +11917,7 @@ pub mod types { Steady, } - impl From<&UpdateStatus> for UpdateStatus { + impl ::std::convert::From<&UpdateStatus> for UpdateStatus { fn from(value: &UpdateStatus) -> Self { value.clone() } @@ -11878,7 +11932,7 @@ pub mod types { } } - impl std::str::FromStr for UpdateStatus { + impl ::std::str::FromStr for UpdateStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11889,14 +11943,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for UpdateStatus { + impl ::std::convert::TryFrom<&str> for UpdateStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for UpdateStatus { + impl ::std::convert::TryFrom<&::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11905,7 +11959,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for UpdateStatus { + impl ::std::convert::TryFrom<::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11985,7 +12039,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&UpdateableComponent> for UpdateableComponent { + impl ::std::convert::From<&UpdateableComponent> for UpdateableComponent { fn from(value: &UpdateableComponent) -> Self { value.clone() } @@ -12037,7 +12091,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { + impl ::std::convert::From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { fn from(value: &UpdateableComponentResultsPage) -> Self { value.clone() } @@ -12112,7 +12166,7 @@ pub mod types { HostOmicron, } - impl From<&UpdateableComponentType> for UpdateableComponentType { + impl ::std::convert::From<&UpdateableComponentType> for UpdateableComponentType { fn from(value: &UpdateableComponentType) -> Self { value.clone() } @@ -12137,7 +12191,7 @@ pub mod types { } } - impl std::str::FromStr for UpdateableComponentType { + impl ::std::str::FromStr for UpdateableComponentType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12158,14 +12212,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for UpdateableComponentType { + impl ::std::convert::TryFrom<&str> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { + impl ::std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12174,7 +12228,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for UpdateableComponentType { + impl ::std::convert::TryFrom<::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12223,7 +12277,7 @@ pub mod types { pub silo_id: uuid::Uuid, } - impl From<&User> for User { + impl ::std::convert::From<&User> for User { fn from(value: &User) -> Self { value.clone() } @@ -12298,7 +12352,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&UserBuiltin> for UserBuiltin { + impl ::std::convert::From<&UserBuiltin> for UserBuiltin { fn from(value: &UserBuiltin) -> Self { value.clone() } @@ -12350,7 +12404,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { + impl ::std::convert::From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { fn from(value: &UserBuiltinResultsPage) -> Self { value.clone() } @@ -12404,7 +12458,7 @@ pub mod types { pub password: UserPassword, } - impl From<&UserCreate> for UserCreate { + impl ::std::convert::From<&UserCreate> for UserCreate { fn from(value: &UserCreate) -> Self { value.clone() } @@ -12438,6 +12492,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct UserId(::std::string::String); impl ::std::ops::Deref for UserId { type Target = ::std::string::String; @@ -12446,13 +12501,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: UserId) -> Self { value.0 } } - impl From<&UserId> for UserId { + impl ::std::convert::From<&UserId> for UserId { fn from(value: &UserId) -> Self { value.clone() } @@ -12564,13 +12619,13 @@ pub mod types { InvalidPassword, } - impl From<&UserPassword> for UserPassword { + impl ::std::convert::From<&UserPassword> for UserPassword { fn from(value: &UserPassword) -> Self { value.clone() } } - impl From for UserPassword { + impl ::std::convert::From for UserPassword { fn from(value: Password) -> Self { Self::Password(value) } @@ -12616,7 +12671,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UserResultsPage> for UserResultsPage { + impl ::std::convert::From<&UserResultsPage> for UserResultsPage { fn from(value: &UserResultsPage) -> Self { value.clone() } @@ -12657,7 +12712,7 @@ pub mod types { pub username: UserId, } - impl From<&UsernamePasswordCredentials> for UsernamePasswordCredentials { + impl ::std::convert::From<&UsernamePasswordCredentials> for UsernamePasswordCredentials { fn from(value: &UsernamePasswordCredentials) -> Self { value.clone() } @@ -12697,7 +12752,7 @@ pub mod types { pub low: SemverVersion, } - impl From<&VersionRange> for VersionRange { + impl ::std::convert::From<&VersionRange> for VersionRange { fn from(value: &VersionRange) -> Self { value.clone() } @@ -12812,7 +12867,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Vpc> for Vpc { + impl ::std::convert::From<&Vpc> for Vpc { fn from(value: &Vpc) -> Self { value.clone() } @@ -12885,7 +12940,7 @@ pub mod types { pub name: Name, } - impl From<&VpcCreate> for VpcCreate { + impl ::std::convert::From<&VpcCreate> for VpcCreate { fn from(value: &VpcCreate) -> Self { value.clone() } @@ -13034,7 +13089,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcFirewallRule> for VpcFirewallRule { + impl ::std::convert::From<&VpcFirewallRule> for VpcFirewallRule { fn from(value: &VpcFirewallRule) -> Self { value.clone() } @@ -13079,7 +13134,7 @@ pub mod types { Deny, } - impl From<&VpcFirewallRuleAction> for VpcFirewallRuleAction { + impl ::std::convert::From<&VpcFirewallRuleAction> for VpcFirewallRuleAction { fn from(value: &VpcFirewallRuleAction) -> Self { value.clone() } @@ -13094,7 +13149,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleAction { + impl ::std::str::FromStr for VpcFirewallRuleAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13105,14 +13160,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13121,7 +13176,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13163,7 +13218,7 @@ pub mod types { Outbound, } - impl From<&VpcFirewallRuleDirection> for VpcFirewallRuleDirection { + impl ::std::convert::From<&VpcFirewallRuleDirection> for VpcFirewallRuleDirection { fn from(value: &VpcFirewallRuleDirection) -> Self { value.clone() } @@ -13178,7 +13233,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleDirection { + impl ::std::str::FromStr for VpcFirewallRuleDirection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13189,14 +13244,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13205,7 +13260,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13278,12 +13333,22 @@ pub mod types { pub protocols: ::std::option::Option<::std::vec::Vec>, } - impl From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { + impl ::std::convert::From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { fn from(value: &VpcFirewallRuleFilter) -> Self { value.clone() } } + impl ::std::default::Default for VpcFirewallRuleFilter { + fn default() -> Self { + Self { + hosts: Default::default(), + ports: Default::default(), + protocols: Default::default(), + } + } + } + impl VpcFirewallRuleFilter { pub fn builder() -> builder::VpcFirewallRuleFilter { Default::default() @@ -13425,19 +13490,19 @@ pub mod types { IpNet(IpNet), } - impl From<&VpcFirewallRuleHostFilter> for VpcFirewallRuleHostFilter { + impl ::std::convert::From<&VpcFirewallRuleHostFilter> for VpcFirewallRuleHostFilter { fn from(value: &VpcFirewallRuleHostFilter) -> Self { value.clone() } } - impl From for VpcFirewallRuleHostFilter { + impl ::std::convert::From for VpcFirewallRuleHostFilter { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for VpcFirewallRuleHostFilter { + impl ::std::convert::From for VpcFirewallRuleHostFilter { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -13481,7 +13546,7 @@ pub mod types { Icmp, } - impl From<&VpcFirewallRuleProtocol> for VpcFirewallRuleProtocol { + impl ::std::convert::From<&VpcFirewallRuleProtocol> for VpcFirewallRuleProtocol { fn from(value: &VpcFirewallRuleProtocol) -> Self { value.clone() } @@ -13497,7 +13562,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleProtocol { + impl ::std::str::FromStr for VpcFirewallRuleProtocol { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13509,14 +13574,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13525,7 +13590,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13567,7 +13632,7 @@ pub mod types { Enabled, } - impl From<&VpcFirewallRuleStatus> for VpcFirewallRuleStatus { + impl ::std::convert::From<&VpcFirewallRuleStatus> for VpcFirewallRuleStatus { fn from(value: &VpcFirewallRuleStatus) -> Self { value.clone() } @@ -13582,7 +13647,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleStatus { + impl ::std::str::FromStr for VpcFirewallRuleStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13593,14 +13658,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13609,7 +13674,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13749,19 +13814,19 @@ pub mod types { IpNet(IpNet), } - impl From<&VpcFirewallRuleTarget> for VpcFirewallRuleTarget { + impl ::std::convert::From<&VpcFirewallRuleTarget> for VpcFirewallRuleTarget { fn from(value: &VpcFirewallRuleTarget) -> Self { value.clone() } } - impl From for VpcFirewallRuleTarget { + impl ::std::convert::From for VpcFirewallRuleTarget { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for VpcFirewallRuleTarget { + impl ::std::convert::From for VpcFirewallRuleTarget { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -13870,7 +13935,7 @@ pub mod types { pub targets: ::std::vec::Vec, } - impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { + impl ::std::convert::From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { fn from(value: &VpcFirewallRuleUpdate) -> Self { value.clone() } @@ -13913,7 +13978,7 @@ pub mod types { pub rules: ::std::vec::Vec, } - impl From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { + impl ::std::convert::From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { fn from(value: &VpcFirewallRuleUpdateParams) -> Self { value.clone() } @@ -13952,7 +14017,7 @@ pub mod types { pub rules: ::std::vec::Vec, } - impl From<&VpcFirewallRules> for VpcFirewallRules { + impl ::std::convert::From<&VpcFirewallRules> for VpcFirewallRules { fn from(value: &VpcFirewallRules) -> Self { value.clone() } @@ -14004,7 +14069,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcResultsPage> for VpcResultsPage { + impl ::std::convert::From<&VpcResultsPage> for VpcResultsPage { fn from(value: &VpcResultsPage) -> Self { value.clone() } @@ -14094,7 +14159,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcRouter> for VpcRouter { + impl ::std::convert::From<&VpcRouter> for VpcRouter { fn from(value: &VpcRouter) -> Self { value.clone() } @@ -14137,7 +14202,7 @@ pub mod types { pub name: Name, } - impl From<&VpcRouterCreate> for VpcRouterCreate { + impl ::std::convert::From<&VpcRouterCreate> for VpcRouterCreate { fn from(value: &VpcRouterCreate) -> Self { value.clone() } @@ -14182,7 +14247,7 @@ pub mod types { Custom, } - impl From<&VpcRouterKind> for VpcRouterKind { + impl ::std::convert::From<&VpcRouterKind> for VpcRouterKind { fn from(value: &VpcRouterKind) -> Self { value.clone() } @@ -14197,7 +14262,7 @@ pub mod types { } } - impl std::str::FromStr for VpcRouterKind { + impl ::std::str::FromStr for VpcRouterKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -14208,14 +14273,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcRouterKind { + impl ::std::convert::TryFrom<&str> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcRouterKind { + impl ::std::convert::TryFrom<&::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -14224,7 +14289,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcRouterKind { + impl ::std::convert::TryFrom<::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -14273,7 +14338,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcRouterResultsPage> for VpcRouterResultsPage { + impl ::std::convert::From<&VpcRouterResultsPage> for VpcRouterResultsPage { fn from(value: &VpcRouterResultsPage) -> Self { value.clone() } @@ -14328,12 +14393,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcRouterUpdate> for VpcRouterUpdate { + impl ::std::convert::From<&VpcRouterUpdate> for VpcRouterUpdate { fn from(value: &VpcRouterUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcRouterUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl VpcRouterUpdate { pub fn builder() -> builder::VpcRouterUpdate { Default::default() @@ -14437,7 +14511,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcSubnet> for VpcSubnet { + impl ::std::convert::From<&VpcSubnet> for VpcSubnet { fn from(value: &VpcSubnet) -> Self { value.clone() } @@ -14523,7 +14597,7 @@ pub mod types { pub name: Name, } - impl From<&VpcSubnetCreate> for VpcSubnetCreate { + impl ::std::convert::From<&VpcSubnetCreate> for VpcSubnetCreate { fn from(value: &VpcSubnetCreate) -> Self { value.clone() } @@ -14575,7 +14649,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { + impl ::std::convert::From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { fn from(value: &VpcSubnetResultsPage) -> Self { value.clone() } @@ -14630,12 +14704,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcSubnetUpdate> for VpcSubnetUpdate { + impl ::std::convert::From<&VpcSubnetUpdate> for VpcSubnetUpdate { fn from(value: &VpcSubnetUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcSubnetUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + impl VpcSubnetUpdate { pub fn builder() -> builder::VpcSubnetUpdate { Default::default() @@ -14700,12 +14783,22 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcUpdate> for VpcUpdate { + impl ::std::convert::From<&VpcUpdate> for VpcUpdate { fn from(value: &VpcUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcUpdate { + fn default() -> Self { + Self { + description: Default::default(), + dns_name: Default::default(), + name: Default::default(), + } + } + } + impl VpcUpdate { pub fn builder() -> builder::VpcUpdate { Default::default() @@ -14721,7 +14814,7 @@ pub mod types { serial: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Baseboard { + impl ::std::default::Default for Baseboard { fn default() -> Self { Self { part: Err("no value supplied for part".to_string()), @@ -14734,8 +14827,8 @@ pub mod types { impl Baseboard { pub fn part(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.part = value .try_into() @@ -14744,8 +14837,8 @@ pub mod types { } pub fn revision(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.revision = value .try_into() @@ -14754,8 +14847,8 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.serial = value .try_into() @@ -14777,7 +14870,7 @@ pub mod types { } } - impl From for Baseboard { + impl ::std::convert::From for Baseboard { fn from(value: super::Baseboard) -> Self { Self { part: Ok(value.part), @@ -14793,7 +14886,7 @@ pub mod types { range: ::std::result::Result, } - impl Default for Bindouble { + impl ::std::default::Default for Bindouble { fn default() -> Self { Self { count: Err("no value supplied for count".to_string()), @@ -14805,8 +14898,8 @@ pub mod types { impl Bindouble { pub fn count(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.count = value .try_into() @@ -14815,8 +14908,8 @@ pub mod types { } pub fn range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.range = value .try_into() @@ -14837,7 +14930,7 @@ pub mod types { } } - impl From for Bindouble { + impl ::std::convert::From for Bindouble { fn from(value: super::Bindouble) -> Self { Self { count: Ok(value.count), @@ -14852,7 +14945,7 @@ pub mod types { range: ::std::result::Result, } - impl Default for Binint64 { + impl ::std::default::Default for Binint64 { fn default() -> Self { Self { count: Err("no value supplied for count".to_string()), @@ -14864,8 +14957,8 @@ pub mod types { impl Binint64 { pub fn count(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.count = value .try_into() @@ -14874,8 +14967,8 @@ pub mod types { } pub fn range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.range = value .try_into() @@ -14896,7 +14989,7 @@ pub mod types { } } - impl From for Binint64 { + impl ::std::convert::From for Binint64 { fn from(value: super::Binint64) -> Self { Self { count: Ok(value.count), @@ -14917,7 +15010,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Certificate { + impl ::std::default::Default for Certificate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -14933,8 +15026,8 @@ pub mod types { impl Certificate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -14943,8 +15036,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -14953,8 +15046,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -14963,8 +15056,8 @@ pub mod types { } pub fn service(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.service = value .try_into() @@ -14973,8 +15066,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -14983,8 +15076,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -15009,7 +15102,7 @@ pub mod types { } } - impl From for Certificate { + impl ::std::convert::From for Certificate { fn from(value: super::Certificate) -> Self { Self { description: Ok(value.description), @@ -15031,7 +15124,7 @@ pub mod types { service: ::std::result::Result, } - impl Default for CertificateCreate { + impl ::std::default::Default for CertificateCreate { fn default() -> Self { Self { cert: Err("no value supplied for cert".to_string()), @@ -15046,8 +15139,8 @@ pub mod types { impl CertificateCreate { pub fn cert(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.cert = value .try_into() @@ -15056,8 +15149,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -15066,8 +15159,8 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.key = value .try_into() @@ -15076,8 +15169,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -15086,8 +15179,8 @@ pub mod types { } pub fn service(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.service = value .try_into() @@ -15111,7 +15204,7 @@ pub mod types { } } - impl From for CertificateCreate { + impl ::std::convert::From for CertificateCreate { fn from(value: super::CertificateCreate) -> Self { Self { cert: Ok(value.cert), @@ -15133,7 +15226,7 @@ pub mod types { >, } - impl Default for CertificateResultsPage { + impl ::std::default::Default for CertificateResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -15145,8 +15238,8 @@ pub mod types { impl CertificateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -15155,8 +15248,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -15177,7 +15270,7 @@ pub mod types { } } - impl From for CertificateResultsPage { + impl ::std::convert::From for CertificateResultsPage { fn from(value: super::CertificateResultsPage) -> Self { Self { items: Ok(value.items), @@ -15198,7 +15291,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for ComponentUpdate { + impl ::std::default::Default for ComponentUpdate { fn default() -> Self { Self { component_type: Err("no value supplied for component_type".to_string()), @@ -15213,8 +15306,8 @@ pub mod types { impl ComponentUpdate { pub fn component_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.component_type = value.try_into().map_err(|e| { format!("error converting supplied value for component_type: {}", e) @@ -15223,8 +15316,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -15233,8 +15326,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -15243,8 +15336,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -15253,8 +15346,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -15278,7 +15371,7 @@ pub mod types { } } - impl From for ComponentUpdate { + impl ::std::convert::From for ComponentUpdate { fn from(value: super::ComponentUpdate) -> Self { Self { component_type: Ok(value.component_type), @@ -15302,7 +15395,7 @@ pub mod types { >, } - impl Default for ComponentUpdateResultsPage { + impl ::std::default::Default for ComponentUpdateResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -15314,8 +15407,8 @@ pub mod types { impl ComponentUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -15324,8 +15417,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -15346,7 +15439,7 @@ pub mod types { } } - impl From for ComponentUpdateResultsPage { + impl ::std::convert::From for ComponentUpdateResultsPage { fn from(value: super::ComponentUpdateResultsPage) -> Self { Self { items: Ok(value.items), @@ -15362,7 +15455,7 @@ pub mod types { value: ::std::result::Result, } - impl Default for Cumulativedouble { + impl ::std::default::Default for Cumulativedouble { fn default() -> Self { Self { start_time: Err("no value supplied for start_time".to_string()), @@ -15374,8 +15467,8 @@ pub mod types { impl Cumulativedouble { pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -15384,8 +15477,8 @@ pub mod types { } pub fn value(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.value = value .try_into() @@ -15406,7 +15499,7 @@ pub mod types { } } - impl From for Cumulativedouble { + impl ::std::convert::From for Cumulativedouble { fn from(value: super::Cumulativedouble) -> Self { Self { start_time: Ok(value.start_time), @@ -15422,7 +15515,7 @@ pub mod types { value: ::std::result::Result, } - impl Default for Cumulativeint64 { + impl ::std::default::Default for Cumulativeint64 { fn default() -> Self { Self { start_time: Err("no value supplied for start_time".to_string()), @@ -15434,8 +15527,8 @@ pub mod types { impl Cumulativeint64 { pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -15444,8 +15537,8 @@ pub mod types { } pub fn value(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.value = value .try_into() @@ -15466,7 +15559,7 @@ pub mod types { } } - impl From for Cumulativeint64 { + impl ::std::convert::From for Cumulativeint64 { fn from(value: super::Cumulativeint64) -> Self { Self { start_time: Ok(value.start_time), @@ -15481,7 +15574,7 @@ pub mod types { public_cert: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for DerEncodedKeyPair { + impl ::std::default::Default for DerEncodedKeyPair { fn default() -> Self { Self { private_key: Err("no value supplied for private_key".to_string()), @@ -15493,8 +15586,8 @@ pub mod types { impl DerEncodedKeyPair { pub fn private_key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.private_key = value .try_into() @@ -15503,8 +15596,8 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.public_cert = value .try_into() @@ -15525,7 +15618,7 @@ pub mod types { } } - impl From for DerEncodedKeyPair { + impl ::std::convert::From for DerEncodedKeyPair { fn from(value: super::DerEncodedKeyPair) -> Self { Self { private_key: Ok(value.private_key), @@ -15541,7 +15634,7 @@ pub mod types { grant_type: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for DeviceAccessTokenRequest { + impl ::std::default::Default for DeviceAccessTokenRequest { fn default() -> Self { Self { client_id: Err("no value supplied for client_id".to_string()), @@ -15554,8 +15647,8 @@ pub mod types { impl DeviceAccessTokenRequest { pub fn client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.client_id = value .try_into() @@ -15564,8 +15657,8 @@ pub mod types { } pub fn device_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device_code = value .try_into() @@ -15574,8 +15667,8 @@ pub mod types { } pub fn grant_type(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.grant_type = value .try_into() @@ -15597,7 +15690,7 @@ pub mod types { } } - impl From for DeviceAccessTokenRequest { + impl ::std::convert::From for DeviceAccessTokenRequest { fn from(value: super::DeviceAccessTokenRequest) -> Self { Self { client_id: Ok(value.client_id), @@ -15612,7 +15705,7 @@ pub mod types { client_id: ::std::result::Result, } - impl Default for DeviceAuthRequest { + impl ::std::default::Default for DeviceAuthRequest { fn default() -> Self { Self { client_id: Err("no value supplied for client_id".to_string()), @@ -15623,8 +15716,8 @@ pub mod types { impl DeviceAuthRequest { pub fn client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.client_id = value .try_into() @@ -15644,7 +15737,7 @@ pub mod types { } } - impl From for DeviceAuthRequest { + impl ::std::convert::From for DeviceAuthRequest { fn from(value: super::DeviceAuthRequest) -> Self { Self { client_id: Ok(value.client_id), @@ -15657,7 +15750,7 @@ pub mod types { user_code: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for DeviceAuthVerify { + impl ::std::default::Default for DeviceAuthVerify { fn default() -> Self { Self { user_code: Err("no value supplied for user_code".to_string()), @@ -15668,8 +15761,8 @@ pub mod types { impl DeviceAuthVerify { pub fn user_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.user_code = value .try_into() @@ -15689,7 +15782,7 @@ pub mod types { } } - impl From for DeviceAuthVerify { + impl ::std::convert::From for DeviceAuthVerify { fn from(value: super::DeviceAuthVerify) -> Self { Self { user_code: Ok(value.user_code), @@ -15717,7 +15810,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Disk { + impl ::std::default::Default for Disk { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -15739,8 +15832,8 @@ pub mod types { impl Disk { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -15749,8 +15842,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -15759,8 +15852,8 @@ pub mod types { } pub fn device_path(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device_path = value .try_into() @@ -15769,8 +15862,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -15779,8 +15872,8 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.image_id = value .try_into() @@ -15789,8 +15882,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -15799,8 +15892,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -15809,8 +15902,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -15819,8 +15912,8 @@ pub mod types { } pub fn snapshot_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.snapshot_id = value .try_into() @@ -15829,8 +15922,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -15839,8 +15932,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -15849,8 +15942,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -15879,7 +15972,7 @@ pub mod types { } } - impl From for Disk { + impl ::std::convert::From for Disk { fn from(value: super::Disk) -> Self { Self { block_size: Ok(value.block_size), @@ -15906,7 +15999,7 @@ pub mod types { size: ::std::result::Result, } - impl Default for DiskCreate { + impl ::std::default::Default for DiskCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -15920,8 +16013,8 @@ pub mod types { impl DiskCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -15930,8 +16023,8 @@ pub mod types { } pub fn disk_source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_source = value .try_into() @@ -15940,8 +16033,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -15950,8 +16043,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -15974,7 +16067,7 @@ pub mod types { } } - impl From for DiskCreate { + impl ::std::convert::From for DiskCreate { fn from(value: super::DiskCreate) -> Self { Self { description: Ok(value.description), @@ -15990,7 +16083,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for DiskIdentifier { + impl ::std::default::Default for DiskIdentifier { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -16001,8 +16094,8 @@ pub mod types { impl DiskIdentifier { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16020,7 +16113,7 @@ pub mod types { } } - impl From for DiskIdentifier { + impl ::std::convert::From for DiskIdentifier { fn from(value: super::DiskIdentifier) -> Self { Self { name: Ok(value.name), @@ -16033,7 +16126,7 @@ pub mod types { disk: ::std::result::Result, } - impl Default for DiskPath { + impl ::std::default::Default for DiskPath { fn default() -> Self { Self { disk: Err("no value supplied for disk".to_string()), @@ -16044,8 +16137,8 @@ pub mod types { impl DiskPath { pub fn disk(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk = value .try_into() @@ -16063,7 +16156,7 @@ pub mod types { } } - impl From for DiskPath { + impl ::std::convert::From for DiskPath { fn from(value: super::DiskPath) -> Self { Self { disk: Ok(value.disk), @@ -16080,7 +16173,7 @@ pub mod types { >, } - impl Default for DiskResultsPage { + impl ::std::default::Default for DiskResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -16092,8 +16185,8 @@ pub mod types { impl DiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -16102,8 +16195,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -16124,7 +16217,7 @@ pub mod types { } } - impl From for DiskResultsPage { + impl ::std::convert::From for DiskResultsPage { fn from(value: super::DiskResultsPage) -> Self { Self { items: Ok(value.items), @@ -16139,7 +16232,7 @@ pub mod types { version: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Distribution { + impl ::std::default::Default for Distribution { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -16151,8 +16244,8 @@ pub mod types { impl Distribution { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16161,8 +16254,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -16183,7 +16276,7 @@ pub mod types { } } - impl From for Distribution { + impl ::std::convert::From for Distribution { fn from(value: super::Distribution) -> Self { Self { name: Ok(value.name), @@ -16202,7 +16295,7 @@ pub mod types { request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Error { + impl ::std::default::Default for Error { fn default() -> Self { Self { error_code: Ok(Default::default()), @@ -16215,8 +16308,8 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.error_code = value .try_into() @@ -16225,8 +16318,8 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.message = value .try_into() @@ -16235,8 +16328,8 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.request_id = value .try_into() @@ -16258,7 +16351,7 @@ pub mod types { } } - impl From for Error { + impl ::std::convert::From for Error { fn from(value: super::Error) -> Self { Self { error_code: Ok(value.error_code), @@ -16274,7 +16367,7 @@ pub mod types { kind: ::std::result::Result, } - impl Default for ExternalIp { + impl ::std::default::Default for ExternalIp { fn default() -> Self { Self { ip: Err("no value supplied for ip".to_string()), @@ -16286,8 +16379,8 @@ pub mod types { impl ExternalIp { pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ip = value .try_into() @@ -16296,8 +16389,8 @@ pub mod types { } pub fn kind(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.kind = value .try_into() @@ -16318,7 +16411,7 @@ pub mod types { } } - impl From for ExternalIp { + impl ::std::convert::From for ExternalIp { fn from(value: super::ExternalIp) -> Self { Self { ip: Ok(value.ip), @@ -16336,7 +16429,7 @@ pub mod types { >, } - impl Default for ExternalIpResultsPage { + impl ::std::default::Default for ExternalIpResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -16348,8 +16441,8 @@ pub mod types { impl ExternalIpResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -16358,8 +16451,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -16380,7 +16473,7 @@ pub mod types { } } - impl From for ExternalIpResultsPage { + impl ::std::convert::From for ExternalIpResultsPage { fn from(value: super::ExternalIpResultsPage) -> Self { Self { items: Ok(value.items), @@ -16396,7 +16489,7 @@ pub mod types { ty: ::std::result::Result, } - impl Default for FieldSchema { + impl ::std::default::Default for FieldSchema { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -16409,8 +16502,8 @@ pub mod types { impl FieldSchema { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16419,8 +16512,8 @@ pub mod types { } pub fn source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.source = value .try_into() @@ -16429,8 +16522,8 @@ pub mod types { } pub fn ty(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ty = value .try_into() @@ -16452,7 +16545,7 @@ pub mod types { } } - impl From for FieldSchema { + impl ::std::convert::From for FieldSchema { fn from(value: super::FieldSchema) -> Self { Self { name: Ok(value.name), @@ -16470,7 +16563,7 @@ pub mod types { >, } - impl Default for FleetRolePolicy { + impl ::std::default::Default for FleetRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -16481,8 +16574,8 @@ pub mod types { impl FleetRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -16505,7 +16598,7 @@ pub mod types { } } - impl From for FleetRolePolicy { + impl ::std::convert::From for FleetRolePolicy { fn from(value: super::FleetRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -16520,7 +16613,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for FleetRoleRoleAssignment { + impl ::std::default::Default for FleetRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -16533,8 +16626,8 @@ pub mod types { impl FleetRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -16543,8 +16636,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -16553,8 +16646,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -16576,7 +16669,7 @@ pub mod types { } } - impl From for FleetRoleRoleAssignment { + impl ::std::convert::From for FleetRoleRoleAssignment { fn from(value: super::FleetRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -16607,7 +16700,7 @@ pub mod types { version: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for GlobalImage { + impl ::std::default::Default for GlobalImage { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -16628,8 +16721,8 @@ pub mod types { impl GlobalImage { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -16638,8 +16731,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -16648,8 +16741,8 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.digest = value .try_into() @@ -16658,8 +16751,8 @@ pub mod types { } pub fn distribution(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.distribution = value.try_into().map_err(|e| { format!("error converting supplied value for distribution: {}", e) @@ -16668,8 +16761,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -16678,8 +16771,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16688,8 +16781,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -16698,8 +16791,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -16708,8 +16801,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -16718,8 +16811,8 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.url = value .try_into() @@ -16728,8 +16821,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -16759,7 +16852,7 @@ pub mod types { } } - impl From for GlobalImage { + impl ::std::convert::From for GlobalImage { fn from(value: super::GlobalImage) -> Self { Self { block_size: Ok(value.block_size), @@ -16786,7 +16879,7 @@ pub mod types { source: ::std::result::Result, } - impl Default for GlobalImageCreate { + impl ::std::default::Default for GlobalImageCreate { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -16801,8 +16894,8 @@ pub mod types { impl GlobalImageCreate { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -16811,8 +16904,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -16821,8 +16914,8 @@ pub mod types { } pub fn distribution(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.distribution = value.try_into().map_err(|e| { format!("error converting supplied value for distribution: {}", e) @@ -16831,8 +16924,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -16841,8 +16934,8 @@ pub mod types { } pub fn source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.source = value .try_into() @@ -16866,7 +16959,7 @@ pub mod types { } } - impl From for GlobalImageCreate { + impl ::std::convert::From for GlobalImageCreate { fn from(value: super::GlobalImageCreate) -> Self { Self { block_size: Ok(value.block_size), @@ -16888,7 +16981,7 @@ pub mod types { >, } - impl Default for GlobalImageResultsPage { + impl ::std::default::Default for GlobalImageResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -16900,8 +16993,8 @@ pub mod types { impl GlobalImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -16910,8 +17003,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -16932,7 +17025,7 @@ pub mod types { } } - impl From for GlobalImageResultsPage { + impl ::std::convert::From for GlobalImageResultsPage { fn from(value: super::GlobalImageResultsPage) -> Self { Self { items: Ok(value.items), @@ -16948,7 +17041,7 @@ pub mod types { silo_id: ::std::result::Result, } - impl Default for Group { + impl ::std::default::Default for Group { fn default() -> Self { Self { display_name: Err("no value supplied for display_name".to_string()), @@ -16961,8 +17054,8 @@ pub mod types { impl Group { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { format!("error converting supplied value for display_name: {}", e) @@ -16971,8 +17064,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -16981,8 +17074,8 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.silo_id = value .try_into() @@ -17004,7 +17097,7 @@ pub mod types { } } - impl From for Group { + impl ::std::convert::From for Group { fn from(value: super::Group) -> Self { Self { display_name: Ok(value.display_name), @@ -17023,7 +17116,7 @@ pub mod types { >, } - impl Default for GroupResultsPage { + impl ::std::default::Default for GroupResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -17035,8 +17128,8 @@ pub mod types { impl GroupResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -17045,8 +17138,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -17067,7 +17160,7 @@ pub mod types { } } - impl From for GroupResultsPage { + impl ::std::convert::From for GroupResultsPage { fn from(value: super::GroupResultsPage) -> Self { Self { items: Ok(value.items), @@ -17084,7 +17177,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Histogramdouble { + impl ::std::default::Default for Histogramdouble { fn default() -> Self { Self { bins: Err("no value supplied for bins".to_string()), @@ -17097,8 +17190,8 @@ pub mod types { impl Histogramdouble { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.bins = value .try_into() @@ -17107,8 +17200,8 @@ pub mod types { } pub fn n_samples(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.n_samples = value .try_into() @@ -17117,8 +17210,8 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -17140,7 +17233,7 @@ pub mod types { } } - impl From for Histogramdouble { + impl ::std::convert::From for Histogramdouble { fn from(value: super::Histogramdouble) -> Self { Self { bins: Ok(value.bins), @@ -17158,7 +17251,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Histogramint64 { + impl ::std::default::Default for Histogramint64 { fn default() -> Self { Self { bins: Err("no value supplied for bins".to_string()), @@ -17171,8 +17264,8 @@ pub mod types { impl Histogramint64 { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.bins = value .try_into() @@ -17181,8 +17274,8 @@ pub mod types { } pub fn n_samples(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.n_samples = value .try_into() @@ -17191,8 +17284,8 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.start_time = value .try_into() @@ -17214,7 +17307,7 @@ pub mod types { } } - impl From for Histogramint64 { + impl ::std::convert::From for Histogramint64 { fn from(value: super::Histogramint64) -> Self { Self { bins: Ok(value.bins), @@ -17237,7 +17330,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for IdentityProvider { + impl ::std::default::Default for IdentityProvider { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -17253,8 +17346,8 @@ pub mod types { impl IdentityProvider { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17263,8 +17356,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17273,8 +17366,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17283,8 +17376,8 @@ pub mod types { } pub fn provider_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.provider_type = value.try_into().map_err(|e| { format!("error converting supplied value for provider_type: {}", e) @@ -17293,8 +17386,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -17303,8 +17396,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -17329,7 +17422,7 @@ pub mod types { } } - impl From for IdentityProvider { + impl ::std::convert::From for IdentityProvider { fn from(value: super::IdentityProvider) -> Self { Self { description: Ok(value.description), @@ -17354,7 +17447,7 @@ pub mod types { >, } - impl Default for IdentityProviderResultsPage { + impl ::std::default::Default for IdentityProviderResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -17366,8 +17459,8 @@ pub mod types { impl IdentityProviderResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -17376,8 +17469,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -17398,7 +17491,7 @@ pub mod types { } } - impl From for IdentityProviderResultsPage { + impl ::std::convert::From for IdentityProviderResultsPage { fn from(value: super::IdentityProviderResultsPage) -> Self { Self { items: Ok(value.items), @@ -17431,7 +17524,7 @@ pub mod types { >, } - impl Default for Image { + impl ::std::default::Default for Image { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -17452,8 +17545,8 @@ pub mod types { impl Image { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -17462,8 +17555,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17472,8 +17565,8 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.digest = value .try_into() @@ -17482,8 +17575,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17492,8 +17585,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17502,8 +17595,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -17512,8 +17605,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -17522,8 +17615,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -17532,8 +17625,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -17542,8 +17635,8 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.url = value .try_into() @@ -17552,8 +17645,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -17583,7 +17676,7 @@ pub mod types { } } - impl From for Image { + impl ::std::convert::From for Image { fn from(value: super::Image) -> Self { Self { block_size: Ok(value.block_size), @@ -17609,7 +17702,7 @@ pub mod types { source: ::std::result::Result, } - impl Default for ImageCreate { + impl ::std::default::Default for ImageCreate { fn default() -> Self { Self { block_size: Err("no value supplied for block_size".to_string()), @@ -17623,8 +17716,8 @@ pub mod types { impl ImageCreate { pub fn block_size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.block_size = value .try_into() @@ -17633,8 +17726,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17643,8 +17736,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17653,8 +17746,8 @@ pub mod types { } pub fn source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.source = value .try_into() @@ -17677,7 +17770,7 @@ pub mod types { } } - impl From for ImageCreate { + impl ::std::convert::From for ImageCreate { fn from(value: super::ImageCreate) -> Self { Self { block_size: Ok(value.block_size), @@ -17697,7 +17790,7 @@ pub mod types { >, } - impl Default for ImageResultsPage { + impl ::std::default::Default for ImageResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -17709,8 +17802,8 @@ pub mod types { impl ImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -17719,8 +17812,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -17741,7 +17834,7 @@ pub mod types { } } - impl From for ImageResultsPage { + impl ::std::convert::From for ImageResultsPage { fn from(value: super::ImageResultsPage) -> Self { Self { items: Ok(value.items), @@ -17768,7 +17861,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Instance { + impl ::std::default::Default for Instance { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -17791,8 +17884,8 @@ pub mod types { impl Instance { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17801,8 +17894,8 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.hostname = value .try_into() @@ -17811,8 +17904,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -17821,8 +17914,8 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.memory = value .try_into() @@ -17831,8 +17924,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -17841,8 +17934,8 @@ pub mod types { } pub fn ncpus(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ncpus = value .try_into() @@ -17851,8 +17944,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -17861,8 +17954,8 @@ pub mod types { } pub fn run_state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.run_state = value .try_into() @@ -17871,8 +17964,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -17881,8 +17974,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -17891,8 +17984,8 @@ pub mod types { } pub fn time_run_state_updated(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_run_state_updated = value.try_into().map_err(|e| { format!( @@ -17925,7 +18018,7 @@ pub mod types { } } - impl From for Instance { + impl ::std::convert::From for Instance { fn from(value: super::Instance) -> Self { Self { description: Ok(value.description), @@ -17966,7 +18059,7 @@ pub mod types { user_data: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for InstanceCreate { + impl ::std::default::Default for InstanceCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -17986,8 +18079,8 @@ pub mod types { impl InstanceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -17996,8 +18089,8 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.disks = value .try_into() @@ -18006,8 +18099,8 @@ pub mod types { } pub fn external_ips(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.external_ips = value.try_into().map_err(|e| { format!("error converting supplied value for external_ips: {}", e) @@ -18016,8 +18109,8 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.hostname = value .try_into() @@ -18026,8 +18119,8 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.memory = value .try_into() @@ -18036,8 +18129,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18046,8 +18139,8 @@ pub mod types { } pub fn ncpus(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ncpus = value .try_into() @@ -18056,8 +18149,8 @@ pub mod types { } pub fn network_interfaces(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.network_interfaces = value.try_into().map_err(|e| { format!( @@ -18069,8 +18162,8 @@ pub mod types { } pub fn start(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.start = value .try_into() @@ -18079,8 +18172,8 @@ pub mod types { } pub fn user_data(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.user_data = value .try_into() @@ -18109,7 +18202,7 @@ pub mod types { } } - impl From for InstanceCreate { + impl ::std::convert::From for InstanceCreate { fn from(value: super::InstanceCreate) -> Self { Self { description: Ok(value.description), @@ -18131,7 +18224,7 @@ pub mod types { dst_sled_id: ::std::result::Result, } - impl Default for InstanceMigrate { + impl ::std::default::Default for InstanceMigrate { fn default() -> Self { Self { dst_sled_id: Err("no value supplied for dst_sled_id".to_string()), @@ -18142,8 +18235,8 @@ pub mod types { impl InstanceMigrate { pub fn dst_sled_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.dst_sled_id = value .try_into() @@ -18163,7 +18256,7 @@ pub mod types { } } - impl From for InstanceMigrate { + impl ::std::convert::From for InstanceMigrate { fn from(value: super::InstanceMigrate) -> Self { Self { dst_sled_id: Ok(value.dst_sled_id), @@ -18180,7 +18273,7 @@ pub mod types { >, } - impl Default for InstanceResultsPage { + impl ::std::default::Default for InstanceResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18192,8 +18285,8 @@ pub mod types { impl InstanceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -18202,8 +18295,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -18224,7 +18317,7 @@ pub mod types { } } - impl From for InstanceResultsPage { + impl ::std::convert::From for InstanceResultsPage { fn from(value: super::InstanceResultsPage) -> Self { Self { items: Ok(value.items), @@ -18239,7 +18332,7 @@ pub mod types { last_byte_offset: ::std::result::Result, } - impl Default for InstanceSerialConsoleData { + impl ::std::default::Default for InstanceSerialConsoleData { fn default() -> Self { Self { data: Err("no value supplied for data".to_string()), @@ -18251,8 +18344,8 @@ pub mod types { impl InstanceSerialConsoleData { pub fn data(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.data = value .try_into() @@ -18261,8 +18354,8 @@ pub mod types { } pub fn last_byte_offset(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.last_byte_offset = value.try_into().map_err(|e| { format!( @@ -18286,7 +18379,7 @@ pub mod types { } } - impl From for InstanceSerialConsoleData { + impl ::std::convert::From for InstanceSerialConsoleData { fn from(value: super::InstanceSerialConsoleData) -> Self { Self { data: Ok(value.data), @@ -18306,7 +18399,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for IpPool { + impl ::std::default::Default for IpPool { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18321,8 +18414,8 @@ pub mod types { impl IpPool { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18331,8 +18424,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -18341,8 +18434,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18351,8 +18444,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -18361,8 +18454,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -18386,7 +18479,7 @@ pub mod types { } } - impl From for IpPool { + impl ::std::convert::From for IpPool { fn from(value: super::IpPool) -> Self { Self { description: Ok(value.description), @@ -18404,7 +18497,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for IpPoolCreate { + impl ::std::default::Default for IpPoolCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18416,8 +18509,8 @@ pub mod types { impl IpPoolCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18426,8 +18519,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18448,7 +18541,7 @@ pub mod types { } } - impl From for IpPoolCreate { + impl ::std::convert::From for IpPoolCreate { fn from(value: super::IpPoolCreate) -> Self { Self { description: Ok(value.description), @@ -18465,7 +18558,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for IpPoolRange { + impl ::std::default::Default for IpPoolRange { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -18478,8 +18571,8 @@ pub mod types { impl IpPoolRange { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -18488,8 +18581,8 @@ pub mod types { } pub fn range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.range = value .try_into() @@ -18498,8 +18591,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -18521,7 +18614,7 @@ pub mod types { } } - impl From for IpPoolRange { + impl ::std::convert::From for IpPoolRange { fn from(value: super::IpPoolRange) -> Self { Self { id: Ok(value.id), @@ -18541,7 +18634,7 @@ pub mod types { >, } - impl Default for IpPoolRangeResultsPage { + impl ::std::default::Default for IpPoolRangeResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18553,8 +18646,8 @@ pub mod types { impl IpPoolRangeResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -18563,8 +18656,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -18585,7 +18678,7 @@ pub mod types { } } - impl From for IpPoolRangeResultsPage { + impl ::std::convert::From for IpPoolRangeResultsPage { fn from(value: super::IpPoolRangeResultsPage) -> Self { Self { items: Ok(value.items), @@ -18603,7 +18696,7 @@ pub mod types { >, } - impl Default for IpPoolResultsPage { + impl ::std::default::Default for IpPoolResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18615,8 +18708,8 @@ pub mod types { impl IpPoolResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -18625,8 +18718,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -18647,7 +18740,7 @@ pub mod types { } } - impl From for IpPoolResultsPage { + impl ::std::convert::From for IpPoolResultsPage { fn from(value: super::IpPoolResultsPage) -> Self { Self { items: Ok(value.items), @@ -18665,7 +18758,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for IpPoolUpdate { + impl ::std::default::Default for IpPoolUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -18677,8 +18770,8 @@ pub mod types { impl IpPoolUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -18687,8 +18780,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -18709,7 +18802,7 @@ pub mod types { } } - impl From for IpPoolUpdate { + impl ::std::convert::From for IpPoolUpdate { fn from(value: super::IpPoolUpdate) -> Self { Self { description: Ok(value.description), @@ -18724,7 +18817,7 @@ pub mod types { last: ::std::result::Result, } - impl Default for Ipv4Range { + impl ::std::default::Default for Ipv4Range { fn default() -> Self { Self { first: Err("no value supplied for first".to_string()), @@ -18736,8 +18829,8 @@ pub mod types { impl Ipv4Range { pub fn first(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.first = value .try_into() @@ -18746,8 +18839,8 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.last = value .try_into() @@ -18768,7 +18861,7 @@ pub mod types { } } - impl From for Ipv4Range { + impl ::std::convert::From for Ipv4Range { fn from(value: super::Ipv4Range) -> Self { Self { first: Ok(value.first), @@ -18783,7 +18876,7 @@ pub mod types { last: ::std::result::Result, } - impl Default for Ipv6Range { + impl ::std::default::Default for Ipv6Range { fn default() -> Self { Self { first: Err("no value supplied for first".to_string()), @@ -18795,8 +18888,8 @@ pub mod types { impl Ipv6Range { pub fn first(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.first = value .try_into() @@ -18805,8 +18898,8 @@ pub mod types { } pub fn last(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.last = value .try_into() @@ -18827,7 +18920,7 @@ pub mod types { } } - impl From for Ipv6Range { + impl ::std::convert::From for Ipv6Range { fn from(value: super::Ipv6Range) -> Self { Self { first: Ok(value.first), @@ -18843,7 +18936,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Measurement { + impl ::std::default::Default for Measurement { fn default() -> Self { Self { datum: Err("no value supplied for datum".to_string()), @@ -18855,8 +18948,8 @@ pub mod types { impl Measurement { pub fn datum(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.datum = value .try_into() @@ -18865,8 +18958,8 @@ pub mod types { } pub fn timestamp(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.timestamp = value .try_into() @@ -18887,7 +18980,7 @@ pub mod types { } } - impl From for Measurement { + impl ::std::convert::From for Measurement { fn from(value: super::Measurement) -> Self { Self { datum: Ok(value.datum), @@ -18906,7 +18999,7 @@ pub mod types { >, } - impl Default for MeasurementResultsPage { + impl ::std::default::Default for MeasurementResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -18918,8 +19011,8 @@ pub mod types { impl MeasurementResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -18928,8 +19021,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -18950,7 +19043,7 @@ pub mod types { } } - impl From for MeasurementResultsPage { + impl ::std::convert::From for MeasurementResultsPage { fn from(value: super::MeasurementResultsPage) -> Self { Self { items: Ok(value.items), @@ -18976,7 +19069,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for NetworkInterface { + impl ::std::default::Default for NetworkInterface { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -18997,8 +19090,8 @@ pub mod types { impl NetworkInterface { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19007,8 +19100,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -19017,8 +19110,8 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.instance_id = value .try_into() @@ -19027,8 +19120,8 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ip = value .try_into() @@ -19037,8 +19130,8 @@ pub mod types { } pub fn mac(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.mac = value .try_into() @@ -19047,8 +19140,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19057,8 +19150,8 @@ pub mod types { } pub fn primary(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.primary = value .try_into() @@ -19067,8 +19160,8 @@ pub mod types { } pub fn subnet_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.subnet_id = value .try_into() @@ -19077,8 +19170,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -19087,8 +19180,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -19097,8 +19190,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -19128,7 +19221,7 @@ pub mod types { } } - impl From for NetworkInterface { + impl ::std::convert::From for NetworkInterface { fn from(value: super::NetworkInterface) -> Self { Self { description: Ok(value.description), @@ -19158,7 +19251,7 @@ pub mod types { vpc_name: ::std::result::Result, } - impl Default for NetworkInterfaceCreate { + impl ::std::default::Default for NetworkInterfaceCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19173,8 +19266,8 @@ pub mod types { impl NetworkInterfaceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19183,8 +19276,8 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.ip = value .try_into() @@ -19193,8 +19286,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19203,8 +19296,8 @@ pub mod types { } pub fn subnet_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.subnet_name = value .try_into() @@ -19213,8 +19306,8 @@ pub mod types { } pub fn vpc_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_name = value .try_into() @@ -19238,7 +19331,7 @@ pub mod types { } } - impl From for NetworkInterfaceCreate { + impl ::std::convert::From for NetworkInterfaceCreate { fn from(value: super::NetworkInterfaceCreate) -> Self { Self { description: Ok(value.description), @@ -19262,7 +19355,7 @@ pub mod types { >, } - impl Default for NetworkInterfaceResultsPage { + impl ::std::default::Default for NetworkInterfaceResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -19274,8 +19367,8 @@ pub mod types { impl NetworkInterfaceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19284,8 +19377,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -19306,7 +19399,7 @@ pub mod types { } } - impl From for NetworkInterfaceResultsPage { + impl ::std::convert::From for NetworkInterfaceResultsPage { fn from(value: super::NetworkInterfaceResultsPage) -> Self { Self { items: Ok(value.items), @@ -19325,7 +19418,7 @@ pub mod types { primary: ::std::result::Result, } - impl Default for NetworkInterfaceUpdate { + impl ::std::default::Default for NetworkInterfaceUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -19338,8 +19431,8 @@ pub mod types { impl NetworkInterfaceUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19348,8 +19441,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19358,8 +19451,8 @@ pub mod types { } pub fn primary(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.primary = value .try_into() @@ -19381,7 +19474,7 @@ pub mod types { } } - impl From for NetworkInterfaceUpdate { + impl ::std::convert::From for NetworkInterfaceUpdate { fn from(value: super::NetworkInterfaceUpdate) -> Self { Self { description: Ok(value.description), @@ -19402,7 +19495,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Organization { + impl ::std::default::Default for Organization { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19417,8 +19510,8 @@ pub mod types { impl Organization { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19427,8 +19520,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -19437,8 +19530,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19447,8 +19540,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -19457,8 +19550,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -19482,7 +19575,7 @@ pub mod types { } } - impl From for Organization { + impl ::std::convert::From for Organization { fn from(value: super::Organization) -> Self { Self { description: Ok(value.description), @@ -19500,7 +19593,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for OrganizationCreate { + impl ::std::default::Default for OrganizationCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -19512,8 +19605,8 @@ pub mod types { impl OrganizationCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19522,8 +19615,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19544,7 +19637,7 @@ pub mod types { } } - impl From for OrganizationCreate { + impl ::std::convert::From for OrganizationCreate { fn from(value: super::OrganizationCreate) -> Self { Self { description: Ok(value.description), @@ -19563,7 +19656,7 @@ pub mod types { >, } - impl Default for OrganizationResultsPage { + impl ::std::default::Default for OrganizationResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -19575,8 +19668,8 @@ pub mod types { impl OrganizationResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19585,8 +19678,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -19607,7 +19700,7 @@ pub mod types { } } - impl From for OrganizationResultsPage { + impl ::std::convert::From for OrganizationResultsPage { fn from(value: super::OrganizationResultsPage) -> Self { Self { items: Ok(value.items), @@ -19624,7 +19717,7 @@ pub mod types { >, } - impl Default for OrganizationRolePolicy { + impl ::std::default::Default for OrganizationRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -19635,8 +19728,8 @@ pub mod types { impl OrganizationRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -19659,7 +19752,7 @@ pub mod types { } } - impl From for OrganizationRolePolicy { + impl ::std::convert::From for OrganizationRolePolicy { fn from(value: super::OrganizationRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -19674,7 +19767,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for OrganizationRoleRoleAssignment { + impl ::std::default::Default for OrganizationRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -19687,8 +19780,8 @@ pub mod types { impl OrganizationRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -19697,8 +19790,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -19707,8 +19800,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -19732,7 +19825,9 @@ pub mod types { } } - impl From for OrganizationRoleRoleAssignment { + impl ::std::convert::From + for OrganizationRoleRoleAssignment + { fn from(value: super::OrganizationRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -19751,7 +19846,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for OrganizationUpdate { + impl ::std::default::Default for OrganizationUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -19763,8 +19858,8 @@ pub mod types { impl OrganizationUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -19773,8 +19868,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -19795,7 +19890,7 @@ pub mod types { } } - impl From for OrganizationUpdate { + impl ::std::convert::From for OrganizationUpdate { fn from(value: super::OrganizationUpdate) -> Self { Self { description: Ok(value.description), @@ -19819,7 +19914,7 @@ pub mod types { vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for PhysicalDisk { + impl ::std::default::Default for PhysicalDisk { fn default() -> Self { Self { disk_type: Err("no value supplied for disk_type".to_string()), @@ -19837,8 +19932,8 @@ pub mod types { impl PhysicalDisk { pub fn disk_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_type = value .try_into() @@ -19847,8 +19942,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -19857,8 +19952,8 @@ pub mod types { } pub fn model(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.model = value .try_into() @@ -19867,8 +19962,8 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.serial = value .try_into() @@ -19877,8 +19972,8 @@ pub mod types { } pub fn sled_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.sled_id = value .try_into() @@ -19887,8 +19982,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -19897,8 +19992,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -19907,8 +20002,8 @@ pub mod types { } pub fn vendor(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.vendor = value .try_into() @@ -19935,7 +20030,7 @@ pub mod types { } } - impl From for PhysicalDisk { + impl ::std::convert::From for PhysicalDisk { fn from(value: super::PhysicalDisk) -> Self { Self { disk_type: Ok(value.disk_type), @@ -19960,7 +20055,7 @@ pub mod types { >, } - impl Default for PhysicalDiskResultsPage { + impl ::std::default::Default for PhysicalDiskResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -19972,8 +20067,8 @@ pub mod types { impl PhysicalDiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -19982,8 +20077,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20004,7 +20099,7 @@ pub mod types { } } - impl From for PhysicalDiskResultsPage { + impl ::std::convert::From for PhysicalDiskResultsPage { fn from(value: super::PhysicalDiskResultsPage) -> Self { Self { items: Ok(value.items), @@ -20025,7 +20120,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Project { + impl ::std::default::Default for Project { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20041,8 +20136,8 @@ pub mod types { impl Project { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20051,8 +20146,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -20061,8 +20156,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20071,8 +20166,8 @@ pub mod types { } pub fn organization_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.organization_id = value.try_into().map_err(|e| { format!("error converting supplied value for organization_id: {}", e) @@ -20081,8 +20176,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -20091,8 +20186,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -20117,7 +20212,7 @@ pub mod types { } } - impl From for Project { + impl ::std::convert::From for Project { fn from(value: super::Project) -> Self { Self { description: Ok(value.description), @@ -20136,7 +20231,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for ProjectCreate { + impl ::std::default::Default for ProjectCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20148,8 +20243,8 @@ pub mod types { impl ProjectCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20158,8 +20253,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20180,7 +20275,7 @@ pub mod types { } } - impl From for ProjectCreate { + impl ::std::convert::From for ProjectCreate { fn from(value: super::ProjectCreate) -> Self { Self { description: Ok(value.description), @@ -20198,7 +20293,7 @@ pub mod types { >, } - impl Default for ProjectResultsPage { + impl ::std::default::Default for ProjectResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20210,8 +20305,8 @@ pub mod types { impl ProjectResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20220,8 +20315,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20242,7 +20337,7 @@ pub mod types { } } - impl From for ProjectResultsPage { + impl ::std::convert::From for ProjectResultsPage { fn from(value: super::ProjectResultsPage) -> Self { Self { items: Ok(value.items), @@ -20259,7 +20354,7 @@ pub mod types { >, } - impl Default for ProjectRolePolicy { + impl ::std::default::Default for ProjectRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -20270,8 +20365,8 @@ pub mod types { impl ProjectRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -20294,7 +20389,7 @@ pub mod types { } } - impl From for ProjectRolePolicy { + impl ::std::convert::From for ProjectRolePolicy { fn from(value: super::ProjectRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -20309,7 +20404,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for ProjectRoleRoleAssignment { + impl ::std::default::Default for ProjectRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -20322,8 +20417,8 @@ pub mod types { impl ProjectRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -20332,8 +20427,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -20342,8 +20437,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -20365,7 +20460,7 @@ pub mod types { } } - impl From for ProjectRoleRoleAssignment { + impl ::std::convert::From for ProjectRoleRoleAssignment { fn from(value: super::ProjectRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -20384,7 +20479,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for ProjectUpdate { + impl ::std::default::Default for ProjectUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -20396,8 +20491,8 @@ pub mod types { impl ProjectUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20406,8 +20501,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20428,7 +20523,7 @@ pub mod types { } } - impl From for ProjectUpdate { + impl ::std::convert::From for ProjectUpdate { fn from(value: super::ProjectUpdate) -> Self { Self { description: Ok(value.description), @@ -20446,7 +20541,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Rack { + impl ::std::default::Default for Rack { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -20459,8 +20554,8 @@ pub mod types { impl Rack { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -20469,8 +20564,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -20479,8 +20574,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -20500,7 +20595,7 @@ pub mod types { } } - impl From for Rack { + impl ::std::convert::From for Rack { fn from(value: super::Rack) -> Self { Self { id: Ok(value.id), @@ -20519,7 +20614,7 @@ pub mod types { >, } - impl Default for RackResultsPage { + impl ::std::default::Default for RackResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20531,8 +20626,8 @@ pub mod types { impl RackResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20541,8 +20636,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20563,7 +20658,7 @@ pub mod types { } } - impl From for RackResultsPage { + impl ::std::convert::From for RackResultsPage { fn from(value: super::RackResultsPage) -> Self { Self { items: Ok(value.items), @@ -20578,7 +20673,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for Role { + impl ::std::default::Default for Role { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20590,8 +20685,8 @@ pub mod types { impl Role { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20600,8 +20695,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20620,7 +20715,7 @@ pub mod types { } } - impl From for Role { + impl ::std::convert::From for Role { fn from(value: super::Role) -> Self { Self { description: Ok(value.description), @@ -20638,7 +20733,7 @@ pub mod types { >, } - impl Default for RoleResultsPage { + impl ::std::default::Default for RoleResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20650,8 +20745,8 @@ pub mod types { impl RoleResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20660,8 +20755,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20682,7 +20777,7 @@ pub mod types { } } - impl From for RoleResultsPage { + impl ::std::convert::From for RoleResultsPage { fn from(value: super::RoleResultsPage) -> Self { Self { items: Ok(value.items), @@ -20706,7 +20801,7 @@ pub mod types { vpc_router_id: ::std::result::Result, } - impl Default for RouterRoute { + impl ::std::default::Default for RouterRoute { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20725,8 +20820,8 @@ pub mod types { impl RouterRoute { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20735,8 +20830,8 @@ pub mod types { } pub fn destination(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.destination = value .try_into() @@ -20745,8 +20840,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -20755,8 +20850,8 @@ pub mod types { } pub fn kind(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.kind = value .try_into() @@ -20765,8 +20860,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20775,8 +20870,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -20785,8 +20880,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -20795,8 +20890,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -20805,8 +20900,8 @@ pub mod types { } pub fn vpc_router_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_router_id = value.try_into().map_err(|e| { format!("error converting supplied value for vpc_router_id: {}", e) @@ -20834,7 +20929,7 @@ pub mod types { } } - impl From for RouterRoute { + impl ::std::convert::From for RouterRoute { fn from(value: super::RouterRoute) -> Self { Self { description: Ok(value.description), @@ -20858,7 +20953,7 @@ pub mod types { target: ::std::result::Result, } - impl Default for RouterRouteCreateParams { + impl ::std::default::Default for RouterRouteCreateParams { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -20872,8 +20967,8 @@ pub mod types { impl RouterRouteCreateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -20882,8 +20977,8 @@ pub mod types { } pub fn destination(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.destination = value .try_into() @@ -20892,8 +20987,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -20902,8 +20997,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -20926,7 +21021,7 @@ pub mod types { } } - impl From for RouterRouteCreateParams { + impl ::std::convert::From for RouterRouteCreateParams { fn from(value: super::RouterRouteCreateParams) -> Self { Self { description: Ok(value.description), @@ -20947,7 +21042,7 @@ pub mod types { >, } - impl Default for RouterRouteResultsPage { + impl ::std::default::Default for RouterRouteResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -20959,8 +21054,8 @@ pub mod types { impl RouterRouteResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -20969,8 +21064,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -20991,7 +21086,7 @@ pub mod types { } } - impl From for RouterRouteResultsPage { + impl ::std::convert::From for RouterRouteResultsPage { fn from(value: super::RouterRouteResultsPage) -> Self { Self { items: Ok(value.items), @@ -21011,7 +21106,7 @@ pub mod types { target: ::std::result::Result, } - impl Default for RouterRouteUpdateParams { + impl ::std::default::Default for RouterRouteUpdateParams { fn default() -> Self { Self { description: Ok(Default::default()), @@ -21025,8 +21120,8 @@ pub mod types { impl RouterRouteUpdateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21035,8 +21130,8 @@ pub mod types { } pub fn destination(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.destination = value .try_into() @@ -21045,8 +21140,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21055,8 +21150,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -21079,7 +21174,7 @@ pub mod types { } } - impl From for RouterRouteUpdateParams { + impl ::std::convert::From for RouterRouteUpdateParams { fn from(value: super::RouterRouteUpdateParams) -> Self { Self { description: Ok(value.description), @@ -21096,7 +21191,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for Saga { + impl ::std::default::Default for Saga { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -21108,8 +21203,8 @@ pub mod types { impl Saga { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -21118,8 +21213,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -21138,7 +21233,7 @@ pub mod types { } } - impl From for Saga { + impl ::std::convert::From for Saga { fn from(value: super::Saga) -> Self { Self { id: Ok(value.id), @@ -21156,7 +21251,7 @@ pub mod types { >, } - impl Default for SagaResultsPage { + impl ::std::default::Default for SagaResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -21168,8 +21263,8 @@ pub mod types { impl SagaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -21178,8 +21273,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -21200,7 +21295,7 @@ pub mod types { } } - impl From for SagaResultsPage { + impl ::std::convert::From for SagaResultsPage { fn from(value: super::SagaResultsPage) -> Self { Self { items: Ok(value.items), @@ -21230,7 +21325,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for SamlIdentityProvider { + impl ::std::default::Default for SamlIdentityProvider { fn default() -> Self { Self { acs_url: Err("no value supplied for acs_url".to_string()), @@ -21253,8 +21348,8 @@ pub mod types { impl SamlIdentityProvider { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.acs_url = value .try_into() @@ -21263,8 +21358,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21273,8 +21368,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -21283,8 +21378,8 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { format!("error converting supplied value for idp_entity_id: {}", e) @@ -21293,8 +21388,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21303,8 +21398,8 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.public_cert = value .try_into() @@ -21313,8 +21408,8 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.slo_url = value .try_into() @@ -21323,8 +21418,8 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { format!("error converting supplied value for sp_client_id: {}", e) @@ -21333,8 +21428,8 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { format!( @@ -21346,8 +21441,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -21356,8 +21451,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -21387,7 +21482,7 @@ pub mod types { } } - impl From for SamlIdentityProvider { + impl ::std::convert::From for SamlIdentityProvider { fn from(value: super::SamlIdentityProvider) -> Self { Self { acs_url: Ok(value.acs_url), @@ -21427,7 +21522,7 @@ pub mod types { ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for SamlIdentityProviderCreate { + impl ::std::default::Default for SamlIdentityProviderCreate { fn default() -> Self { Self { acs_url: Err("no value supplied for acs_url".to_string()), @@ -21451,8 +21546,8 @@ pub mod types { impl SamlIdentityProviderCreate { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.acs_url = value .try_into() @@ -21461,8 +21556,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21471,8 +21566,8 @@ pub mod types { } pub fn group_attribute_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.group_attribute_name = value.try_into().map_err(|e| { format!( @@ -21484,8 +21579,8 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { format!("error converting supplied value for idp_entity_id: {}", e) @@ -21494,8 +21589,8 @@ pub mod types { } pub fn idp_metadata_source(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.idp_metadata_source = value.try_into().map_err(|e| { format!( @@ -21507,8 +21602,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21517,8 +21612,8 @@ pub mod types { } pub fn signing_keypair(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.signing_keypair = value.try_into().map_err(|e| { format!("error converting supplied value for signing_keypair: {}", e) @@ -21527,8 +21622,8 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.slo_url = value .try_into() @@ -21537,8 +21632,8 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { format!("error converting supplied value for sp_client_id: {}", e) @@ -21547,8 +21642,8 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { format!( @@ -21580,7 +21675,7 @@ pub mod types { } } - impl From for SamlIdentityProviderCreate { + impl ::std::convert::From for SamlIdentityProviderCreate { fn from(value: super::SamlIdentityProviderCreate) -> Self { Self { acs_url: Ok(value.acs_url), @@ -21610,7 +21705,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Silo { + impl ::std::default::Default for Silo { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -21627,8 +21722,8 @@ pub mod types { impl Silo { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21637,8 +21732,8 @@ pub mod types { } pub fn discoverable(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.discoverable = value.try_into().map_err(|e| { format!("error converting supplied value for discoverable: {}", e) @@ -21647,8 +21742,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -21657,8 +21752,8 @@ pub mod types { } pub fn identity_mode(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_mode = value.try_into().map_err(|e| { format!("error converting supplied value for identity_mode: {}", e) @@ -21667,8 +21762,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21677,8 +21772,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -21687,8 +21782,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -21712,7 +21807,7 @@ pub mod types { } } - impl From for Silo { + impl ::std::convert::From for Silo { fn from(value: super::Silo) -> Self { Self { description: Ok(value.description), @@ -21738,7 +21833,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for SiloCreate { + impl ::std::default::Default for SiloCreate { fn default() -> Self { Self { admin_group_name: Ok(Default::default()), @@ -21753,8 +21848,8 @@ pub mod types { impl SiloCreate { pub fn admin_group_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.admin_group_name = value.try_into().map_err(|e| { format!( @@ -21766,8 +21861,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -21776,8 +21871,8 @@ pub mod types { } pub fn discoverable(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.discoverable = value.try_into().map_err(|e| { format!("error converting supplied value for discoverable: {}", e) @@ -21786,8 +21881,8 @@ pub mod types { } pub fn identity_mode(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_mode = value.try_into().map_err(|e| { format!("error converting supplied value for identity_mode: {}", e) @@ -21796,8 +21891,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -21821,7 +21916,7 @@ pub mod types { } } - impl From for SiloCreate { + impl ::std::convert::From for SiloCreate { fn from(value: super::SiloCreate) -> Self { Self { admin_group_name: Ok(value.admin_group_name), @@ -21842,7 +21937,7 @@ pub mod types { >, } - impl Default for SiloResultsPage { + impl ::std::default::Default for SiloResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -21854,8 +21949,8 @@ pub mod types { impl SiloResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -21864,8 +21959,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -21886,7 +21981,7 @@ pub mod types { } } - impl From for SiloResultsPage { + impl ::std::convert::From for SiloResultsPage { fn from(value: super::SiloResultsPage) -> Self { Self { items: Ok(value.items), @@ -21903,7 +21998,7 @@ pub mod types { >, } - impl Default for SiloRolePolicy { + impl ::std::default::Default for SiloRolePolicy { fn default() -> Self { Self { role_assignments: Err("no value supplied for role_assignments".to_string()), @@ -21914,8 +22009,8 @@ pub mod types { impl SiloRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { format!( @@ -21938,7 +22033,7 @@ pub mod types { } } - impl From for SiloRolePolicy { + impl ::std::convert::From for SiloRolePolicy { fn from(value: super::SiloRolePolicy) -> Self { Self { role_assignments: Ok(value.role_assignments), @@ -21953,7 +22048,7 @@ pub mod types { role_name: ::std::result::Result, } - impl Default for SiloRoleRoleAssignment { + impl ::std::default::Default for SiloRoleRoleAssignment { fn default() -> Self { Self { identity_id: Err("no value supplied for identity_id".to_string()), @@ -21966,8 +22061,8 @@ pub mod types { impl SiloRoleRoleAssignment { pub fn identity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_id = value .try_into() @@ -21976,8 +22071,8 @@ pub mod types { } pub fn identity_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.identity_type = value.try_into().map_err(|e| { format!("error converting supplied value for identity_type: {}", e) @@ -21986,8 +22081,8 @@ pub mod types { } pub fn role_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.role_name = value .try_into() @@ -22009,7 +22104,7 @@ pub mod types { } } - impl From for SiloRoleRoleAssignment { + impl ::std::convert::From for SiloRoleRoleAssignment { fn from(value: super::SiloRoleRoleAssignment) -> Self { Self { identity_id: Ok(value.identity_id), @@ -22030,7 +22125,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Sled { + impl ::std::default::Default for Sled { fn default() -> Self { Self { baseboard: Err("no value supplied for baseboard".to_string()), @@ -22045,8 +22140,8 @@ pub mod types { impl Sled { pub fn baseboard(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.baseboard = value .try_into() @@ -22055,8 +22150,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22065,8 +22160,8 @@ pub mod types { } pub fn service_address(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.service_address = value.try_into().map_err(|e| { format!("error converting supplied value for service_address: {}", e) @@ -22075,8 +22170,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22085,8 +22180,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22108,7 +22203,7 @@ pub mod types { } } - impl From for Sled { + impl ::std::convert::From for Sled { fn from(value: super::Sled) -> Self { Self { baseboard: Ok(value.baseboard), @@ -22129,7 +22224,7 @@ pub mod types { >, } - impl Default for SledResultsPage { + impl ::std::default::Default for SledResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22141,8 +22236,8 @@ pub mod types { impl SledResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22151,8 +22246,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22173,7 +22268,7 @@ pub mod types { } } - impl From for SledResultsPage { + impl ::std::convert::From for SledResultsPage { fn from(value: super::SledResultsPage) -> Self { Self { items: Ok(value.items), @@ -22197,7 +22292,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Snapshot { + impl ::std::default::Default for Snapshot { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22216,8 +22311,8 @@ pub mod types { impl Snapshot { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22226,8 +22321,8 @@ pub mod types { } pub fn disk_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_id = value .try_into() @@ -22236,8 +22331,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22246,8 +22341,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22256,8 +22351,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -22266,8 +22361,8 @@ pub mod types { } pub fn size(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.size = value .try_into() @@ -22276,8 +22371,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -22286,8 +22381,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22296,8 +22391,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22325,7 +22420,7 @@ pub mod types { } } - impl From for Snapshot { + impl ::std::convert::From for Snapshot { fn from(value: super::Snapshot) -> Self { Self { description: Ok(value.description), @@ -22348,7 +22443,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for SnapshotCreate { + impl ::std::default::Default for SnapshotCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22361,8 +22456,8 @@ pub mod types { impl SnapshotCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22371,8 +22466,8 @@ pub mod types { } pub fn disk(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk = value .try_into() @@ -22381,8 +22476,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22404,7 +22499,7 @@ pub mod types { } } - impl From for SnapshotCreate { + impl ::std::convert::From for SnapshotCreate { fn from(value: super::SnapshotCreate) -> Self { Self { description: Ok(value.description), @@ -22423,7 +22518,7 @@ pub mod types { >, } - impl Default for SnapshotResultsPage { + impl ::std::default::Default for SnapshotResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22435,8 +22530,8 @@ pub mod types { impl SnapshotResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22445,8 +22540,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22467,7 +22562,7 @@ pub mod types { } } - impl From for SnapshotResultsPage { + impl ::std::convert::From for SnapshotResultsPage { fn from(value: super::SnapshotResultsPage) -> Self { Self { items: Ok(value.items), @@ -22481,7 +22576,7 @@ pub mod types { username: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for SpoofLoginBody { + impl ::std::default::Default for SpoofLoginBody { fn default() -> Self { Self { username: Err("no value supplied for username".to_string()), @@ -22492,8 +22587,8 @@ pub mod types { impl SpoofLoginBody { pub fn username(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.username = value .try_into() @@ -22513,7 +22608,7 @@ pub mod types { } } - impl From for SpoofLoginBody { + impl ::std::convert::From for SpoofLoginBody { fn from(value: super::SpoofLoginBody) -> Self { Self { username: Ok(value.username), @@ -22534,7 +22629,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for SshKey { + impl ::std::default::Default for SshKey { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22551,8 +22646,8 @@ pub mod types { impl SshKey { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22561,8 +22656,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22571,8 +22666,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22581,8 +22676,8 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.public_key = value .try_into() @@ -22591,8 +22686,8 @@ pub mod types { } pub fn silo_user_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.silo_user_id = value.try_into().map_err(|e| { format!("error converting supplied value for silo_user_id: {}", e) @@ -22601,8 +22696,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22611,8 +22706,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22638,7 +22733,7 @@ pub mod types { } } - impl From for SshKey { + impl ::std::convert::From for SshKey { fn from(value: super::SshKey) -> Self { Self { description: Ok(value.description), @@ -22659,7 +22754,7 @@ pub mod types { public_key: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for SshKeyCreate { + impl ::std::default::Default for SshKeyCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -22672,8 +22767,8 @@ pub mod types { impl SshKeyCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -22682,8 +22777,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -22692,8 +22787,8 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.public_key = value .try_into() @@ -22715,7 +22810,7 @@ pub mod types { } } - impl From for SshKeyCreate { + impl ::std::convert::From for SshKeyCreate { fn from(value: super::SshKeyCreate) -> Self { Self { description: Ok(value.description), @@ -22734,7 +22829,7 @@ pub mod types { >, } - impl Default for SshKeyResultsPage { + impl ::std::default::Default for SshKeyResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22746,8 +22841,8 @@ pub mod types { impl SshKeyResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22756,8 +22851,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22778,7 +22873,7 @@ pub mod types { } } - impl From for SshKeyResultsPage { + impl ::std::convert::From for SshKeyResultsPage { fn from(value: super::SshKeyResultsPage) -> Self { Self { items: Ok(value.items), @@ -22797,7 +22892,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for SystemUpdate { + impl ::std::default::Default for SystemUpdate { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -22811,8 +22906,8 @@ pub mod types { impl SystemUpdate { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -22821,8 +22916,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -22831,8 +22926,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -22841,8 +22936,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -22865,7 +22960,7 @@ pub mod types { } } - impl From for SystemUpdate { + impl ::std::convert::From for SystemUpdate { fn from(value: super::SystemUpdate) -> Self { Self { id: Ok(value.id), @@ -22886,7 +22981,7 @@ pub mod types { >, } - impl Default for SystemUpdateResultsPage { + impl ::std::default::Default for SystemUpdateResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -22898,8 +22993,8 @@ pub mod types { impl SystemUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -22908,8 +23003,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -22930,7 +23025,7 @@ pub mod types { } } - impl From for SystemUpdateResultsPage { + impl ::std::convert::From for SystemUpdateResultsPage { fn from(value: super::SystemUpdateResultsPage) -> Self { Self { items: Ok(value.items), @@ -22944,7 +23039,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for SystemUpdateStart { + impl ::std::default::Default for SystemUpdateStart { fn default() -> Self { Self { version: Err("no value supplied for version".to_string()), @@ -22955,8 +23050,8 @@ pub mod types { impl SystemUpdateStart { pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -22976,7 +23071,7 @@ pub mod types { } } - impl From for SystemUpdateStart { + impl ::std::convert::From for SystemUpdateStart { fn from(value: super::SystemUpdateStart) -> Self { Self { version: Ok(value.version), @@ -22990,7 +23085,7 @@ pub mod types { version_range: ::std::result::Result, } - impl Default for SystemVersion { + impl ::std::default::Default for SystemVersion { fn default() -> Self { Self { status: Err("no value supplied for status".to_string()), @@ -23002,8 +23097,8 @@ pub mod types { impl SystemVersion { pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -23012,8 +23107,8 @@ pub mod types { } pub fn version_range(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version_range = value.try_into().map_err(|e| { format!("error converting supplied value for version_range: {}", e) @@ -23034,7 +23129,7 @@ pub mod types { } } - impl From for SystemVersion { + impl ::std::convert::From for SystemVersion { fn from(value: super::SystemVersion) -> Self { Self { status: Ok(value.status), @@ -23053,7 +23148,7 @@ pub mod types { timeseries_name: ::std::result::Result, } - impl Default for TimeseriesSchema { + impl ::std::default::Default for TimeseriesSchema { fn default() -> Self { Self { created: Err("no value supplied for created".to_string()), @@ -23067,8 +23162,8 @@ pub mod types { impl TimeseriesSchema { pub fn created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.created = value .try_into() @@ -23077,8 +23172,8 @@ pub mod types { } pub fn datum_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.datum_type = value .try_into() @@ -23087,8 +23182,8 @@ pub mod types { } pub fn field_schema(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.field_schema = value.try_into().map_err(|e| { format!("error converting supplied value for field_schema: {}", e) @@ -23097,8 +23192,8 @@ pub mod types { } pub fn timeseries_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.timeseries_name = value.try_into().map_err(|e| { format!("error converting supplied value for timeseries_name: {}", e) @@ -23121,7 +23216,7 @@ pub mod types { } } - impl From for TimeseriesSchema { + impl ::std::convert::From for TimeseriesSchema { fn from(value: super::TimeseriesSchema) -> Self { Self { created: Ok(value.created), @@ -23144,7 +23239,7 @@ pub mod types { >, } - impl Default for TimeseriesSchemaResultsPage { + impl ::std::default::Default for TimeseriesSchemaResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23156,8 +23251,8 @@ pub mod types { impl TimeseriesSchemaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23166,8 +23261,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23188,7 +23283,7 @@ pub mod types { } } - impl From for TimeseriesSchemaResultsPage { + impl ::std::convert::From for TimeseriesSchemaResultsPage { fn from(value: super::TimeseriesSchemaResultsPage) -> Self { Self { items: Ok(value.items), @@ -23208,7 +23303,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for UpdateDeployment { + impl ::std::default::Default for UpdateDeployment { fn default() -> Self { Self { id: Err("no value supplied for id".to_string()), @@ -23223,8 +23318,8 @@ pub mod types { impl UpdateDeployment { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23233,8 +23328,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -23243,8 +23338,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23253,8 +23348,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23263,8 +23358,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -23288,7 +23383,7 @@ pub mod types { } } - impl From for UpdateDeployment { + impl ::std::convert::From for UpdateDeployment { fn from(value: super::UpdateDeployment) -> Self { Self { id: Ok(value.id), @@ -23312,7 +23407,7 @@ pub mod types { >, } - impl Default for UpdateDeploymentResultsPage { + impl ::std::default::Default for UpdateDeploymentResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23324,8 +23419,8 @@ pub mod types { impl UpdateDeploymentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23334,8 +23429,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23356,7 +23451,7 @@ pub mod types { } } - impl From for UpdateDeploymentResultsPage { + impl ::std::convert::From for UpdateDeploymentResultsPage { fn from(value: super::UpdateDeploymentResultsPage) -> Self { Self { items: Ok(value.items), @@ -23380,7 +23475,7 @@ pub mod types { version: ::std::result::Result, } - impl Default for UpdateableComponent { + impl ::std::default::Default for UpdateableComponent { fn default() -> Self { Self { component_type: Err("no value supplied for component_type".to_string()), @@ -23398,8 +23493,8 @@ pub mod types { impl UpdateableComponent { pub fn component_type(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.component_type = value.try_into().map_err(|e| { format!("error converting supplied value for component_type: {}", e) @@ -23408,8 +23503,8 @@ pub mod types { } pub fn device_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device_id = value .try_into() @@ -23418,8 +23513,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23428,8 +23523,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -23438,8 +23533,8 @@ pub mod types { } pub fn system_version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.system_version = value.try_into().map_err(|e| { format!("error converting supplied value for system_version: {}", e) @@ -23448,8 +23543,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23458,8 +23553,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23468,8 +23563,8 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.version = value .try_into() @@ -23496,7 +23591,7 @@ pub mod types { } } - impl From for UpdateableComponent { + impl ::std::convert::From for UpdateableComponent { fn from(value: super::UpdateableComponent) -> Self { Self { component_type: Ok(value.component_type), @@ -23523,7 +23618,7 @@ pub mod types { >, } - impl Default for UpdateableComponentResultsPage { + impl ::std::default::Default for UpdateableComponentResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23535,8 +23630,8 @@ pub mod types { impl UpdateableComponentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23545,8 +23640,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23569,7 +23664,9 @@ pub mod types { } } - impl From for UpdateableComponentResultsPage { + impl ::std::convert::From + for UpdateableComponentResultsPage + { fn from(value: super::UpdateableComponentResultsPage) -> Self { Self { items: Ok(value.items), @@ -23585,7 +23682,7 @@ pub mod types { silo_id: ::std::result::Result, } - impl Default for User { + impl ::std::default::Default for User { fn default() -> Self { Self { display_name: Err("no value supplied for display_name".to_string()), @@ -23598,8 +23695,8 @@ pub mod types { impl User { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { format!("error converting supplied value for display_name: {}", e) @@ -23608,8 +23705,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23618,8 +23715,8 @@ pub mod types { } pub fn silo_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.silo_id = value .try_into() @@ -23639,7 +23736,7 @@ pub mod types { } } - impl From for User { + impl ::std::convert::From for User { fn from(value: super::User) -> Self { Self { display_name: Ok(value.display_name), @@ -23660,7 +23757,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for UserBuiltin { + impl ::std::default::Default for UserBuiltin { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -23675,8 +23772,8 @@ pub mod types { impl UserBuiltin { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -23685,8 +23782,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -23695,8 +23792,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -23705,8 +23802,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -23715,8 +23812,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -23740,7 +23837,7 @@ pub mod types { } } - impl From for UserBuiltin { + impl ::std::convert::From for UserBuiltin { fn from(value: super::UserBuiltin) -> Self { Self { description: Ok(value.description), @@ -23762,7 +23859,7 @@ pub mod types { >, } - impl Default for UserBuiltinResultsPage { + impl ::std::default::Default for UserBuiltinResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23774,8 +23871,8 @@ pub mod types { impl UserBuiltinResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23784,8 +23881,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23806,7 +23903,7 @@ pub mod types { } } - impl From for UserBuiltinResultsPage { + impl ::std::convert::From for UserBuiltinResultsPage { fn from(value: super::UserBuiltinResultsPage) -> Self { Self { items: Ok(value.items), @@ -23821,7 +23918,7 @@ pub mod types { password: ::std::result::Result, } - impl Default for UserCreate { + impl ::std::default::Default for UserCreate { fn default() -> Self { Self { external_id: Err("no value supplied for external_id".to_string()), @@ -23833,8 +23930,8 @@ pub mod types { impl UserCreate { pub fn external_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.external_id = value .try_into() @@ -23843,8 +23940,8 @@ pub mod types { } pub fn password(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.password = value .try_into() @@ -23865,7 +23962,7 @@ pub mod types { } } - impl From for UserCreate { + impl ::std::convert::From for UserCreate { fn from(value: super::UserCreate) -> Self { Self { external_id: Ok(value.external_id), @@ -23883,7 +23980,7 @@ pub mod types { >, } - impl Default for UserResultsPage { + impl ::std::default::Default for UserResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -23895,8 +23992,8 @@ pub mod types { impl UserResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -23905,8 +24002,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -23927,7 +24024,7 @@ pub mod types { } } - impl From for UserResultsPage { + impl ::std::convert::From for UserResultsPage { fn from(value: super::UserResultsPage) -> Self { Self { items: Ok(value.items), @@ -23942,7 +24039,7 @@ pub mod types { username: ::std::result::Result, } - impl Default for UsernamePasswordCredentials { + impl ::std::default::Default for UsernamePasswordCredentials { fn default() -> Self { Self { password: Err("no value supplied for password".to_string()), @@ -23954,8 +24051,8 @@ pub mod types { impl UsernamePasswordCredentials { pub fn password(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.password = value .try_into() @@ -23964,8 +24061,8 @@ pub mod types { } pub fn username(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.username = value .try_into() @@ -23986,7 +24083,7 @@ pub mod types { } } - impl From for UsernamePasswordCredentials { + impl ::std::convert::From for UsernamePasswordCredentials { fn from(value: super::UsernamePasswordCredentials) -> Self { Self { password: Ok(value.password), @@ -24001,7 +24098,7 @@ pub mod types { low: ::std::result::Result, } - impl Default for VersionRange { + impl ::std::default::Default for VersionRange { fn default() -> Self { Self { high: Err("no value supplied for high".to_string()), @@ -24013,8 +24110,8 @@ pub mod types { impl VersionRange { pub fn high(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.high = value .try_into() @@ -24023,8 +24120,8 @@ pub mod types { } pub fn low(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.low = value .try_into() @@ -24045,7 +24142,7 @@ pub mod types { } } - impl From for VersionRange { + impl ::std::convert::From for VersionRange { fn from(value: super::VersionRange) -> Self { Self { high: Ok(value.high), @@ -24069,7 +24166,7 @@ pub mod types { ::std::result::Result, ::std::string::String>, } - impl Default for Vpc { + impl ::std::default::Default for Vpc { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -24088,8 +24185,8 @@ pub mod types { impl Vpc { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24098,8 +24195,8 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.dns_name = value .try_into() @@ -24108,8 +24205,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24118,8 +24215,8 @@ pub mod types { } pub fn ipv6_prefix(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv6_prefix = value .try_into() @@ -24128,8 +24225,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24138,8 +24235,8 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.project_id = value .try_into() @@ -24148,8 +24245,8 @@ pub mod types { } pub fn system_router_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.system_router_id = value.try_into().map_err(|e| { format!( @@ -24161,8 +24258,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -24171,8 +24268,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -24198,7 +24295,7 @@ pub mod types { } } - impl From for Vpc { + impl ::std::convert::From for Vpc { fn from(value: super::Vpc) -> Self { Self { description: Ok(value.description), @@ -24223,7 +24320,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for VpcCreate { + impl ::std::default::Default for VpcCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -24237,8 +24334,8 @@ pub mod types { impl VpcCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24247,8 +24344,8 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.dns_name = value .try_into() @@ -24257,8 +24354,8 @@ pub mod types { } pub fn ipv6_prefix(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.ipv6_prefix = value .try_into() @@ -24267,8 +24364,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24291,7 +24388,7 @@ pub mod types { } } - impl From for VpcCreate { + impl ::std::convert::From for VpcCreate { fn from(value: super::VpcCreate) -> Self { Self { description: Ok(value.description), @@ -24324,7 +24421,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for VpcFirewallRule { + impl ::std::default::Default for VpcFirewallRule { fn default() -> Self { Self { action: Err("no value supplied for action".to_string()), @@ -24346,8 +24443,8 @@ pub mod types { impl VpcFirewallRule { pub fn action(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.action = value .try_into() @@ -24356,8 +24453,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24366,8 +24463,8 @@ pub mod types { } pub fn direction(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.direction = value .try_into() @@ -24376,8 +24473,8 @@ pub mod types { } pub fn filters(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.filters = value .try_into() @@ -24386,8 +24483,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24396,8 +24493,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24406,8 +24503,8 @@ pub mod types { } pub fn priority(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.priority = value .try_into() @@ -24416,8 +24513,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -24426,8 +24523,8 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.targets = value .try_into() @@ -24436,8 +24533,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -24446,8 +24543,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -24456,8 +24553,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -24488,7 +24585,7 @@ pub mod types { } } - impl From for VpcFirewallRule { + impl ::std::convert::From for VpcFirewallRule { fn from(value: super::VpcFirewallRule) -> Self { Self { action: Ok(value.action), @@ -24523,7 +24620,7 @@ pub mod types { >, } - impl Default for VpcFirewallRuleFilter { + impl ::std::default::Default for VpcFirewallRuleFilter { fn default() -> Self { Self { hosts: Ok(Default::default()), @@ -24536,10 +24633,10 @@ pub mod types { impl VpcFirewallRuleFilter { pub fn hosts(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option<::std::vec::Vec>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.hosts = value .try_into() @@ -24548,10 +24645,10 @@ pub mod types { } pub fn ports(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option<::std::vec::Vec>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.ports = value .try_into() @@ -24560,10 +24657,10 @@ pub mod types { } pub fn protocols(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option<::std::vec::Vec>, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.protocols = value .try_into() @@ -24585,7 +24682,7 @@ pub mod types { } } - impl From for VpcFirewallRuleFilter { + impl ::std::convert::From for VpcFirewallRuleFilter { fn from(value: super::VpcFirewallRuleFilter) -> Self { Self { hosts: Ok(value.hosts), @@ -24611,7 +24708,7 @@ pub mod types { >, } - impl Default for VpcFirewallRuleUpdate { + impl ::std::default::Default for VpcFirewallRuleUpdate { fn default() -> Self { Self { action: Err("no value supplied for action".to_string()), @@ -24629,8 +24726,8 @@ pub mod types { impl VpcFirewallRuleUpdate { pub fn action(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.action = value .try_into() @@ -24639,8 +24736,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24649,8 +24746,8 @@ pub mod types { } pub fn direction(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.direction = value .try_into() @@ -24659,8 +24756,8 @@ pub mod types { } pub fn filters(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.filters = value .try_into() @@ -24669,8 +24766,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24679,8 +24776,8 @@ pub mod types { } pub fn priority(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.priority = value .try_into() @@ -24689,8 +24786,8 @@ pub mod types { } pub fn status(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.status = value .try_into() @@ -24699,8 +24796,8 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.targets = value .try_into() @@ -24727,7 +24824,7 @@ pub mod types { } } - impl From for VpcFirewallRuleUpdate { + impl ::std::convert::From for VpcFirewallRuleUpdate { fn from(value: super::VpcFirewallRuleUpdate) -> Self { Self { action: Ok(value.action), @@ -24750,7 +24847,7 @@ pub mod types { >, } - impl Default for VpcFirewallRuleUpdateParams { + impl ::std::default::Default for VpcFirewallRuleUpdateParams { fn default() -> Self { Self { rules: Err("no value supplied for rules".to_string()), @@ -24761,8 +24858,8 @@ pub mod types { impl VpcFirewallRuleUpdateParams { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.rules = value .try_into() @@ -24782,7 +24879,7 @@ pub mod types { } } - impl From for VpcFirewallRuleUpdateParams { + impl ::std::convert::From for VpcFirewallRuleUpdateParams { fn from(value: super::VpcFirewallRuleUpdateParams) -> Self { Self { rules: Ok(value.rules), @@ -24798,7 +24895,7 @@ pub mod types { >, } - impl Default for VpcFirewallRules { + impl ::std::default::Default for VpcFirewallRules { fn default() -> Self { Self { rules: Err("no value supplied for rules".to_string()), @@ -24809,8 +24906,8 @@ pub mod types { impl VpcFirewallRules { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.rules = value .try_into() @@ -24830,7 +24927,7 @@ pub mod types { } } - impl From for VpcFirewallRules { + impl ::std::convert::From for VpcFirewallRules { fn from(value: super::VpcFirewallRules) -> Self { Self { rules: Ok(value.rules), @@ -24847,7 +24944,7 @@ pub mod types { >, } - impl Default for VpcResultsPage { + impl ::std::default::Default for VpcResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -24859,8 +24956,8 @@ pub mod types { impl VpcResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -24869,8 +24966,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -24891,7 +24988,7 @@ pub mod types { } } - impl From for VpcResultsPage { + impl ::std::convert::From for VpcResultsPage { fn from(value: super::VpcResultsPage) -> Self { Self { items: Ok(value.items), @@ -24913,7 +25010,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for VpcRouter { + impl ::std::default::Default for VpcRouter { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -24930,8 +25027,8 @@ pub mod types { impl VpcRouter { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -24940,8 +25037,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -24950,8 +25047,8 @@ pub mod types { } pub fn kind(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.kind = value .try_into() @@ -24960,8 +25057,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -24970,8 +25067,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -24980,8 +25077,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -24990,8 +25087,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -25017,7 +25114,7 @@ pub mod types { } } - impl From for VpcRouter { + impl ::std::convert::From for VpcRouter { fn from(value: super::VpcRouter) -> Self { Self { description: Ok(value.description), @@ -25037,7 +25134,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for VpcRouterCreate { + impl ::std::default::Default for VpcRouterCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25049,8 +25146,8 @@ pub mod types { impl VpcRouterCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25059,8 +25156,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25081,7 +25178,7 @@ pub mod types { } } - impl From for VpcRouterCreate { + impl ::std::convert::From for VpcRouterCreate { fn from(value: super::VpcRouterCreate) -> Self { Self { description: Ok(value.description), @@ -25099,7 +25196,7 @@ pub mod types { >, } - impl Default for VpcRouterResultsPage { + impl ::std::default::Default for VpcRouterResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -25111,8 +25208,8 @@ pub mod types { impl VpcRouterResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -25121,8 +25218,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -25143,7 +25240,7 @@ pub mod types { } } - impl From for VpcRouterResultsPage { + impl ::std::convert::From for VpcRouterResultsPage { fn from(value: super::VpcRouterResultsPage) -> Self { Self { items: Ok(value.items), @@ -25161,7 +25258,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for VpcRouterUpdate { + impl ::std::default::Default for VpcRouterUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -25173,8 +25270,8 @@ pub mod types { impl VpcRouterUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25183,8 +25280,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25205,7 +25302,7 @@ pub mod types { } } - impl From for VpcRouterUpdate { + impl ::std::convert::From for VpcRouterUpdate { fn from(value: super::VpcRouterUpdate) -> Self { Self { description: Ok(value.description), @@ -25228,7 +25325,7 @@ pub mod types { vpc_id: ::std::result::Result, } - impl Default for VpcSubnet { + impl ::std::default::Default for VpcSubnet { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25246,8 +25343,8 @@ pub mod types { impl VpcSubnet { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25256,8 +25353,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -25266,8 +25363,8 @@ pub mod types { } pub fn ipv4_block(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv4_block = value .try_into() @@ -25276,8 +25373,8 @@ pub mod types { } pub fn ipv6_block(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv6_block = value .try_into() @@ -25286,8 +25383,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25296,8 +25393,8 @@ pub mod types { } pub fn time_created(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_created = value.try_into().map_err(|e| { format!("error converting supplied value for time_created: {}", e) @@ -25306,8 +25403,8 @@ pub mod types { } pub fn time_modified(mut self, value: T) -> Self where - T: std::convert::TryInto>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto>, + T::Error: ::std::fmt::Display, { self.time_modified = value.try_into().map_err(|e| { format!("error converting supplied value for time_modified: {}", e) @@ -25316,8 +25413,8 @@ pub mod types { } pub fn vpc_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vpc_id = value .try_into() @@ -25344,7 +25441,7 @@ pub mod types { } } - impl From for VpcSubnet { + impl ::std::convert::From for VpcSubnet { fn from(value: super::VpcSubnet) -> Self { Self { description: Ok(value.description), @@ -25368,7 +25465,7 @@ pub mod types { name: ::std::result::Result, } - impl Default for VpcSubnetCreate { + impl ::std::default::Default for VpcSubnetCreate { fn default() -> Self { Self { description: Err("no value supplied for description".to_string()), @@ -25382,8 +25479,8 @@ pub mod types { impl VpcSubnetCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25392,8 +25489,8 @@ pub mod types { } pub fn ipv4_block(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.ipv4_block = value .try_into() @@ -25402,8 +25499,8 @@ pub mod types { } pub fn ipv6_block(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.ipv6_block = value .try_into() @@ -25412,8 +25509,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25436,7 +25533,7 @@ pub mod types { } } - impl From for VpcSubnetCreate { + impl ::std::convert::From for VpcSubnetCreate { fn from(value: super::VpcSubnetCreate) -> Self { Self { description: Ok(value.description), @@ -25456,7 +25553,7 @@ pub mod types { >, } - impl Default for VpcSubnetResultsPage { + impl ::std::default::Default for VpcSubnetResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -25468,8 +25565,8 @@ pub mod types { impl VpcSubnetResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -25478,8 +25575,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -25500,7 +25597,7 @@ pub mod types { } } - impl From for VpcSubnetResultsPage { + impl ::std::convert::From for VpcSubnetResultsPage { fn from(value: super::VpcSubnetResultsPage) -> Self { Self { items: Ok(value.items), @@ -25518,7 +25615,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for VpcSubnetUpdate { + impl ::std::default::Default for VpcSubnetUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -25530,8 +25627,8 @@ pub mod types { impl VpcSubnetUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25540,8 +25637,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25562,7 +25659,7 @@ pub mod types { } } - impl From for VpcSubnetUpdate { + impl ::std::convert::From for VpcSubnetUpdate { fn from(value: super::VpcSubnetUpdate) -> Self { Self { description: Ok(value.description), @@ -25582,7 +25679,7 @@ pub mod types { name: ::std::result::Result<::std::option::Option, ::std::string::String>, } - impl Default for VpcUpdate { + impl ::std::default::Default for VpcUpdate { fn default() -> Self { Self { description: Ok(Default::default()), @@ -25595,8 +25692,8 @@ pub mod types { impl VpcUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -25605,8 +25702,8 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.dns_name = value .try_into() @@ -25615,8 +25712,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -25638,7 +25735,7 @@ pub mod types { } } - impl From for VpcUpdate { + impl ::std::convert::From for VpcUpdate { fn from(value: super::VpcUpdate) -> Self { Self { description: Ok(value.description), diff --git a/progenitor-impl/tests/output/src/nexus_positional.rs b/progenitor-impl/tests/output/src/nexus_positional.rs index 1d79e967..cada9e2f 100644 --- a/progenitor-impl/tests/output/src/nexus_positional.rs +++ b/progenitor-impl/tests/output/src/nexus_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -73,7 +74,7 @@ pub mod types { pub serial: ::std::string::String, } - impl From<&Baseboard> for Baseboard { + impl ::std::convert::From<&Baseboard> for Baseboard { fn from(value: &Baseboard) -> Self { value.clone() } @@ -181,7 +182,7 @@ pub mod types { RangeFrom { start: f64 }, } - impl From<&BinRangedouble> for BinRangedouble { + impl ::std::convert::From<&BinRangedouble> for BinRangedouble { fn from(value: &BinRangedouble) -> Self { value.clone() } @@ -289,7 +290,7 @@ pub mod types { RangeFrom { start: i64 }, } - impl From<&BinRangeint64> for BinRangeint64 { + impl ::std::convert::From<&BinRangeint64> for BinRangeint64 { fn from(value: &BinRangeint64) -> Self { value.clone() } @@ -335,7 +336,7 @@ pub mod types { pub range: BinRangedouble, } - impl From<&Bindouble> for Bindouble { + impl ::std::convert::From<&Bindouble> for Bindouble { fn from(value: &Bindouble) -> Self { value.clone() } @@ -381,7 +382,7 @@ pub mod types { pub range: BinRangeint64, } - impl From<&Binint64> for Binint64 { + impl ::std::convert::From<&Binint64> for Binint64 { fn from(value: &Binint64) -> Self { value.clone() } @@ -404,6 +405,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct BlockSize(i64); impl ::std::ops::Deref for BlockSize { type Target = i64; @@ -412,13 +414,13 @@ pub mod types { } } - impl From for i64 { + impl ::std::convert::From for i64 { fn from(value: BlockSize) -> Self { value.0 } } - impl From<&BlockSize> for BlockSize { + impl ::std::convert::From<&BlockSize> for BlockSize { fn from(value: &BlockSize) -> Self { value.clone() } @@ -471,6 +473,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct ByteCount(pub u64); impl ::std::ops::Deref for ByteCount { type Target = u64; @@ -479,46 +482,46 @@ pub mod types { } } - impl From for u64 { + impl ::std::convert::From for u64 { fn from(value: ByteCount) -> Self { value.0 } } - impl From<&ByteCount> for ByteCount { + impl ::std::convert::From<&ByteCount> for ByteCount { fn from(value: &ByteCount) -> Self { value.clone() } } - impl From for ByteCount { + impl ::std::convert::From for ByteCount { fn from(value: u64) -> Self { Self(value) } } - impl std::str::FromStr for ByteCount { + impl ::std::str::FromStr for ByteCount { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for ByteCount { + impl ::std::convert::TryFrom<&str> for ByteCount { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ByteCount { + impl ::std::convert::TryFrom<&String> for ByteCount { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ByteCount { + impl ::std::convert::TryFrom for ByteCount { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -599,7 +602,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Certificate> for Certificate { + impl ::std::convert::From<&Certificate> for Certificate { fn from(value: &Certificate) -> Self { value.clone() } @@ -671,7 +674,7 @@ pub mod types { pub service: ServiceUsingCertificate, } - impl From<&CertificateCreate> for CertificateCreate { + impl ::std::convert::From<&CertificateCreate> for CertificateCreate { fn from(value: &CertificateCreate) -> Self { value.clone() } @@ -717,7 +720,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&CertificateResultsPage> for CertificateResultsPage { + impl ::std::convert::From<&CertificateResultsPage> for CertificateResultsPage { fn from(value: &CertificateResultsPage) -> Self { value.clone() } @@ -779,7 +782,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&ComponentUpdate> for ComponentUpdate { + impl ::std::convert::From<&ComponentUpdate> for ComponentUpdate { fn from(value: &ComponentUpdate) -> Self { value.clone() } @@ -825,7 +828,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { + impl ::std::convert::From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { fn from(value: &ComponentUpdateResultsPage) -> Self { value.clone() } @@ -862,7 +865,7 @@ pub mod types { pub value: f64, } - impl From<&Cumulativedouble> for Cumulativedouble { + impl ::std::convert::From<&Cumulativedouble> for Cumulativedouble { fn from(value: &Cumulativedouble) -> Self { value.clone() } @@ -899,7 +902,7 @@ pub mod types { pub value: i64, } - impl From<&Cumulativeint64> for Cumulativeint64 { + impl ::std::convert::From<&Cumulativeint64> for Cumulativeint64 { fn from(value: &Cumulativeint64) -> Self { value.clone() } @@ -1110,55 +1113,55 @@ pub mod types { HistogramF64(Histogramdouble), } - impl From<&Datum> for Datum { + impl ::std::convert::From<&Datum> for Datum { fn from(value: &Datum) -> Self { value.clone() } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: bool) -> Self { Self::Bool(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: i64) -> Self { Self::I64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: f64) -> Self { Self::F64(value) } } - impl From<::std::vec::Vec> for Datum { + impl ::std::convert::From<::std::vec::Vec> for Datum { fn from(value: ::std::vec::Vec) -> Self { Self::Bytes(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Cumulativeint64) -> Self { Self::CumulativeI64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Cumulativedouble) -> Self { Self::CumulativeF64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Histogramint64) -> Self { Self::HistogramI64(value) } } - impl From for Datum { + impl ::std::convert::From for Datum { fn from(value: Histogramdouble) -> Self { Self::HistogramF64(value) } @@ -1219,7 +1222,7 @@ pub mod types { HistogramF64, } - impl From<&DatumType> for DatumType { + impl ::std::convert::From<&DatumType> for DatumType { fn from(value: &DatumType) -> Self { value.clone() } @@ -1241,7 +1244,7 @@ pub mod types { } } - impl std::str::FromStr for DatumType { + impl ::std::str::FromStr for DatumType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1259,14 +1262,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for DatumType { + impl ::std::convert::TryFrom<&str> for DatumType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for DatumType { + impl ::std::convert::TryFrom<&::std::string::String> for DatumType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1275,7 +1278,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for DatumType { + impl ::std::convert::TryFrom<::std::string::String> for DatumType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1318,7 +1321,7 @@ pub mod types { pub public_cert: ::std::string::String, } - impl From<&DerEncodedKeyPair> for DerEncodedKeyPair { + impl ::std::convert::From<&DerEncodedKeyPair> for DerEncodedKeyPair { fn from(value: &DerEncodedKeyPair) -> Self { value.clone() } @@ -1358,7 +1361,7 @@ pub mod types { pub grant_type: ::std::string::String, } - impl From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { + impl ::std::convert::From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { fn from(value: &DeviceAccessTokenRequest) -> Self { value.clone() } @@ -1388,7 +1391,7 @@ pub mod types { pub client_id: uuid::Uuid, } - impl From<&DeviceAuthRequest> for DeviceAuthRequest { + impl ::std::convert::From<&DeviceAuthRequest> for DeviceAuthRequest { fn from(value: &DeviceAuthRequest) -> Self { value.clone() } @@ -1417,7 +1420,7 @@ pub mod types { pub user_code: ::std::string::String, } - impl From<&DeviceAuthVerify> for DeviceAuthVerify { + impl ::std::convert::From<&DeviceAuthVerify> for DeviceAuthVerify { fn from(value: &DeviceAuthVerify) -> Self { value.clone() } @@ -1459,7 +1462,7 @@ pub mod types { Sha256(::std::string::String), } - impl From<&Digest> for Digest { + impl ::std::convert::From<&Digest> for Digest { fn from(value: &Digest) -> Self { value.clone() } @@ -1572,7 +1575,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Disk> for Disk { + impl ::std::convert::From<&Disk> for Disk { fn from(value: &Disk) -> Self { value.clone() } @@ -1631,7 +1634,7 @@ pub mod types { pub size: ByteCount, } - impl From<&DiskCreate> for DiskCreate { + impl ::std::convert::From<&DiskCreate> for DiskCreate { fn from(value: &DiskCreate) -> Self { value.clone() } @@ -1665,7 +1668,7 @@ pub mod types { pub name: Name, } - impl From<&DiskIdentifier> for DiskIdentifier { + impl ::std::convert::From<&DiskIdentifier> for DiskIdentifier { fn from(value: &DiskIdentifier) -> Self { value.clone() } @@ -1716,7 +1719,7 @@ pub mod types { WriteBytes, } - impl From<&DiskMetricName> for DiskMetricName { + impl ::std::convert::From<&DiskMetricName> for DiskMetricName { fn from(value: &DiskMetricName) -> Self { value.clone() } @@ -1735,7 +1738,7 @@ pub mod types { } } - impl std::str::FromStr for DiskMetricName { + impl ::std::str::FromStr for DiskMetricName { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1750,14 +1753,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for DiskMetricName { + impl ::std::convert::TryFrom<&str> for DiskMetricName { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for DiskMetricName { + impl ::std::convert::TryFrom<&::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1766,7 +1769,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for DiskMetricName { + impl ::std::convert::TryFrom<::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1798,7 +1801,7 @@ pub mod types { pub disk: NameOrId, } - impl From<&DiskPath> for DiskPath { + impl ::std::convert::From<&DiskPath> for DiskPath { fn from(value: &DiskPath) -> Self { value.clone() } @@ -1844,7 +1847,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&DiskResultsPage> for DiskResultsPage { + impl ::std::convert::From<&DiskResultsPage> for DiskResultsPage { fn from(value: &DiskResultsPage) -> Self { value.clone() } @@ -1968,7 +1971,7 @@ pub mod types { GlobalImage { image_id: uuid::Uuid }, } - impl From<&DiskSource> for DiskSource { + impl ::std::convert::From<&DiskSource> for DiskSource { fn from(value: &DiskSource) -> Self { value.clone() } @@ -2128,7 +2131,7 @@ pub mod types { Faulted, } - impl From<&DiskState> for DiskState { + impl ::std::convert::From<&DiskState> for DiskState { fn from(value: &DiskState) -> Self { value.clone() } @@ -2173,7 +2176,7 @@ pub mod types { pub version: ::std::string::String, } - impl From<&Distribution> for Distribution { + impl ::std::convert::From<&Distribution> for Distribution { fn from(value: &Distribution) -> Self { value.clone() } @@ -2213,7 +2216,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -2248,7 +2251,7 @@ pub mod types { pub kind: IpKind, } - impl From<&ExternalIp> for ExternalIp { + impl ::std::convert::From<&ExternalIp> for ExternalIp { fn from(value: &ExternalIp) -> Self { value.clone() } @@ -2311,7 +2314,7 @@ pub mod types { }, } - impl From<&ExternalIpCreate> for ExternalIpCreate { + impl ::std::convert::From<&ExternalIpCreate> for ExternalIpCreate { fn from(value: &ExternalIpCreate) -> Self { value.clone() } @@ -2357,7 +2360,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ExternalIpResultsPage> for ExternalIpResultsPage { + impl ::std::convert::From<&ExternalIpResultsPage> for ExternalIpResultsPage { fn from(value: &ExternalIpResultsPage) -> Self { value.clone() } @@ -2398,7 +2401,7 @@ pub mod types { pub ty: FieldType, } - impl From<&FieldSchema> for FieldSchema { + impl ::std::convert::From<&FieldSchema> for FieldSchema { fn from(value: &FieldSchema) -> Self { value.clone() } @@ -2439,7 +2442,7 @@ pub mod types { Metric, } - impl From<&FieldSource> for FieldSource { + impl ::std::convert::From<&FieldSource> for FieldSource { fn from(value: &FieldSource) -> Self { value.clone() } @@ -2454,7 +2457,7 @@ pub mod types { } } - impl std::str::FromStr for FieldSource { + impl ::std::str::FromStr for FieldSource { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2465,14 +2468,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FieldSource { + impl ::std::convert::TryFrom<&str> for FieldSource { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FieldSource { + impl ::std::convert::TryFrom<&::std::string::String> for FieldSource { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2481,7 +2484,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FieldSource { + impl ::std::convert::TryFrom<::std::string::String> for FieldSource { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2534,7 +2537,7 @@ pub mod types { Bool, } - impl From<&FieldType> for FieldType { + impl ::std::convert::From<&FieldType> for FieldType { fn from(value: &FieldType) -> Self { value.clone() } @@ -2552,7 +2555,7 @@ pub mod types { } } - impl std::str::FromStr for FieldType { + impl ::std::str::FromStr for FieldType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2566,14 +2569,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FieldType { + impl ::std::convert::TryFrom<&str> for FieldType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FieldType { + impl ::std::convert::TryFrom<&::std::string::String> for FieldType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2582,7 +2585,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FieldType { + impl ::std::convert::TryFrom<::std::string::String> for FieldType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2627,7 +2630,7 @@ pub mod types { Viewer, } - impl From<&FleetRole> for FleetRole { + impl ::std::convert::From<&FleetRole> for FleetRole { fn from(value: &FleetRole) -> Self { value.clone() } @@ -2643,7 +2646,7 @@ pub mod types { } } - impl std::str::FromStr for FleetRole { + impl ::std::str::FromStr for FleetRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -2655,14 +2658,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for FleetRole { + impl ::std::convert::TryFrom<&str> for FleetRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for FleetRole { + impl ::std::convert::TryFrom<&::std::string::String> for FleetRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -2671,7 +2674,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for FleetRole { + impl ::std::convert::TryFrom<::std::string::String> for FleetRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -2717,7 +2720,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&FleetRolePolicy> for FleetRolePolicy { + impl ::std::convert::From<&FleetRolePolicy> for FleetRolePolicy { fn from(value: &FleetRolePolicy) -> Self { value.clone() } @@ -2767,7 +2770,7 @@ pub mod types { pub role_name: FleetRole, } - impl From<&FleetRoleRoleAssignment> for FleetRoleRoleAssignment { + impl ::std::convert::From<&FleetRoleRoleAssignment> for FleetRoleRoleAssignment { fn from(value: &FleetRoleRoleAssignment) -> Self { value.clone() } @@ -2900,7 +2903,7 @@ pub mod types { pub version: ::std::string::String, } - impl From<&GlobalImage> for GlobalImage { + impl ::std::convert::From<&GlobalImage> for GlobalImage { fn from(value: &GlobalImage) -> Self { value.clone() } @@ -2970,7 +2973,7 @@ pub mod types { pub source: ImageSource, } - impl From<&GlobalImageCreate> for GlobalImageCreate { + impl ::std::convert::From<&GlobalImageCreate> for GlobalImageCreate { fn from(value: &GlobalImageCreate) -> Self { value.clone() } @@ -3016,7 +3019,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&GlobalImageResultsPage> for GlobalImageResultsPage { + impl ::std::convert::From<&GlobalImageResultsPage> for GlobalImageResultsPage { fn from(value: &GlobalImageResultsPage) -> Self { value.clone() } @@ -3062,7 +3065,7 @@ pub mod types { pub silo_id: uuid::Uuid, } - impl From<&Group> for Group { + impl ::std::convert::From<&Group> for Group { fn from(value: &Group) -> Self { value.clone() } @@ -3108,7 +3111,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&GroupResultsPage> for GroupResultsPage { + impl ::std::convert::From<&GroupResultsPage> for GroupResultsPage { fn from(value: &GroupResultsPage) -> Self { value.clone() } @@ -3226,7 +3229,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&Histogramdouble> for Histogramdouble { + impl ::std::convert::From<&Histogramdouble> for Histogramdouble { fn from(value: &Histogramdouble) -> Self { value.clone() } @@ -3344,7 +3347,7 @@ pub mod types { pub start_time: chrono::DateTime, } - impl From<&Histogramint64> for Histogramint64 { + impl ::std::convert::From<&Histogramint64> for Histogramint64 { fn from(value: &Histogramint64) -> Self { value.clone() } @@ -3390,7 +3393,7 @@ pub mod types { IdAscending, } - impl From<&IdSortMode> for IdSortMode { + impl ::std::convert::From<&IdSortMode> for IdSortMode { fn from(value: &IdSortMode) -> Self { value.clone() } @@ -3404,7 +3407,7 @@ pub mod types { } } - impl std::str::FromStr for IdSortMode { + impl ::std::str::FromStr for IdSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3414,14 +3417,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdSortMode { + impl ::std::convert::TryFrom<&str> for IdSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for IdSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3430,7 +3433,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdSortMode { + impl ::std::convert::TryFrom<::std::string::String> for IdSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3513,7 +3516,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&IdentityProvider> for IdentityProvider { + impl ::std::convert::From<&IdentityProvider> for IdentityProvider { fn from(value: &IdentityProvider) -> Self { value.clone() } @@ -3559,7 +3562,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { + impl ::std::convert::From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { fn from(value: &IdentityProviderResultsPage) -> Self { value.clone() } @@ -3601,7 +3604,7 @@ pub mod types { Saml, } - impl From<&IdentityProviderType> for IdentityProviderType { + impl ::std::convert::From<&IdentityProviderType> for IdentityProviderType { fn from(value: &IdentityProviderType) -> Self { value.clone() } @@ -3615,7 +3618,7 @@ pub mod types { } } - impl std::str::FromStr for IdentityProviderType { + impl ::std::str::FromStr for IdentityProviderType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3625,14 +3628,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdentityProviderType { + impl ::std::convert::TryFrom<&str> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdentityProviderType { + impl ::std::convert::TryFrom<&::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3641,7 +3644,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdentityProviderType { + impl ::std::convert::TryFrom<::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3684,7 +3687,7 @@ pub mod types { SiloGroup, } - impl From<&IdentityType> for IdentityType { + impl ::std::convert::From<&IdentityType> for IdentityType { fn from(value: &IdentityType) -> Self { value.clone() } @@ -3699,7 +3702,7 @@ pub mod types { } } - impl std::str::FromStr for IdentityType { + impl ::std::str::FromStr for IdentityType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -3710,14 +3713,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IdentityType { + impl ::std::convert::TryFrom<&str> for IdentityType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IdentityType { + impl ::std::convert::TryFrom<&::std::string::String> for IdentityType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -3726,7 +3729,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IdentityType { + impl ::std::convert::TryFrom<::std::string::String> for IdentityType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -3791,7 +3794,7 @@ pub mod types { Base64EncodedXml { data: ::std::string::String }, } - impl From<&IdpMetadataSource> for IdpMetadataSource { + impl ::std::convert::From<&IdpMetadataSource> for IdpMetadataSource { fn from(value: &IdpMetadataSource) -> Self { value.clone() } @@ -3928,7 +3931,7 @@ pub mod types { pub version: ::std::option::Option<::std::string::String>, } - impl From<&Image> for Image { + impl ::std::convert::From<&Image> for Image { fn from(value: &Image) -> Self { value.clone() } @@ -3987,7 +3990,7 @@ pub mod types { pub source: ImageSource, } - impl From<&ImageCreate> for ImageCreate { + impl ::std::convert::From<&ImageCreate> for ImageCreate { fn from(value: &ImageCreate) -> Self { value.clone() } @@ -4033,7 +4036,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ImageResultsPage> for ImageResultsPage { + impl ::std::convert::From<&ImageResultsPage> for ImageResultsPage { fn from(value: &ImageResultsPage) -> Self { value.clone() } @@ -4115,7 +4118,7 @@ pub mod types { YouCanBootAnythingAsLongAsItsAlpine, } - impl From<&ImageSource> for ImageSource { + impl ::std::convert::From<&ImageSource> for ImageSource { fn from(value: &ImageSource) -> Self { value.clone() } @@ -4232,7 +4235,7 @@ pub mod types { pub time_run_state_updated: chrono::DateTime, } - impl From<&Instance> for Instance { + impl ::std::convert::From<&Instance> for Instance { fn from(value: &Instance) -> Self { value.clone() } @@ -4252,6 +4255,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct InstanceCpuCount(pub u16); impl ::std::ops::Deref for InstanceCpuCount { type Target = u16; @@ -4260,46 +4264,46 @@ pub mod types { } } - impl From for u16 { + impl ::std::convert::From for u16 { fn from(value: InstanceCpuCount) -> Self { value.0 } } - impl From<&InstanceCpuCount> for InstanceCpuCount { + impl ::std::convert::From<&InstanceCpuCount> for InstanceCpuCount { fn from(value: &InstanceCpuCount) -> Self { value.clone() } } - impl From for InstanceCpuCount { + impl ::std::convert::From for InstanceCpuCount { fn from(value: u16) -> Self { Self(value) } } - impl std::str::FromStr for InstanceCpuCount { + impl ::std::str::FromStr for InstanceCpuCount { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for InstanceCpuCount { + impl ::std::convert::TryFrom<&str> for InstanceCpuCount { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceCpuCount { + impl ::std::convert::TryFrom<&String> for InstanceCpuCount { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceCpuCount { + impl ::std::convert::TryFrom for InstanceCpuCount { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -4429,7 +4433,7 @@ pub mod types { pub user_data: ::std::string::String, } - impl From<&InstanceCreate> for InstanceCreate { + impl ::std::convert::From<&InstanceCreate> for InstanceCreate { fn from(value: &InstanceCreate) -> Self { value.clone() } @@ -4533,7 +4537,7 @@ pub mod types { }, } - impl From<&InstanceDiskAttachment> for InstanceDiskAttachment { + impl ::std::convert::From<&InstanceDiskAttachment> for InstanceDiskAttachment { fn from(value: &InstanceDiskAttachment) -> Self { value.clone() } @@ -4566,7 +4570,7 @@ pub mod types { pub dst_sled_id: uuid::Uuid, } - impl From<&InstanceMigrate> for InstanceMigrate { + impl ::std::convert::From<&InstanceMigrate> for InstanceMigrate { fn from(value: &InstanceMigrate) -> Self { value.clone() } @@ -4659,13 +4663,17 @@ pub mod types { None, } - impl From<&InstanceNetworkInterfaceAttachment> for InstanceNetworkInterfaceAttachment { + impl ::std::convert::From<&InstanceNetworkInterfaceAttachment> + for InstanceNetworkInterfaceAttachment + { fn from(value: &InstanceNetworkInterfaceAttachment) -> Self { value.clone() } } - impl From<::std::vec::Vec> for InstanceNetworkInterfaceAttachment { + impl ::std::convert::From<::std::vec::Vec> + for InstanceNetworkInterfaceAttachment + { fn from(value: ::std::vec::Vec) -> Self { Self::Create(value) } @@ -4711,7 +4719,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&InstanceResultsPage> for InstanceResultsPage { + impl ::std::convert::From<&InstanceResultsPage> for InstanceResultsPage { fn from(value: &InstanceResultsPage) -> Self { value.clone() } @@ -4764,7 +4772,7 @@ pub mod types { pub last_byte_offset: u64, } - impl From<&InstanceSerialConsoleData> for InstanceSerialConsoleData { + impl ::std::convert::From<&InstanceSerialConsoleData> for InstanceSerialConsoleData { fn from(value: &InstanceSerialConsoleData) -> Self { value.clone() } @@ -4911,7 +4919,7 @@ pub mod types { Destroyed, } - impl From<&InstanceState> for InstanceState { + impl ::std::convert::From<&InstanceState> for InstanceState { fn from(value: &InstanceState) -> Self { value.clone() } @@ -4934,7 +4942,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceState { + impl ::std::str::FromStr for InstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -4953,14 +4961,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceState { + impl ::std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -4969,7 +4977,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5012,7 +5020,7 @@ pub mod types { Floating, } - impl From<&IpKind> for IpKind { + impl ::std::convert::From<&IpKind> for IpKind { fn from(value: &IpKind) -> Self { value.clone() } @@ -5027,7 +5035,7 @@ pub mod types { } } - impl std::str::FromStr for IpKind { + impl ::std::str::FromStr for IpKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -5038,14 +5046,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IpKind { + impl ::std::convert::TryFrom<&str> for IpKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IpKind { + impl ::std::convert::TryFrom<&::std::string::String> for IpKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5054,7 +5062,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IpKind { + impl ::std::convert::TryFrom<::std::string::String> for IpKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5097,13 +5105,13 @@ pub mod types { V6(Ipv6Net), } - impl From<&IpNet> for IpNet { + impl ::std::convert::From<&IpNet> for IpNet { fn from(value: &IpNet) -> Self { value.clone() } } - impl std::str::FromStr for IpNet { + impl ::std::str::FromStr for IpNet { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -5116,14 +5124,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for IpNet { + impl ::std::convert::TryFrom<&str> for IpNet { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for IpNet { + impl ::std::convert::TryFrom<&::std::string::String> for IpNet { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -5132,7 +5140,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for IpNet { + impl ::std::convert::TryFrom<::std::string::String> for IpNet { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -5150,13 +5158,13 @@ pub mod types { } } - impl From for IpNet { + impl ::std::convert::From for IpNet { fn from(value: Ipv4Net) -> Self { Self::V4(value) } } - impl From for IpNet { + impl ::std::convert::From for IpNet { fn from(value: Ipv6Net) -> Self { Self::V6(value) } @@ -5227,7 +5235,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&IpPool> for IpPool { + impl ::std::convert::From<&IpPool> for IpPool { fn from(value: &IpPool) -> Self { value.clone() } @@ -5265,7 +5273,7 @@ pub mod types { pub name: Name, } - impl From<&IpPoolCreate> for IpPoolCreate { + impl ::std::convert::From<&IpPoolCreate> for IpPoolCreate { fn from(value: &IpPoolCreate) -> Self { value.clone() } @@ -5306,7 +5314,7 @@ pub mod types { pub time_created: chrono::DateTime, } - impl From<&IpPoolRange> for IpPoolRange { + impl ::std::convert::From<&IpPoolRange> for IpPoolRange { fn from(value: &IpPoolRange) -> Self { value.clone() } @@ -5352,7 +5360,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { + impl ::std::convert::From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { fn from(value: &IpPoolRangeResultsPage) -> Self { value.clone() } @@ -5398,7 +5406,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&IpPoolResultsPage> for IpPoolResultsPage { + impl ::std::convert::From<&IpPoolResultsPage> for IpPoolResultsPage { fn from(value: &IpPoolResultsPage) -> Self { value.clone() } @@ -5445,12 +5453,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&IpPoolUpdate> for IpPoolUpdate { + impl ::std::convert::From<&IpPoolUpdate> for IpPoolUpdate { fn from(value: &IpPoolUpdate) -> Self { value.clone() } } + impl ::std::default::Default for IpPoolUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + ///IpRange /// ///
JSON schema @@ -5485,19 +5502,19 @@ pub mod types { V6(Ipv6Range), } - impl From<&IpRange> for IpRange { + impl ::std::convert::From<&IpRange> for IpRange { fn from(value: &IpRange) -> Self { value.clone() } } - impl From for IpRange { + impl ::std::convert::From for IpRange { fn from(value: Ipv4Range) -> Self { Self::V4(value) } } - impl From for IpRange { + impl ::std::convert::From for IpRange { fn from(value: Ipv6Range) -> Self { Self::V6(value) } @@ -5523,6 +5540,7 @@ pub mod types { /// ``` ///
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Ipv4Net(::std::string::String); impl ::std::ops::Deref for Ipv4Net { type Target = ::std::string::String; @@ -5531,13 +5549,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Ipv4Net) -> Self { value.0 } } - impl From<&Ipv4Net> for Ipv4Net { + impl ::std::convert::From<&Ipv4Net> for Ipv4Net { fn from(value: &Ipv4Net) -> Self { value.clone() } @@ -5638,7 +5656,7 @@ pub mod types { pub last: std::net::Ipv4Addr, } - impl From<&Ipv4Range> for Ipv4Range { + impl ::std::convert::From<&Ipv4Range> for Ipv4Range { fn from(value: &Ipv4Range) -> Self { value.clone() } @@ -5663,6 +5681,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Ipv6Net(::std::string::String); impl ::std::ops::Deref for Ipv6Net { type Target = ::std::string::String; @@ -5671,13 +5690,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Ipv6Net) -> Self { value.0 } } - impl From<&Ipv6Net> for Ipv6Net { + impl ::std::convert::From<&Ipv6Net> for Ipv6Net { fn from(value: &Ipv6Net) -> Self { value.clone() } @@ -5777,7 +5796,7 @@ pub mod types { pub last: std::net::Ipv6Addr, } - impl From<&Ipv6Range> for Ipv6Range { + impl ::std::convert::From<&Ipv6Range> for Ipv6Range { fn from(value: &Ipv6Range) -> Self { value.clone() } @@ -5804,6 +5823,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct L4PortRange(::std::string::String); impl ::std::ops::Deref for L4PortRange { type Target = ::std::string::String; @@ -5812,13 +5832,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: L4PortRange) -> Self { value.0 } } - impl From<&L4PortRange> for L4PortRange { + impl ::std::convert::From<&L4PortRange> for L4PortRange { fn from(value: &L4PortRange) -> Self { value.clone() } @@ -5901,6 +5921,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct MacAddr(::std::string::String); impl ::std::ops::Deref for MacAddr { type Target = ::std::string::String; @@ -5909,13 +5930,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: MacAddr) -> Self { value.0 } } - impl From<&MacAddr> for MacAddr { + impl ::std::convert::From<&MacAddr> for MacAddr { fn from(value: &MacAddr) -> Self { value.clone() } @@ -6012,7 +6033,7 @@ pub mod types { pub timestamp: chrono::DateTime, } - impl From<&Measurement> for Measurement { + impl ::std::convert::From<&Measurement> for Measurement { fn from(value: &Measurement) -> Self { value.clone() } @@ -6058,7 +6079,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&MeasurementResultsPage> for MeasurementResultsPage { + impl ::std::convert::From<&MeasurementResultsPage> for MeasurementResultsPage { fn from(value: &MeasurementResultsPage) -> Self { value.clone() } @@ -6086,6 +6107,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Name(::std::string::String); impl ::std::ops::Deref for Name { type Target = ::std::string::String; @@ -6094,13 +6116,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Name) -> Self { value.0 } } - impl From<&Name> for Name { + impl ::std::convert::From<&Name> for Name { fn from(value: &Name) -> Self { value.clone() } @@ -6190,13 +6212,13 @@ pub mod types { Name(Name), } - impl From<&NameOrId> for NameOrId { + impl ::std::convert::From<&NameOrId> for NameOrId { fn from(value: &NameOrId) -> Self { value.clone() } } - impl std::str::FromStr for NameOrId { + impl ::std::str::FromStr for NameOrId { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { @@ -6209,14 +6231,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameOrId { + impl ::std::convert::TryFrom<&str> for NameOrId { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameOrId { + impl ::std::convert::TryFrom<&::std::string::String> for NameOrId { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6225,7 +6247,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameOrId { + impl ::std::convert::TryFrom<::std::string::String> for NameOrId { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6243,13 +6265,13 @@ pub mod types { } } - impl From for NameOrId { + impl ::std::convert::From for NameOrId { fn from(value: uuid::Uuid) -> Self { Self::Id(value) } } - impl From for NameOrId { + impl ::std::convert::From for NameOrId { fn from(value: Name) -> Self { Self::Name(value) } @@ -6313,7 +6335,7 @@ pub mod types { IdAscending, } - impl From<&NameOrIdSortMode> for NameOrIdSortMode { + impl ::std::convert::From<&NameOrIdSortMode> for NameOrIdSortMode { fn from(value: &NameOrIdSortMode) -> Self { value.clone() } @@ -6329,7 +6351,7 @@ pub mod types { } } - impl std::str::FromStr for NameOrIdSortMode { + impl ::std::str::FromStr for NameOrIdSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6341,14 +6363,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameOrIdSortMode { + impl ::std::convert::TryFrom<&str> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6357,7 +6379,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { + impl ::std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6406,7 +6428,7 @@ pub mod types { NameAscending, } - impl From<&NameSortMode> for NameSortMode { + impl ::std::convert::From<&NameSortMode> for NameSortMode { fn from(value: &NameSortMode) -> Self { value.clone() } @@ -6420,7 +6442,7 @@ pub mod types { } } - impl std::str::FromStr for NameSortMode { + impl ::std::str::FromStr for NameSortMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -6430,14 +6452,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for NameSortMode { + impl ::std::convert::TryFrom<&str> for NameSortMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for NameSortMode { + impl ::std::convert::TryFrom<&::std::string::String> for NameSortMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -6446,7 +6468,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for NameSortMode { + impl ::std::convert::TryFrom<::std::string::String> for NameSortMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -6571,7 +6593,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&NetworkInterface> for NetworkInterface { + impl ::std::convert::From<&NetworkInterface> for NetworkInterface { fn from(value: &NetworkInterface) -> Self { value.clone() } @@ -6642,7 +6664,7 @@ pub mod types { pub vpc_name: Name, } - impl From<&NetworkInterfaceCreate> for NetworkInterfaceCreate { + impl ::std::convert::From<&NetworkInterfaceCreate> for NetworkInterfaceCreate { fn from(value: &NetworkInterfaceCreate) -> Self { value.clone() } @@ -6688,7 +6710,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { + impl ::std::convert::From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { fn from(value: &NetworkInterfaceResultsPage) -> Self { value.clone() } @@ -6767,12 +6789,22 @@ pub mod types { pub primary: bool, } - impl From<&NetworkInterfaceUpdate> for NetworkInterfaceUpdate { + impl ::std::convert::From<&NetworkInterfaceUpdate> for NetworkInterfaceUpdate { fn from(value: &NetworkInterfaceUpdate) -> Self { value.clone() } } + impl ::std::default::Default for NetworkInterfaceUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + primary: Default::default(), + } + } + } + ///Unique name for a saga [`Node`] /// ///Each node requires a string name that's unique within its DAG. The name @@ -6803,6 +6835,7 @@ pub mod types { PartialEq, PartialOrd, )] + #[serde(transparent)] pub struct NodeName(pub ::std::string::String); impl ::std::ops::Deref for NodeName { type Target = ::std::string::String; @@ -6811,19 +6844,19 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: NodeName) -> Self { value.0 } } - impl From<&NodeName> for NodeName { + impl ::std::convert::From<&NodeName> for NodeName { fn from(value: &NodeName) -> Self { value.clone() } } - impl From<::std::string::String> for NodeName { + impl ::std::convert::From<::std::string::String> for NodeName { fn from(value: ::std::string::String) -> Self { Self(value) } @@ -6905,7 +6938,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Organization> for Organization { + impl ::std::convert::From<&Organization> for Organization { fn from(value: &Organization) -> Self { value.clone() } @@ -6942,7 +6975,7 @@ pub mod types { pub name: Name, } - impl From<&OrganizationCreate> for OrganizationCreate { + impl ::std::convert::From<&OrganizationCreate> for OrganizationCreate { fn from(value: &OrganizationCreate) -> Self { value.clone() } @@ -6988,7 +7021,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&OrganizationResultsPage> for OrganizationResultsPage { + impl ::std::convert::From<&OrganizationResultsPage> for OrganizationResultsPage { fn from(value: &OrganizationResultsPage) -> Self { value.clone() } @@ -7030,7 +7063,7 @@ pub mod types { Viewer, } - impl From<&OrganizationRole> for OrganizationRole { + impl ::std::convert::From<&OrganizationRole> for OrganizationRole { fn from(value: &OrganizationRole) -> Self { value.clone() } @@ -7046,7 +7079,7 @@ pub mod types { } } - impl std::str::FromStr for OrganizationRole { + impl ::std::str::FromStr for OrganizationRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7058,14 +7091,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for OrganizationRole { + impl ::std::convert::TryFrom<&str> for OrganizationRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for OrganizationRole { + impl ::std::convert::TryFrom<&::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7074,7 +7107,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for OrganizationRole { + impl ::std::convert::TryFrom<::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7120,7 +7153,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&OrganizationRolePolicy> for OrganizationRolePolicy { + impl ::std::convert::From<&OrganizationRolePolicy> for OrganizationRolePolicy { fn from(value: &OrganizationRolePolicy) -> Self { value.clone() } @@ -7170,7 +7203,7 @@ pub mod types { pub role_name: OrganizationRole, } - impl From<&OrganizationRoleRoleAssignment> for OrganizationRoleRoleAssignment { + impl ::std::convert::From<&OrganizationRoleRoleAssignment> for OrganizationRoleRoleAssignment { fn from(value: &OrganizationRoleRoleAssignment) -> Self { value.clone() } @@ -7219,12 +7252,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&OrganizationUpdate> for OrganizationUpdate { + impl ::std::convert::From<&OrganizationUpdate> for OrganizationUpdate { fn from(value: &OrganizationUpdate) -> Self { value.clone() } } + impl ::std::default::Default for OrganizationUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + ///Passwords may be subject to additional constraints. /// ///
JSON schema @@ -7239,6 +7281,7 @@ pub mod types { /// ``` ///
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct Password(::std::string::String); impl ::std::ops::Deref for Password { type Target = ::std::string::String; @@ -7247,13 +7290,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: Password) -> Self { value.0 } } - impl From<&Password> for Password { + impl ::std::convert::From<&Password> for Password { fn from(value: &Password) -> Self { value.clone() } @@ -7382,7 +7425,7 @@ pub mod types { pub vendor: ::std::string::String, } - impl From<&PhysicalDisk> for PhysicalDisk { + impl ::std::convert::From<&PhysicalDisk> for PhysicalDisk { fn from(value: &PhysicalDisk) -> Self { value.clone() } @@ -7428,7 +7471,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { + impl ::std::convert::From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { fn from(value: &PhysicalDiskResultsPage) -> Self { value.clone() } @@ -7467,7 +7510,7 @@ pub mod types { External, } - impl From<&PhysicalDiskType> for PhysicalDiskType { + impl ::std::convert::From<&PhysicalDiskType> for PhysicalDiskType { fn from(value: &PhysicalDiskType) -> Self { value.clone() } @@ -7482,7 +7525,7 @@ pub mod types { } } - impl std::str::FromStr for PhysicalDiskType { + impl ::std::str::FromStr for PhysicalDiskType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7493,14 +7536,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for PhysicalDiskType { + impl ::std::convert::TryFrom<&str> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { + impl ::std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7509,7 +7552,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for PhysicalDiskType { + impl ::std::convert::TryFrom<::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7587,7 +7630,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Project> for Project { + impl ::std::convert::From<&Project> for Project { fn from(value: &Project) -> Self { value.clone() } @@ -7624,7 +7667,7 @@ pub mod types { pub name: Name, } - impl From<&ProjectCreate> for ProjectCreate { + impl ::std::convert::From<&ProjectCreate> for ProjectCreate { fn from(value: &ProjectCreate) -> Self { value.clone() } @@ -7670,7 +7713,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&ProjectResultsPage> for ProjectResultsPage { + impl ::std::convert::From<&ProjectResultsPage> for ProjectResultsPage { fn from(value: &ProjectResultsPage) -> Self { value.clone() } @@ -7712,7 +7755,7 @@ pub mod types { Viewer, } - impl From<&ProjectRole> for ProjectRole { + impl ::std::convert::From<&ProjectRole> for ProjectRole { fn from(value: &ProjectRole) -> Self { value.clone() } @@ -7728,7 +7771,7 @@ pub mod types { } } - impl std::str::FromStr for ProjectRole { + impl ::std::str::FromStr for ProjectRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -7740,14 +7783,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for ProjectRole { + impl ::std::convert::TryFrom<&str> for ProjectRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for ProjectRole { + impl ::std::convert::TryFrom<&::std::string::String> for ProjectRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -7756,7 +7799,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for ProjectRole { + impl ::std::convert::TryFrom<::std::string::String> for ProjectRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -7802,7 +7845,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&ProjectRolePolicy> for ProjectRolePolicy { + impl ::std::convert::From<&ProjectRolePolicy> for ProjectRolePolicy { fn from(value: &ProjectRolePolicy) -> Self { value.clone() } @@ -7852,7 +7895,7 @@ pub mod types { pub role_name: ProjectRole, } - impl From<&ProjectRoleRoleAssignment> for ProjectRoleRoleAssignment { + impl ::std::convert::From<&ProjectRoleRoleAssignment> for ProjectRoleRoleAssignment { fn from(value: &ProjectRoleRoleAssignment) -> Self { value.clone() } @@ -7901,12 +7944,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&ProjectUpdate> for ProjectUpdate { + impl ::std::convert::From<&ProjectUpdate> for ProjectUpdate { fn from(value: &ProjectUpdate) -> Self { value.clone() } } + impl ::std::default::Default for ProjectUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + ///Client view of an [`Rack`] /// ///
JSON schema @@ -7951,7 +8003,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Rack> for Rack { + impl ::std::convert::From<&Rack> for Rack { fn from(value: &Rack) -> Self { value.clone() } @@ -7997,7 +8049,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RackResultsPage> for RackResultsPage { + impl ::std::convert::From<&RackResultsPage> for RackResultsPage { fn from(value: &RackResultsPage) -> Self { value.clone() } @@ -8032,7 +8084,7 @@ pub mod types { pub name: RoleName, } - impl From<&Role> for Role { + impl ::std::convert::From<&Role> for Role { fn from(value: &Role) -> Self { value.clone() } @@ -8054,6 +8106,7 @@ pub mod types { /// ``` ///
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct RoleName(::std::string::String); impl ::std::ops::Deref for RoleName { type Target = ::std::string::String; @@ -8062,13 +8115,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: RoleName) -> Self { value.0 } } - impl From<&RoleName> for RoleName { + impl ::std::convert::From<&RoleName> for RoleName { fn from(value: &RoleName) -> Self { value.clone() } @@ -8169,7 +8222,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RoleResultsPage> for RoleResultsPage { + impl ::std::convert::From<&RoleResultsPage> for RoleResultsPage { fn from(value: &RoleResultsPage) -> Self { value.clone() } @@ -8293,19 +8346,19 @@ pub mod types { Subnet(Name), } - impl From<&RouteDestination> for RouteDestination { + impl ::std::convert::From<&RouteDestination> for RouteDestination { fn from(value: &RouteDestination) -> Self { value.clone() } } - impl From for RouteDestination { + impl ::std::convert::From for RouteDestination { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for RouteDestination { + impl ::std::convert::From for RouteDestination { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -8441,13 +8494,13 @@ pub mod types { InternetGateway(Name), } - impl From<&RouteTarget> for RouteTarget { + impl ::std::convert::From<&RouteTarget> for RouteTarget { fn from(value: &RouteTarget) -> Self { value.clone() } } - impl From for RouteTarget { + impl ::std::convert::From for RouteTarget { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } @@ -8548,7 +8601,7 @@ pub mod types { pub vpc_router_id: uuid::Uuid, } - impl From<&RouterRoute> for RouterRoute { + impl ::std::convert::From<&RouterRoute> for RouterRoute { fn from(value: &RouterRoute) -> Self { value.clone() } @@ -8593,7 +8646,7 @@ pub mod types { pub target: RouteTarget, } - impl From<&RouterRouteCreateParams> for RouterRouteCreateParams { + impl ::std::convert::From<&RouterRouteCreateParams> for RouterRouteCreateParams { fn from(value: &RouterRouteCreateParams) -> Self { value.clone() } @@ -8684,7 +8737,7 @@ pub mod types { Custom, } - impl From<&RouterRouteKind> for RouterRouteKind { + impl ::std::convert::From<&RouterRouteKind> for RouterRouteKind { fn from(value: &RouterRouteKind) -> Self { value.clone() } @@ -8701,7 +8754,7 @@ pub mod types { } } - impl std::str::FromStr for RouterRouteKind { + impl ::std::str::FromStr for RouterRouteKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -8714,14 +8767,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for RouterRouteKind { + impl ::std::convert::TryFrom<&str> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for RouterRouteKind { + impl ::std::convert::TryFrom<&::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -8730,7 +8783,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for RouterRouteKind { + impl ::std::convert::TryFrom<::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -8779,7 +8832,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&RouterRouteResultsPage> for RouterRouteResultsPage { + impl ::std::convert::From<&RouterRouteResultsPage> for RouterRouteResultsPage { fn from(value: &RouterRouteResultsPage) -> Self { value.clone() } @@ -8838,7 +8891,7 @@ pub mod types { pub target: RouteTarget, } - impl From<&RouterRouteUpdateParams> for RouterRouteUpdateParams { + impl ::std::convert::From<&RouterRouteUpdateParams> for RouterRouteUpdateParams { fn from(value: &RouterRouteUpdateParams) -> Self { value.clone() } @@ -8873,7 +8926,7 @@ pub mod types { pub state: SagaState, } - impl From<&Saga> for Saga { + impl ::std::convert::From<&Saga> for Saga { fn from(value: &Saga) -> Self { value.clone() } @@ -8989,7 +9042,7 @@ pub mod types { SubsagaCreateFailed { message: ::std::string::String }, } - impl From<&SagaErrorInfo> for SagaErrorInfo { + impl ::std::convert::From<&SagaErrorInfo> for SagaErrorInfo { fn from(value: &SagaErrorInfo) -> Self { value.clone() } @@ -9035,7 +9088,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SagaResultsPage> for SagaResultsPage { + impl ::std::convert::From<&SagaResultsPage> for SagaResultsPage { fn from(value: &SagaResultsPage) -> Self { value.clone() } @@ -9116,7 +9169,7 @@ pub mod types { }, } - impl From<&SagaState> for SagaState { + impl ::std::convert::From<&SagaState> for SagaState { fn from(value: &SagaState) -> Self { value.clone() } @@ -9237,7 +9290,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&SamlIdentityProvider> for SamlIdentityProvider { + impl ::std::convert::From<&SamlIdentityProvider> for SamlIdentityProvider { fn from(value: &SamlIdentityProvider) -> Self { value.clone() } @@ -9354,7 +9407,7 @@ pub mod types { pub technical_contact_email: ::std::string::String, } - impl From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { + impl ::std::convert::From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { fn from(value: &SamlIdentityProviderCreate) -> Self { value.clone() } @@ -9372,6 +9425,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct SemverVersion(::std::string::String); impl ::std::ops::Deref for SemverVersion { type Target = ::std::string::String; @@ -9380,13 +9434,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: SemverVersion) -> Self { value.0 } } - impl From<&SemverVersion> for SemverVersion { + impl ::std::convert::From<&SemverVersion> for SemverVersion { fn from(value: &SemverVersion) -> Self { value.clone() } @@ -9482,7 +9536,7 @@ pub mod types { ExternalApi, } - impl From<&ServiceUsingCertificate> for ServiceUsingCertificate { + impl ::std::convert::From<&ServiceUsingCertificate> for ServiceUsingCertificate { fn from(value: &ServiceUsingCertificate) -> Self { value.clone() } @@ -9496,7 +9550,7 @@ pub mod types { } } - impl std::str::FromStr for ServiceUsingCertificate { + impl ::std::str::FromStr for ServiceUsingCertificate { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9506,14 +9560,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<&str> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9522,7 +9576,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { + impl ::std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9613,7 +9667,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Silo> for Silo { + impl ::std::convert::From<&Silo> for Silo { fn from(value: &Silo) -> Self { value.clone() } @@ -9682,7 +9736,7 @@ pub mod types { pub name: Name, } - impl From<&SiloCreate> for SiloCreate { + impl ::std::convert::From<&SiloCreate> for SiloCreate { fn from(value: &SiloCreate) -> Self { value.clone() } @@ -9746,7 +9800,7 @@ pub mod types { LocalOnly, } - impl From<&SiloIdentityMode> for SiloIdentityMode { + impl ::std::convert::From<&SiloIdentityMode> for SiloIdentityMode { fn from(value: &SiloIdentityMode) -> Self { value.clone() } @@ -9761,7 +9815,7 @@ pub mod types { } } - impl std::str::FromStr for SiloIdentityMode { + impl ::std::str::FromStr for SiloIdentityMode { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9772,14 +9826,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SiloIdentityMode { + impl ::std::convert::TryFrom<&str> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { + impl ::std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9788,7 +9842,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SiloIdentityMode { + impl ::std::convert::TryFrom<::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9837,7 +9891,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SiloResultsPage> for SiloResultsPage { + impl ::std::convert::From<&SiloResultsPage> for SiloResultsPage { fn from(value: &SiloResultsPage) -> Self { value.clone() } @@ -9879,7 +9933,7 @@ pub mod types { Viewer, } - impl From<&SiloRole> for SiloRole { + impl ::std::convert::From<&SiloRole> for SiloRole { fn from(value: &SiloRole) -> Self { value.clone() } @@ -9895,7 +9949,7 @@ pub mod types { } } - impl std::str::FromStr for SiloRole { + impl ::std::str::FromStr for SiloRole { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -9907,14 +9961,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SiloRole { + impl ::std::convert::TryFrom<&str> for SiloRole { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SiloRole { + impl ::std::convert::TryFrom<&::std::string::String> for SiloRole { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -9923,7 +9977,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SiloRole { + impl ::std::convert::TryFrom<::std::string::String> for SiloRole { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -9969,7 +10023,7 @@ pub mod types { pub role_assignments: ::std::vec::Vec, } - impl From<&SiloRolePolicy> for SiloRolePolicy { + impl ::std::convert::From<&SiloRolePolicy> for SiloRolePolicy { fn from(value: &SiloRolePolicy) -> Self { value.clone() } @@ -10019,7 +10073,7 @@ pub mod types { pub role_name: SiloRole, } - impl From<&SiloRoleRoleAssignment> for SiloRoleRoleAssignment { + impl ::std::convert::From<&SiloRoleRoleAssignment> for SiloRoleRoleAssignment { fn from(value: &SiloRoleRoleAssignment) -> Self { value.clone() } @@ -10079,7 +10133,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Sled> for Sled { + impl ::std::convert::From<&Sled> for Sled { fn from(value: &Sled) -> Self { value.clone() } @@ -10125,7 +10179,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SledResultsPage> for SledResultsPage { + impl ::std::convert::From<&SledResultsPage> for SledResultsPage { fn from(value: &SledResultsPage) -> Self { value.clone() } @@ -10216,7 +10270,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Snapshot> for Snapshot { + impl ::std::convert::From<&Snapshot> for Snapshot { fn from(value: &Snapshot) -> Self { value.clone() } @@ -10264,7 +10318,7 @@ pub mod types { pub name: Name, } - impl From<&SnapshotCreate> for SnapshotCreate { + impl ::std::convert::From<&SnapshotCreate> for SnapshotCreate { fn from(value: &SnapshotCreate) -> Self { value.clone() } @@ -10310,7 +10364,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SnapshotResultsPage> for SnapshotResultsPage { + impl ::std::convert::From<&SnapshotResultsPage> for SnapshotResultsPage { fn from(value: &SnapshotResultsPage) -> Self { value.clone() } @@ -10355,7 +10409,7 @@ pub mod types { Destroyed, } - impl From<&SnapshotState> for SnapshotState { + impl ::std::convert::From<&SnapshotState> for SnapshotState { fn from(value: &SnapshotState) -> Self { value.clone() } @@ -10372,7 +10426,7 @@ pub mod types { } } - impl std::str::FromStr for SnapshotState { + impl ::std::str::FromStr for SnapshotState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10385,14 +10439,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SnapshotState { + impl ::std::convert::TryFrom<&str> for SnapshotState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SnapshotState { + impl ::std::convert::TryFrom<&::std::string::String> for SnapshotState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10401,7 +10455,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SnapshotState { + impl ::std::convert::TryFrom<::std::string::String> for SnapshotState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10433,7 +10487,7 @@ pub mod types { pub username: ::std::string::String, } - impl From<&SpoofLoginBody> for SpoofLoginBody { + impl ::std::convert::From<&SpoofLoginBody> for SpoofLoginBody { fn from(value: &SpoofLoginBody) -> Self { value.clone() } @@ -10518,7 +10572,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&SshKey> for SshKey { + impl ::std::convert::From<&SshKey> for SshKey { fn from(value: &SshKey) -> Self { value.clone() } @@ -10563,7 +10617,7 @@ pub mod types { pub public_key: ::std::string::String, } - impl From<&SshKeyCreate> for SshKeyCreate { + impl ::std::convert::From<&SshKeyCreate> for SshKeyCreate { fn from(value: &SshKeyCreate) -> Self { value.clone() } @@ -10609,7 +10663,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SshKeyResultsPage> for SshKeyResultsPage { + impl ::std::convert::From<&SshKeyResultsPage> for SshKeyResultsPage { fn from(value: &SshKeyResultsPage) -> Self { value.clone() } @@ -10651,7 +10705,7 @@ pub mod types { RamProvisioned, } - impl From<&SystemMetricName> for SystemMetricName { + impl ::std::convert::From<&SystemMetricName> for SystemMetricName { fn from(value: &SystemMetricName) -> Self { value.clone() } @@ -10667,7 +10721,7 @@ pub mod types { } } - impl std::str::FromStr for SystemMetricName { + impl ::std::str::FromStr for SystemMetricName { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -10679,14 +10733,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for SystemMetricName { + impl ::std::convert::TryFrom<&str> for SystemMetricName { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for SystemMetricName { + impl ::std::convert::TryFrom<&::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -10695,7 +10749,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for SystemMetricName { + impl ::std::convert::TryFrom<::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -10755,7 +10809,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&SystemUpdate> for SystemUpdate { + impl ::std::convert::From<&SystemUpdate> for SystemUpdate { fn from(value: &SystemUpdate) -> Self { value.clone() } @@ -10801,7 +10855,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { + impl ::std::convert::From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { fn from(value: &SystemUpdateResultsPage) -> Self { value.clone() } @@ -10830,7 +10884,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&SystemUpdateStart> for SystemUpdateStart { + impl ::std::convert::From<&SystemUpdateStart> for SystemUpdateStart { fn from(value: &SystemUpdateStart) -> Self { value.clone() } @@ -10864,7 +10918,7 @@ pub mod types { pub version_range: VersionRange, } - impl From<&SystemVersion> for SystemVersion { + impl ::std::convert::From<&SystemVersion> for SystemVersion { fn from(value: &SystemVersion) -> Self { value.clone() } @@ -10889,6 +10943,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct TimeseriesName(::std::string::String); impl ::std::ops::Deref for TimeseriesName { type Target = ::std::string::String; @@ -10897,13 +10952,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: TimeseriesName) -> Self { value.0 } } - impl From<&TimeseriesName> for TimeseriesName { + impl ::std::convert::From<&TimeseriesName> for TimeseriesName { fn from(value: &TimeseriesName) -> Self { value.clone() } @@ -11014,7 +11069,7 @@ pub mod types { pub timeseries_name: TimeseriesName, } - impl From<&TimeseriesSchema> for TimeseriesSchema { + impl ::std::convert::From<&TimeseriesSchema> for TimeseriesSchema { fn from(value: &TimeseriesSchema) -> Self { value.clone() } @@ -11060,7 +11115,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { + impl ::std::convert::From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { fn from(value: &TimeseriesSchemaResultsPage) -> Self { value.clone() } @@ -11122,7 +11177,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&UpdateDeployment> for UpdateDeployment { + impl ::std::convert::From<&UpdateDeployment> for UpdateDeployment { fn from(value: &UpdateDeployment) -> Self { value.clone() } @@ -11168,7 +11223,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { + impl ::std::convert::From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { fn from(value: &UpdateDeploymentResultsPage) -> Self { value.clone() } @@ -11233,7 +11288,7 @@ pub mod types { Steady, } - impl From<&UpdateStatus> for UpdateStatus { + impl ::std::convert::From<&UpdateStatus> for UpdateStatus { fn from(value: &UpdateStatus) -> Self { value.clone() } @@ -11248,7 +11303,7 @@ pub mod types { } } - impl std::str::FromStr for UpdateStatus { + impl ::std::str::FromStr for UpdateStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11259,14 +11314,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for UpdateStatus { + impl ::std::convert::TryFrom<&str> for UpdateStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for UpdateStatus { + impl ::std::convert::TryFrom<&::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11275,7 +11330,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for UpdateStatus { + impl ::std::convert::TryFrom<::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11355,7 +11410,7 @@ pub mod types { pub version: SemverVersion, } - impl From<&UpdateableComponent> for UpdateableComponent { + impl ::std::convert::From<&UpdateableComponent> for UpdateableComponent { fn from(value: &UpdateableComponent) -> Self { value.clone() } @@ -11401,7 +11456,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { + impl ::std::convert::From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { fn from(value: &UpdateableComponentResultsPage) -> Self { value.clone() } @@ -11470,7 +11525,7 @@ pub mod types { HostOmicron, } - impl From<&UpdateableComponentType> for UpdateableComponentType { + impl ::std::convert::From<&UpdateableComponentType> for UpdateableComponentType { fn from(value: &UpdateableComponentType) -> Self { value.clone() } @@ -11495,7 +11550,7 @@ pub mod types { } } - impl std::str::FromStr for UpdateableComponentType { + impl ::std::str::FromStr for UpdateableComponentType { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -11516,14 +11571,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for UpdateableComponentType { + impl ::std::convert::TryFrom<&str> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { + impl ::std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -11532,7 +11587,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for UpdateableComponentType { + impl ::std::convert::TryFrom<::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -11581,7 +11636,7 @@ pub mod types { pub silo_id: uuid::Uuid, } - impl From<&User> for User { + impl ::std::convert::From<&User> for User { fn from(value: &User) -> Self { value.clone() } @@ -11650,7 +11705,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&UserBuiltin> for UserBuiltin { + impl ::std::convert::From<&UserBuiltin> for UserBuiltin { fn from(value: &UserBuiltin) -> Self { value.clone() } @@ -11696,7 +11751,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { + impl ::std::convert::From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { fn from(value: &UserBuiltinResultsPage) -> Self { value.clone() } @@ -11744,7 +11799,7 @@ pub mod types { pub password: UserPassword, } - impl From<&UserCreate> for UserCreate { + impl ::std::convert::From<&UserCreate> for UserCreate { fn from(value: &UserCreate) -> Self { value.clone() } @@ -11772,6 +11827,7 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] pub struct UserId(::std::string::String); impl ::std::ops::Deref for UserId { type Target = ::std::string::String; @@ -11780,13 +11836,13 @@ pub mod types { } } - impl From for ::std::string::String { + impl ::std::convert::From for ::std::string::String { fn from(value: UserId) -> Self { value.0 } } - impl From<&UserId> for UserId { + impl ::std::convert::From<&UserId> for UserId { fn from(value: &UserId) -> Self { value.clone() } @@ -11898,13 +11954,13 @@ pub mod types { InvalidPassword, } - impl From<&UserPassword> for UserPassword { + impl ::std::convert::From<&UserPassword> for UserPassword { fn from(value: &UserPassword) -> Self { value.clone() } } - impl From for UserPassword { + impl ::std::convert::From for UserPassword { fn from(value: Password) -> Self { Self::Password(value) } @@ -11950,7 +12006,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&UserResultsPage> for UserResultsPage { + impl ::std::convert::From<&UserResultsPage> for UserResultsPage { fn from(value: &UserResultsPage) -> Self { value.clone() } @@ -11985,7 +12041,7 @@ pub mod types { pub username: UserId, } - impl From<&UsernamePasswordCredentials> for UsernamePasswordCredentials { + impl ::std::convert::From<&UsernamePasswordCredentials> for UsernamePasswordCredentials { fn from(value: &UsernamePasswordCredentials) -> Self { value.clone() } @@ -12019,7 +12075,7 @@ pub mod types { pub low: SemverVersion, } - impl From<&VersionRange> for VersionRange { + impl ::std::convert::From<&VersionRange> for VersionRange { fn from(value: &VersionRange) -> Self { value.clone() } @@ -12128,7 +12184,7 @@ pub mod types { pub time_modified: chrono::DateTime, } - impl From<&Vpc> for Vpc { + impl ::std::convert::From<&Vpc> for Vpc { fn from(value: &Vpc) -> Self { value.clone() } @@ -12195,7 +12251,7 @@ pub mod types { pub name: Name, } - impl From<&VpcCreate> for VpcCreate { + impl ::std::convert::From<&VpcCreate> for VpcCreate { fn from(value: &VpcCreate) -> Self { value.clone() } @@ -12338,7 +12394,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcFirewallRule> for VpcFirewallRule { + impl ::std::convert::From<&VpcFirewallRule> for VpcFirewallRule { fn from(value: &VpcFirewallRule) -> Self { value.clone() } @@ -12377,7 +12433,7 @@ pub mod types { Deny, } - impl From<&VpcFirewallRuleAction> for VpcFirewallRuleAction { + impl ::std::convert::From<&VpcFirewallRuleAction> for VpcFirewallRuleAction { fn from(value: &VpcFirewallRuleAction) -> Self { value.clone() } @@ -12392,7 +12448,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleAction { + impl ::std::str::FromStr for VpcFirewallRuleAction { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12403,14 +12459,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12419,7 +12475,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12461,7 +12517,7 @@ pub mod types { Outbound, } - impl From<&VpcFirewallRuleDirection> for VpcFirewallRuleDirection { + impl ::std::convert::From<&VpcFirewallRuleDirection> for VpcFirewallRuleDirection { fn from(value: &VpcFirewallRuleDirection) -> Self { value.clone() } @@ -12476,7 +12532,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleDirection { + impl ::std::str::FromStr for VpcFirewallRuleDirection { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12487,14 +12543,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12503,7 +12559,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12576,12 +12632,22 @@ pub mod types { pub protocols: ::std::option::Option<::std::vec::Vec>, } - impl From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { + impl ::std::convert::From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { fn from(value: &VpcFirewallRuleFilter) -> Self { value.clone() } } + impl ::std::default::Default for VpcFirewallRuleFilter { + fn default() -> Self { + Self { + hosts: Default::default(), + ports: Default::default(), + protocols: Default::default(), + } + } + } + ///The `VpcFirewallRuleHostFilter` is used to filter traffic on the basis /// of its source or destination host. /// @@ -12717,19 +12783,19 @@ pub mod types { IpNet(IpNet), } - impl From<&VpcFirewallRuleHostFilter> for VpcFirewallRuleHostFilter { + impl ::std::convert::From<&VpcFirewallRuleHostFilter> for VpcFirewallRuleHostFilter { fn from(value: &VpcFirewallRuleHostFilter) -> Self { value.clone() } } - impl From for VpcFirewallRuleHostFilter { + impl ::std::convert::From for VpcFirewallRuleHostFilter { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for VpcFirewallRuleHostFilter { + impl ::std::convert::From for VpcFirewallRuleHostFilter { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -12773,7 +12839,7 @@ pub mod types { Icmp, } - impl From<&VpcFirewallRuleProtocol> for VpcFirewallRuleProtocol { + impl ::std::convert::From<&VpcFirewallRuleProtocol> for VpcFirewallRuleProtocol { fn from(value: &VpcFirewallRuleProtocol) -> Self { value.clone() } @@ -12789,7 +12855,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleProtocol { + impl ::std::str::FromStr for VpcFirewallRuleProtocol { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12801,14 +12867,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12817,7 +12883,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -12859,7 +12925,7 @@ pub mod types { Enabled, } - impl From<&VpcFirewallRuleStatus> for VpcFirewallRuleStatus { + impl ::std::convert::From<&VpcFirewallRuleStatus> for VpcFirewallRuleStatus { fn from(value: &VpcFirewallRuleStatus) -> Self { value.clone() } @@ -12874,7 +12940,7 @@ pub mod types { } } - impl std::str::FromStr for VpcFirewallRuleStatus { + impl ::std::str::FromStr for VpcFirewallRuleStatus { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -12885,14 +12951,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<&str> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -12901,7 +12967,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { + impl ::std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13041,19 +13107,19 @@ pub mod types { IpNet(IpNet), } - impl From<&VpcFirewallRuleTarget> for VpcFirewallRuleTarget { + impl ::std::convert::From<&VpcFirewallRuleTarget> for VpcFirewallRuleTarget { fn from(value: &VpcFirewallRuleTarget) -> Self { value.clone() } } - impl From for VpcFirewallRuleTarget { + impl ::std::convert::From for VpcFirewallRuleTarget { fn from(value: std::net::IpAddr) -> Self { Self::Ip(value) } } - impl From for VpcFirewallRuleTarget { + impl ::std::convert::From for VpcFirewallRuleTarget { fn from(value: IpNet) -> Self { Self::IpNet(value) } @@ -13162,7 +13228,7 @@ pub mod types { pub targets: ::std::vec::Vec, } - impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { + impl ::std::convert::From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { fn from(value: &VpcFirewallRuleUpdate) -> Self { value.clone() } @@ -13199,7 +13265,7 @@ pub mod types { pub rules: ::std::vec::Vec, } - impl From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { + impl ::std::convert::From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { fn from(value: &VpcFirewallRuleUpdateParams) -> Self { value.clone() } @@ -13232,7 +13298,7 @@ pub mod types { pub rules: ::std::vec::Vec, } - impl From<&VpcFirewallRules> for VpcFirewallRules { + impl ::std::convert::From<&VpcFirewallRules> for VpcFirewallRules { fn from(value: &VpcFirewallRules) -> Self { value.clone() } @@ -13278,7 +13344,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcResultsPage> for VpcResultsPage { + impl ::std::convert::From<&VpcResultsPage> for VpcResultsPage { fn from(value: &VpcResultsPage) -> Self { value.clone() } @@ -13362,7 +13428,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcRouter> for VpcRouter { + impl ::std::convert::From<&VpcRouter> for VpcRouter { fn from(value: &VpcRouter) -> Self { value.clone() } @@ -13399,7 +13465,7 @@ pub mod types { pub name: Name, } - impl From<&VpcRouterCreate> for VpcRouterCreate { + impl ::std::convert::From<&VpcRouterCreate> for VpcRouterCreate { fn from(value: &VpcRouterCreate) -> Self { value.clone() } @@ -13438,7 +13504,7 @@ pub mod types { Custom, } - impl From<&VpcRouterKind> for VpcRouterKind { + impl ::std::convert::From<&VpcRouterKind> for VpcRouterKind { fn from(value: &VpcRouterKind) -> Self { value.clone() } @@ -13453,7 +13519,7 @@ pub mod types { } } - impl std::str::FromStr for VpcRouterKind { + impl ::std::str::FromStr for VpcRouterKind { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -13464,14 +13530,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for VpcRouterKind { + impl ::std::convert::TryFrom<&str> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for VpcRouterKind { + impl ::std::convert::TryFrom<&::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -13480,7 +13546,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for VpcRouterKind { + impl ::std::convert::TryFrom<::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -13529,7 +13595,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcRouterResultsPage> for VpcRouterResultsPage { + impl ::std::convert::From<&VpcRouterResultsPage> for VpcRouterResultsPage { fn from(value: &VpcRouterResultsPage) -> Self { value.clone() } @@ -13578,12 +13644,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcRouterUpdate> for VpcRouterUpdate { + impl ::std::convert::From<&VpcRouterUpdate> for VpcRouterUpdate { fn from(value: &VpcRouterUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcRouterUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + ///A VPC subnet represents a logical grouping for instances that allows /// network traffic between them, within a IPv4 subnetwork or optionall an /// IPv6 subnetwork. @@ -13681,7 +13756,7 @@ pub mod types { pub vpc_id: uuid::Uuid, } - impl From<&VpcSubnet> for VpcSubnet { + impl ::std::convert::From<&VpcSubnet> for VpcSubnet { fn from(value: &VpcSubnet) -> Self { value.clone() } @@ -13761,7 +13836,7 @@ pub mod types { pub name: Name, } - impl From<&VpcSubnetCreate> for VpcSubnetCreate { + impl ::std::convert::From<&VpcSubnetCreate> for VpcSubnetCreate { fn from(value: &VpcSubnetCreate) -> Self { value.clone() } @@ -13807,7 +13882,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { + impl ::std::convert::From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { fn from(value: &VpcSubnetResultsPage) -> Self { value.clone() } @@ -13856,12 +13931,21 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcSubnetUpdate> for VpcSubnetUpdate { + impl ::std::convert::From<&VpcSubnetUpdate> for VpcSubnetUpdate { fn from(value: &VpcSubnetUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcSubnetUpdate { + fn default() -> Self { + Self { + description: Default::default(), + name: Default::default(), + } + } + } + ///Updateable properties of a [`Vpc`](crate::external_api::views::Vpc) /// ///
JSON schema @@ -13920,12 +14004,22 @@ pub mod types { pub name: ::std::option::Option, } - impl From<&VpcUpdate> for VpcUpdate { + impl ::std::convert::From<&VpcUpdate> for VpcUpdate { fn from(value: &VpcUpdate) -> Self { value.clone() } } + impl ::std::default::Default for VpcUpdate { + fn default() -> Self { + Self { + description: Default::default(), + dns_name: Default::default(), + name: Default::default(), + } + } + } + /// Generation of default values for serde. pub mod defaults { pub(super) fn default_bool() -> bool { @@ -14002,6 +14096,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Fetch a disk by id /// diff --git a/progenitor-impl/tests/output/src/param_collision_positional.rs b/progenitor-impl/tests/output/src/param_collision_positional.rs index 7e9c6ffb..0cb592e6 100644 --- a/progenitor-impl/tests/output/src/param_collision_positional.rs +++ b/progenitor-impl/tests/output/src/param_collision_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -101,6 +102,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Gets a key /// diff --git a/progenitor-impl/tests/output/src/param_overrides_positional.rs b/progenitor-impl/tests/output/src/param_overrides_positional.rs index b5853406..9e8ff3a7 100644 --- a/progenitor-impl/tests/output/src/param_overrides_positional.rs +++ b/progenitor-impl/tests/output/src/param_overrides_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -101,6 +102,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Gets a key /// diff --git a/progenitor-impl/tests/output/src/propolis_server_builder.rs b/progenitor-impl/tests/output/src/propolis_server_builder.rs index e0ae0813..c94e9991 100644 --- a/progenitor-impl/tests/output/src/propolis_server_builder.rs +++ b/progenitor-impl/tests/output/src/propolis_server_builder.rs @@ -131,7 +131,7 @@ pub mod types { pub target: ::std::vec::Vec<::std::string::String>, } - impl From<&CrucibleOpts> for CrucibleOpts { + impl ::std::convert::From<&CrucibleOpts> for CrucibleOpts { fn from(value: &CrucibleOpts) -> Self { value.clone() } @@ -181,7 +181,7 @@ pub mod types { pub state: DiskAttachmentState, } - impl From<&DiskAttachment> for DiskAttachment { + impl ::std::convert::From<&DiskAttachment> for DiskAttachment { fn from(value: &DiskAttachment) -> Self { value.clone() } @@ -235,13 +235,13 @@ pub mod types { Attached(uuid::Uuid), } - impl From<&DiskAttachmentState> for DiskAttachmentState { + impl ::std::convert::From<&DiskAttachmentState> for DiskAttachmentState { fn from(value: &DiskAttachmentState) -> Self { value.clone() } } - impl From for DiskAttachmentState { + impl ::std::convert::From for DiskAttachmentState { fn from(value: uuid::Uuid) -> Self { Self::Attached(value) } @@ -299,7 +299,7 @@ pub mod types { pub volume_construction_request: VolumeConstructionRequest, } - impl From<&DiskRequest> for DiskRequest { + impl ::std::convert::From<&DiskRequest> for DiskRequest { fn from(value: &DiskRequest) -> Self { value.clone() } @@ -347,7 +347,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -405,7 +405,7 @@ pub mod types { pub state: InstanceState, } - impl From<&Instance> for Instance { + impl ::std::convert::From<&Instance> for Instance { fn from(value: &Instance) -> Self { value.clone() } @@ -485,7 +485,7 @@ pub mod types { pub properties: InstanceProperties, } - impl From<&InstanceEnsureRequest> for InstanceEnsureRequest { + impl ::std::convert::From<&InstanceEnsureRequest> for InstanceEnsureRequest { fn from(value: &InstanceEnsureRequest) -> Self { value.clone() } @@ -532,12 +532,20 @@ pub mod types { pub migrate: ::std::option::Option, } - impl From<&InstanceEnsureResponse> for InstanceEnsureResponse { + impl ::std::convert::From<&InstanceEnsureResponse> for InstanceEnsureResponse { fn from(value: &InstanceEnsureResponse) -> Self { value.clone() } } + impl ::std::default::Default for InstanceEnsureResponse { + fn default() -> Self { + Self { + migrate: Default::default(), + } + } + } + impl InstanceEnsureResponse { pub fn builder() -> builder::InstanceEnsureResponse { Default::default() @@ -569,7 +577,7 @@ pub mod types { pub instance: Instance, } - impl From<&InstanceGetResponse> for InstanceGetResponse { + impl ::std::convert::From<&InstanceGetResponse> for InstanceGetResponse { fn from(value: &InstanceGetResponse) -> Self { value.clone() } @@ -618,7 +626,7 @@ pub mod types { pub src_uuid: uuid::Uuid, } - impl From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { + impl ::std::convert::From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { fn from(value: &InstanceMigrateInitiateRequest) -> Self { value.clone() } @@ -656,7 +664,7 @@ pub mod types { pub migration_id: uuid::Uuid, } - impl From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { + impl ::std::convert::From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { fn from(value: &InstanceMigrateInitiateResponse) -> Self { value.clone() } @@ -694,7 +702,7 @@ pub mod types { pub migration_id: uuid::Uuid, } - impl From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { + impl ::std::convert::From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { fn from(value: &InstanceMigrateStatusRequest) -> Self { value.clone() } @@ -731,7 +739,7 @@ pub mod types { pub state: MigrationState, } - impl From<&InstanceMigrateStatusResponse> for InstanceMigrateStatusResponse { + impl ::std::convert::From<&InstanceMigrateStatusResponse> for InstanceMigrateStatusResponse { fn from(value: &InstanceMigrateStatusResponse) -> Self { value.clone() } @@ -820,7 +828,7 @@ pub mod types { pub vcpus: u8, } - impl From<&InstanceProperties> for InstanceProperties { + impl ::std::convert::From<&InstanceProperties> for InstanceProperties { fn from(value: &InstanceProperties) -> Self { value.clone() } @@ -881,7 +889,7 @@ pub mod types { Destroyed, } - impl From<&InstanceState> for InstanceState { + impl ::std::convert::From<&InstanceState> for InstanceState { fn from(value: &InstanceState) -> Self { value.clone() } @@ -904,7 +912,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceState { + impl ::std::str::FromStr for InstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -923,14 +931,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceState { + impl ::std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -939,7 +947,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -975,7 +983,7 @@ pub mod types { pub gen: u64, } - impl From<&InstanceStateMonitorRequest> for InstanceStateMonitorRequest { + impl ::std::convert::From<&InstanceStateMonitorRequest> for InstanceStateMonitorRequest { fn from(value: &InstanceStateMonitorRequest) -> Self { value.clone() } @@ -1019,7 +1027,7 @@ pub mod types { pub state: InstanceState, } - impl From<&InstanceStateMonitorResponse> for InstanceStateMonitorResponse { + impl ::std::convert::From<&InstanceStateMonitorResponse> for InstanceStateMonitorResponse { fn from(value: &InstanceStateMonitorResponse) -> Self { value.clone() } @@ -1067,7 +1075,7 @@ pub mod types { MigrateStart, } - impl From<&InstanceStateRequested> for InstanceStateRequested { + impl ::std::convert::From<&InstanceStateRequested> for InstanceStateRequested { fn from(value: &InstanceStateRequested) -> Self { value.clone() } @@ -1084,7 +1092,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceStateRequested { + impl ::std::str::FromStr for InstanceStateRequested { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1097,14 +1105,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceStateRequested { + impl ::std::convert::TryFrom<&str> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1113,7 +1121,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceStateRequested { + impl ::std::convert::TryFrom<::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1170,7 +1178,7 @@ pub mod types { Error, } - impl From<&MigrationState> for MigrationState { + impl ::std::convert::From<&MigrationState> for MigrationState { fn from(value: &MigrationState) -> Self { value.clone() } @@ -1193,7 +1201,7 @@ pub mod types { } } - impl std::str::FromStr for MigrationState { + impl ::std::str::FromStr for MigrationState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1212,14 +1220,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for MigrationState { + impl ::std::convert::TryFrom<&str> for MigrationState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for MigrationState { + impl ::std::convert::TryFrom<&::std::string::String> for MigrationState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1228,7 +1236,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for MigrationState { + impl ::std::convert::TryFrom<::std::string::String> for MigrationState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1267,7 +1275,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&NetworkInterface> for NetworkInterface { + impl ::std::convert::From<&NetworkInterface> for NetworkInterface { fn from(value: &NetworkInterface) -> Self { value.clone() } @@ -1318,13 +1326,13 @@ pub mod types { Attached(Slot), } - impl From<&NetworkInterfaceAttachmentState> for NetworkInterfaceAttachmentState { + impl ::std::convert::From<&NetworkInterfaceAttachmentState> for NetworkInterfaceAttachmentState { fn from(value: &NetworkInterfaceAttachmentState) -> Self { value.clone() } } - impl From for NetworkInterfaceAttachmentState { + impl ::std::convert::From for NetworkInterfaceAttachmentState { fn from(value: Slot) -> Self { Self::Attached(value) } @@ -1360,7 +1368,7 @@ pub mod types { pub slot: Slot, } - impl From<&NetworkInterfaceRequest> for NetworkInterfaceRequest { + impl ::std::convert::From<&NetworkInterfaceRequest> for NetworkInterfaceRequest { fn from(value: &NetworkInterfaceRequest) -> Self { value.clone() } @@ -1390,6 +1398,7 @@ pub mod types { #[derive( :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] + #[serde(transparent)] pub struct Slot(pub u8); impl ::std::ops::Deref for Slot { type Target = u8; @@ -1398,46 +1407,46 @@ pub mod types { } } - impl From for u8 { + impl ::std::convert::From for u8 { fn from(value: Slot) -> Self { value.0 } } - impl From<&Slot> for Slot { + impl ::std::convert::From<&Slot> for Slot { fn from(value: &Slot) -> Self { value.clone() } } - impl From for Slot { + impl ::std::convert::From for Slot { fn from(value: u8) -> Self { Self(value) } } - impl std::str::FromStr for Slot { + impl ::std::str::FromStr for Slot { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for Slot { + impl ::std::convert::TryFrom<&str> for Slot { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for Slot { + impl ::std::convert::TryFrom<&String> for Slot { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for Slot { + impl ::std::convert::TryFrom for Slot { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -1629,7 +1638,7 @@ pub mod types { }, } - impl From<&VolumeConstructionRequest> for VolumeConstructionRequest { + impl ::std::convert::From<&VolumeConstructionRequest> for VolumeConstructionRequest { fn from(value: &VolumeConstructionRequest) -> Self { value.clone() } @@ -1669,7 +1678,7 @@ pub mod types { >, } - impl Default for CrucibleOpts { + impl ::std::default::Default for CrucibleOpts { fn default() -> Self { Self { cert_pem: Ok(Default::default()), @@ -1689,8 +1698,8 @@ pub mod types { impl CrucibleOpts { pub fn cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.cert_pem = value .try_into() @@ -1699,8 +1708,8 @@ pub mod types { } pub fn control(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.control = value .try_into() @@ -1709,8 +1718,8 @@ pub mod types { } pub fn flush_timeout(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.flush_timeout = value.try_into().map_err(|e| { format!("error converting supplied value for flush_timeout: {}", e) @@ -1719,8 +1728,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1729,8 +1738,8 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.key = value .try_into() @@ -1739,8 +1748,8 @@ pub mod types { } pub fn key_pem(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.key_pem = value .try_into() @@ -1749,8 +1758,8 @@ pub mod types { } pub fn lossy(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.lossy = value .try_into() @@ -1759,8 +1768,8 @@ pub mod types { } pub fn read_only(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.read_only = value .try_into() @@ -1769,8 +1778,8 @@ pub mod types { } pub fn root_cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.root_cert_pem = value.try_into().map_err(|e| { format!("error converting supplied value for root_cert_pem: {}", e) @@ -1779,8 +1788,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -1809,7 +1818,7 @@ pub mod types { } } - impl From for CrucibleOpts { + impl ::std::convert::From for CrucibleOpts { fn from(value: super::CrucibleOpts) -> Self { Self { cert_pem: Ok(value.cert_pem), @@ -1833,7 +1842,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for DiskAttachment { + impl ::std::default::Default for DiskAttachment { fn default() -> Self { Self { disk_id: Err("no value supplied for disk_id".to_string()), @@ -1846,8 +1855,8 @@ pub mod types { impl DiskAttachment { pub fn disk_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_id = value .try_into() @@ -1856,8 +1865,8 @@ pub mod types { } pub fn generation_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.generation_id = value.try_into().map_err(|e| { format!("error converting supplied value for generation_id: {}", e) @@ -1866,8 +1875,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -1889,7 +1898,7 @@ pub mod types { } } - impl From for DiskAttachment { + impl ::std::convert::From for DiskAttachment { fn from(value: super::DiskAttachment) -> Self { Self { disk_id: Ok(value.disk_id), @@ -1910,7 +1919,7 @@ pub mod types { ::std::result::Result, } - impl Default for DiskRequest { + impl ::std::default::Default for DiskRequest { fn default() -> Self { Self { device: Err("no value supplied for device".to_string()), @@ -1928,8 +1937,8 @@ pub mod types { impl DiskRequest { pub fn device(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device = value .try_into() @@ -1938,8 +1947,8 @@ pub mod types { } pub fn gen(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.gen = value .try_into() @@ -1948,8 +1957,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1958,8 +1967,8 @@ pub mod types { } pub fn read_only(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.read_only = value .try_into() @@ -1968,8 +1977,8 @@ pub mod types { } pub fn slot(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.slot = value .try_into() @@ -1978,8 +1987,8 @@ pub mod types { } pub fn volume_construction_request(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.volume_construction_request = value.try_into().map_err(|e| { format!( @@ -2007,7 +2016,7 @@ pub mod types { } } - impl From for DiskRequest { + impl ::std::convert::From for DiskRequest { fn from(value: super::DiskRequest) -> Self { Self { device: Ok(value.device), @@ -2030,7 +2039,7 @@ pub mod types { request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Error { + impl ::std::default::Default for Error { fn default() -> Self { Self { error_code: Ok(Default::default()), @@ -2043,8 +2052,8 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.error_code = value .try_into() @@ -2053,8 +2062,8 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.message = value .try_into() @@ -2063,8 +2072,8 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.request_id = value .try_into() @@ -2086,7 +2095,7 @@ pub mod types { } } - impl From for Error { + impl ::std::convert::From for Error { fn from(value: super::Error) -> Self { Self { error_code: Ok(value.error_code), @@ -2110,7 +2119,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for Instance { + impl ::std::default::Default for Instance { fn default() -> Self { Self { disks: Err("no value supplied for disks".to_string()), @@ -2124,8 +2133,8 @@ pub mod types { impl Instance { pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.disks = value .try_into() @@ -2134,8 +2143,8 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.nics = value .try_into() @@ -2144,8 +2153,8 @@ pub mod types { } pub fn properties(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.properties = value .try_into() @@ -2154,8 +2163,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -2178,7 +2187,7 @@ pub mod types { } } - impl From for Instance { + impl ::std::convert::From for Instance { fn from(value: super::Instance) -> Self { Self { disks: Ok(value.disks), @@ -2208,7 +2217,7 @@ pub mod types { properties: ::std::result::Result, } - impl Default for InstanceEnsureRequest { + impl ::std::default::Default for InstanceEnsureRequest { fn default() -> Self { Self { cloud_init_bytes: Ok(Default::default()), @@ -2223,8 +2232,8 @@ pub mod types { impl InstanceEnsureRequest { pub fn cloud_init_bytes(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.cloud_init_bytes = value.try_into().map_err(|e| { format!( @@ -2236,8 +2245,8 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.disks = value .try_into() @@ -2246,10 +2255,10 @@ pub mod types { } pub fn migrate(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.migrate = value .try_into() @@ -2258,8 +2267,8 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.nics = value .try_into() @@ -2268,8 +2277,8 @@ pub mod types { } pub fn properties(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.properties = value .try_into() @@ -2293,7 +2302,7 @@ pub mod types { } } - impl From for InstanceEnsureRequest { + impl ::std::convert::From for InstanceEnsureRequest { fn from(value: super::InstanceEnsureRequest) -> Self { Self { cloud_init_bytes: Ok(value.cloud_init_bytes), @@ -2313,7 +2322,7 @@ pub mod types { >, } - impl Default for InstanceEnsureResponse { + impl ::std::default::Default for InstanceEnsureResponse { fn default() -> Self { Self { migrate: Ok(Default::default()), @@ -2324,10 +2333,10 @@ pub mod types { impl InstanceEnsureResponse { pub fn migrate(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.migrate = value .try_into() @@ -2347,7 +2356,7 @@ pub mod types { } } - impl From for InstanceEnsureResponse { + impl ::std::convert::From for InstanceEnsureResponse { fn from(value: super::InstanceEnsureResponse) -> Self { Self { migrate: Ok(value.migrate), @@ -2360,7 +2369,7 @@ pub mod types { instance: ::std::result::Result, } - impl Default for InstanceGetResponse { + impl ::std::default::Default for InstanceGetResponse { fn default() -> Self { Self { instance: Err("no value supplied for instance".to_string()), @@ -2371,8 +2380,8 @@ pub mod types { impl InstanceGetResponse { pub fn instance(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.instance = value .try_into() @@ -2392,7 +2401,7 @@ pub mod types { } } - impl From for InstanceGetResponse { + impl ::std::convert::From for InstanceGetResponse { fn from(value: super::InstanceGetResponse) -> Self { Self { instance: Ok(value.instance), @@ -2407,7 +2416,7 @@ pub mod types { src_uuid: ::std::result::Result, } - impl Default for InstanceMigrateInitiateRequest { + impl ::std::default::Default for InstanceMigrateInitiateRequest { fn default() -> Self { Self { migration_id: Err("no value supplied for migration_id".to_string()), @@ -2420,8 +2429,8 @@ pub mod types { impl InstanceMigrateInitiateRequest { pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { format!("error converting supplied value for migration_id: {}", e) @@ -2430,8 +2439,8 @@ pub mod types { } pub fn src_addr(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.src_addr = value .try_into() @@ -2440,8 +2449,8 @@ pub mod types { } pub fn src_uuid(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.src_uuid = value .try_into() @@ -2465,7 +2474,9 @@ pub mod types { } } - impl From for InstanceMigrateInitiateRequest { + impl ::std::convert::From + for InstanceMigrateInitiateRequest + { fn from(value: super::InstanceMigrateInitiateRequest) -> Self { Self { migration_id: Ok(value.migration_id), @@ -2480,7 +2491,7 @@ pub mod types { migration_id: ::std::result::Result, } - impl Default for InstanceMigrateInitiateResponse { + impl ::std::default::Default for InstanceMigrateInitiateResponse { fn default() -> Self { Self { migration_id: Err("no value supplied for migration_id".to_string()), @@ -2491,8 +2502,8 @@ pub mod types { impl InstanceMigrateInitiateResponse { pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { format!("error converting supplied value for migration_id: {}", e) @@ -2514,7 +2525,9 @@ pub mod types { } } - impl From for InstanceMigrateInitiateResponse { + impl ::std::convert::From + for InstanceMigrateInitiateResponse + { fn from(value: super::InstanceMigrateInitiateResponse) -> Self { Self { migration_id: Ok(value.migration_id), @@ -2527,7 +2540,7 @@ pub mod types { migration_id: ::std::result::Result, } - impl Default for InstanceMigrateStatusRequest { + impl ::std::default::Default for InstanceMigrateStatusRequest { fn default() -> Self { Self { migration_id: Err("no value supplied for migration_id".to_string()), @@ -2538,8 +2551,8 @@ pub mod types { impl InstanceMigrateStatusRequest { pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { format!("error converting supplied value for migration_id: {}", e) @@ -2559,7 +2572,7 @@ pub mod types { } } - impl From for InstanceMigrateStatusRequest { + impl ::std::convert::From for InstanceMigrateStatusRequest { fn from(value: super::InstanceMigrateStatusRequest) -> Self { Self { migration_id: Ok(value.migration_id), @@ -2572,7 +2585,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for InstanceMigrateStatusResponse { + impl ::std::default::Default for InstanceMigrateStatusResponse { fn default() -> Self { Self { state: Err("no value supplied for state".to_string()), @@ -2583,8 +2596,8 @@ pub mod types { impl InstanceMigrateStatusResponse { pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -2606,7 +2619,7 @@ pub mod types { } } - impl From for InstanceMigrateStatusResponse { + impl ::std::convert::From for InstanceMigrateStatusResponse { fn from(value: super::InstanceMigrateStatusResponse) -> Self { Self { state: Ok(value.state), @@ -2625,7 +2638,7 @@ pub mod types { vcpus: ::std::result::Result, } - impl Default for InstanceProperties { + impl ::std::default::Default for InstanceProperties { fn default() -> Self { Self { bootrom_id: Err("no value supplied for bootrom_id".to_string()), @@ -2642,8 +2655,8 @@ pub mod types { impl InstanceProperties { pub fn bootrom_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.bootrom_id = value .try_into() @@ -2652,8 +2665,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -2662,8 +2675,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2672,8 +2685,8 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.image_id = value .try_into() @@ -2682,8 +2695,8 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.memory = value .try_into() @@ -2692,8 +2705,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2702,8 +2715,8 @@ pub mod types { } pub fn vcpus(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vcpus = value .try_into() @@ -2729,7 +2742,7 @@ pub mod types { } } - impl From for InstanceProperties { + impl ::std::convert::From for InstanceProperties { fn from(value: super::InstanceProperties) -> Self { Self { bootrom_id: Ok(value.bootrom_id), @@ -2748,7 +2761,7 @@ pub mod types { gen: ::std::result::Result, } - impl Default for InstanceStateMonitorRequest { + impl ::std::default::Default for InstanceStateMonitorRequest { fn default() -> Self { Self { gen: Err("no value supplied for gen".to_string()), @@ -2759,8 +2772,8 @@ pub mod types { impl InstanceStateMonitorRequest { pub fn gen(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.gen = value .try_into() @@ -2778,7 +2791,7 @@ pub mod types { } } - impl From for InstanceStateMonitorRequest { + impl ::std::convert::From for InstanceStateMonitorRequest { fn from(value: super::InstanceStateMonitorRequest) -> Self { Self { gen: Ok(value.gen) } } @@ -2790,7 +2803,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for InstanceStateMonitorResponse { + impl ::std::default::Default for InstanceStateMonitorResponse { fn default() -> Self { Self { gen: Err("no value supplied for gen".to_string()), @@ -2802,8 +2815,8 @@ pub mod types { impl InstanceStateMonitorResponse { pub fn gen(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.gen = value .try_into() @@ -2812,8 +2825,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -2834,7 +2847,7 @@ pub mod types { } } - impl From for InstanceStateMonitorResponse { + impl ::std::convert::From for InstanceStateMonitorResponse { fn from(value: super::InstanceStateMonitorResponse) -> Self { Self { gen: Ok(value.gen), @@ -2852,7 +2865,7 @@ pub mod types { name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for NetworkInterface { + impl ::std::default::Default for NetworkInterface { fn default() -> Self { Self { attachment: Err("no value supplied for attachment".to_string()), @@ -2864,8 +2877,8 @@ pub mod types { impl NetworkInterface { pub fn attachment(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.attachment = value .try_into() @@ -2874,8 +2887,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2896,7 +2909,7 @@ pub mod types { } } - impl From for NetworkInterface { + impl ::std::convert::From for NetworkInterface { fn from(value: super::NetworkInterface) -> Self { Self { attachment: Ok(value.attachment), @@ -2911,7 +2924,7 @@ pub mod types { slot: ::std::result::Result, } - impl Default for NetworkInterfaceRequest { + impl ::std::default::Default for NetworkInterfaceRequest { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -2923,8 +2936,8 @@ pub mod types { impl NetworkInterfaceRequest { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2933,8 +2946,8 @@ pub mod types { } pub fn slot(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.slot = value .try_into() @@ -2955,7 +2968,7 @@ pub mod types { } } - impl From for NetworkInterfaceRequest { + impl ::std::convert::From for NetworkInterfaceRequest { fn from(value: super::NetworkInterfaceRequest) -> Self { Self { name: Ok(value.name), 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 1757ac69..af72ab2a 100644 --- a/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs @@ -129,7 +129,7 @@ pub mod types { pub target: ::std::vec::Vec<::std::string::String>, } - impl From<&CrucibleOpts> for CrucibleOpts { + impl ::std::convert::From<&CrucibleOpts> for CrucibleOpts { fn from(value: &CrucibleOpts) -> Self { value.clone() } @@ -177,7 +177,7 @@ pub mod types { pub state: DiskAttachmentState, } - impl From<&DiskAttachment> for DiskAttachment { + impl ::std::convert::From<&DiskAttachment> for DiskAttachment { fn from(value: &DiskAttachment) -> Self { value.clone() } @@ -229,13 +229,13 @@ pub mod types { Attached(uuid::Uuid), } - impl From<&DiskAttachmentState> for DiskAttachmentState { + impl ::std::convert::From<&DiskAttachmentState> for DiskAttachmentState { fn from(value: &DiskAttachmentState) -> Self { value.clone() } } - impl From for DiskAttachmentState { + impl ::std::convert::From for DiskAttachmentState { fn from(value: uuid::Uuid) -> Self { Self::Attached(value) } @@ -291,7 +291,7 @@ pub mod types { pub volume_construction_request: VolumeConstructionRequest, } - impl From<&DiskRequest> for DiskRequest { + impl ::std::convert::From<&DiskRequest> for DiskRequest { fn from(value: &DiskRequest) -> Self { value.clone() } @@ -337,7 +337,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -393,7 +393,7 @@ pub mod types { pub state: InstanceState, } - impl From<&Instance> for Instance { + impl ::std::convert::From<&Instance> for Instance { fn from(value: &Instance) -> Self { value.clone() } @@ -471,7 +471,7 @@ pub mod types { pub properties: InstanceProperties, } - impl From<&InstanceEnsureRequest> for InstanceEnsureRequest { + impl ::std::convert::From<&InstanceEnsureRequest> for InstanceEnsureRequest { fn from(value: &InstanceEnsureRequest) -> Self { value.clone() } @@ -516,12 +516,20 @@ pub mod types { pub migrate: ::std::option::Option, } - impl From<&InstanceEnsureResponse> for InstanceEnsureResponse { + impl ::std::convert::From<&InstanceEnsureResponse> for InstanceEnsureResponse { fn from(value: &InstanceEnsureResponse) -> Self { value.clone() } } + impl ::std::default::Default for InstanceEnsureResponse { + fn default() -> Self { + Self { + migrate: Default::default(), + } + } + } + impl InstanceEnsureResponse { pub fn builder() -> builder::InstanceEnsureResponse { Default::default() @@ -551,7 +559,7 @@ pub mod types { pub instance: Instance, } - impl From<&InstanceGetResponse> for InstanceGetResponse { + impl ::std::convert::From<&InstanceGetResponse> for InstanceGetResponse { fn from(value: &InstanceGetResponse) -> Self { value.clone() } @@ -598,7 +606,7 @@ pub mod types { pub src_uuid: uuid::Uuid, } - impl From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { + impl ::std::convert::From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { fn from(value: &InstanceMigrateInitiateRequest) -> Self { value.clone() } @@ -634,7 +642,7 @@ pub mod types { pub migration_id: uuid::Uuid, } - impl From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { + impl ::std::convert::From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { fn from(value: &InstanceMigrateInitiateResponse) -> Self { value.clone() } @@ -670,7 +678,7 @@ pub mod types { pub migration_id: uuid::Uuid, } - impl From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { + impl ::std::convert::From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { fn from(value: &InstanceMigrateStatusRequest) -> Self { value.clone() } @@ -705,7 +713,7 @@ pub mod types { pub state: MigrationState, } - impl From<&InstanceMigrateStatusResponse> for InstanceMigrateStatusResponse { + impl ::std::convert::From<&InstanceMigrateStatusResponse> for InstanceMigrateStatusResponse { fn from(value: &InstanceMigrateStatusResponse) -> Self { value.clone() } @@ -792,7 +800,7 @@ pub mod types { pub vcpus: u8, } - impl From<&InstanceProperties> for InstanceProperties { + impl ::std::convert::From<&InstanceProperties> for InstanceProperties { fn from(value: &InstanceProperties) -> Self { value.clone() } @@ -852,7 +860,7 @@ pub mod types { Destroyed, } - impl From<&InstanceState> for InstanceState { + impl ::std::convert::From<&InstanceState> for InstanceState { fn from(value: &InstanceState) -> Self { value.clone() } @@ -875,7 +883,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceState { + impl ::std::str::FromStr for InstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -894,14 +902,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceState { + impl ::std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -910,7 +918,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -944,7 +952,7 @@ pub mod types { pub gen: u64, } - impl From<&InstanceStateMonitorRequest> for InstanceStateMonitorRequest { + impl ::std::convert::From<&InstanceStateMonitorRequest> for InstanceStateMonitorRequest { fn from(value: &InstanceStateMonitorRequest) -> Self { value.clone() } @@ -986,7 +994,7 @@ pub mod types { pub state: InstanceState, } - impl From<&InstanceStateMonitorResponse> for InstanceStateMonitorResponse { + impl ::std::convert::From<&InstanceStateMonitorResponse> for InstanceStateMonitorResponse { fn from(value: &InstanceStateMonitorResponse) -> Self { value.clone() } @@ -1033,7 +1041,7 @@ pub mod types { MigrateStart, } - impl From<&InstanceStateRequested> for InstanceStateRequested { + impl ::std::convert::From<&InstanceStateRequested> for InstanceStateRequested { fn from(value: &InstanceStateRequested) -> Self { value.clone() } @@ -1050,7 +1058,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceStateRequested { + impl ::std::str::FromStr for InstanceStateRequested { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1063,14 +1071,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceStateRequested { + impl ::std::convert::TryFrom<&str> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1079,7 +1087,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceStateRequested { + impl ::std::convert::TryFrom<::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1135,7 +1143,7 @@ pub mod types { Error, } - impl From<&MigrationState> for MigrationState { + impl ::std::convert::From<&MigrationState> for MigrationState { fn from(value: &MigrationState) -> Self { value.clone() } @@ -1158,7 +1166,7 @@ pub mod types { } } - impl std::str::FromStr for MigrationState { + impl ::std::str::FromStr for MigrationState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1177,14 +1185,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for MigrationState { + impl ::std::convert::TryFrom<&str> for MigrationState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for MigrationState { + impl ::std::convert::TryFrom<&::std::string::String> for MigrationState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1193,7 +1201,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for MigrationState { + impl ::std::convert::TryFrom<::std::string::String> for MigrationState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1230,7 +1238,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&NetworkInterface> for NetworkInterface { + impl ::std::convert::From<&NetworkInterface> for NetworkInterface { fn from(value: &NetworkInterface) -> Self { value.clone() } @@ -1279,13 +1287,13 @@ pub mod types { Attached(Slot), } - impl From<&NetworkInterfaceAttachmentState> for NetworkInterfaceAttachmentState { + impl ::std::convert::From<&NetworkInterfaceAttachmentState> for NetworkInterfaceAttachmentState { fn from(value: &NetworkInterfaceAttachmentState) -> Self { value.clone() } } - impl From for NetworkInterfaceAttachmentState { + impl ::std::convert::From for NetworkInterfaceAttachmentState { fn from(value: Slot) -> Self { Self::Attached(value) } @@ -1319,7 +1327,7 @@ pub mod types { pub slot: Slot, } - impl From<&NetworkInterfaceRequest> for NetworkInterfaceRequest { + impl ::std::convert::From<&NetworkInterfaceRequest> for NetworkInterfaceRequest { fn from(value: &NetworkInterfaceRequest) -> Self { value.clone() } @@ -1347,6 +1355,7 @@ pub mod types { /// ``` ///
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct Slot(pub u8); impl ::std::ops::Deref for Slot { type Target = u8; @@ -1355,46 +1364,46 @@ pub mod types { } } - impl From for u8 { + impl ::std::convert::From for u8 { fn from(value: Slot) -> Self { value.0 } } - impl From<&Slot> for Slot { + impl ::std::convert::From<&Slot> for Slot { fn from(value: &Slot) -> Self { value.clone() } } - impl From for Slot { + impl ::std::convert::From for Slot { fn from(value: u8) -> Self { Self(value) } } - impl std::str::FromStr for Slot { + impl ::std::str::FromStr for Slot { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for Slot { + impl ::std::convert::TryFrom<&str> for Slot { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for Slot { + impl ::std::convert::TryFrom<&String> for Slot { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for Slot { + impl ::std::convert::TryFrom for Slot { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -1584,7 +1593,7 @@ pub mod types { }, } - impl From<&VolumeConstructionRequest> for VolumeConstructionRequest { + impl ::std::convert::From<&VolumeConstructionRequest> for VolumeConstructionRequest { fn from(value: &VolumeConstructionRequest) -> Self { value.clone() } @@ -1624,7 +1633,7 @@ pub mod types { >, } - impl Default for CrucibleOpts { + impl ::std::default::Default for CrucibleOpts { fn default() -> Self { Self { cert_pem: Ok(Default::default()), @@ -1644,8 +1653,8 @@ pub mod types { impl CrucibleOpts { pub fn cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.cert_pem = value .try_into() @@ -1654,8 +1663,8 @@ pub mod types { } pub fn control(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.control = value .try_into() @@ -1664,8 +1673,8 @@ pub mod types { } pub fn flush_timeout(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.flush_timeout = value.try_into().map_err(|e| { format!("error converting supplied value for flush_timeout: {}", e) @@ -1674,8 +1683,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -1684,8 +1693,8 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.key = value .try_into() @@ -1694,8 +1703,8 @@ pub mod types { } pub fn key_pem(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.key_pem = value .try_into() @@ -1704,8 +1713,8 @@ pub mod types { } pub fn lossy(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.lossy = value .try_into() @@ -1714,8 +1723,8 @@ pub mod types { } pub fn read_only(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.read_only = value .try_into() @@ -1724,8 +1733,8 @@ pub mod types { } pub fn root_cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.root_cert_pem = value.try_into().map_err(|e| { format!("error converting supplied value for root_cert_pem: {}", e) @@ -1734,8 +1743,8 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.target = value .try_into() @@ -1764,7 +1773,7 @@ pub mod types { } } - impl From for CrucibleOpts { + impl ::std::convert::From for CrucibleOpts { fn from(value: super::CrucibleOpts) -> Self { Self { cert_pem: Ok(value.cert_pem), @@ -1788,7 +1797,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for DiskAttachment { + impl ::std::default::Default for DiskAttachment { fn default() -> Self { Self { disk_id: Err("no value supplied for disk_id".to_string()), @@ -1801,8 +1810,8 @@ pub mod types { impl DiskAttachment { pub fn disk_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.disk_id = value .try_into() @@ -1811,8 +1820,8 @@ pub mod types { } pub fn generation_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.generation_id = value.try_into().map_err(|e| { format!("error converting supplied value for generation_id: {}", e) @@ -1821,8 +1830,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -1844,7 +1853,7 @@ pub mod types { } } - impl From for DiskAttachment { + impl ::std::convert::From for DiskAttachment { fn from(value: super::DiskAttachment) -> Self { Self { disk_id: Ok(value.disk_id), @@ -1865,7 +1874,7 @@ pub mod types { ::std::result::Result, } - impl Default for DiskRequest { + impl ::std::default::Default for DiskRequest { fn default() -> Self { Self { device: Err("no value supplied for device".to_string()), @@ -1883,8 +1892,8 @@ pub mod types { impl DiskRequest { pub fn device(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.device = value .try_into() @@ -1893,8 +1902,8 @@ pub mod types { } pub fn gen(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.gen = value .try_into() @@ -1903,8 +1912,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -1913,8 +1922,8 @@ pub mod types { } pub fn read_only(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.read_only = value .try_into() @@ -1923,8 +1932,8 @@ pub mod types { } pub fn slot(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.slot = value .try_into() @@ -1933,8 +1942,8 @@ pub mod types { } pub fn volume_construction_request(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.volume_construction_request = value.try_into().map_err(|e| { format!( @@ -1962,7 +1971,7 @@ pub mod types { } } - impl From for DiskRequest { + impl ::std::convert::From for DiskRequest { fn from(value: super::DiskRequest) -> Self { Self { device: Ok(value.device), @@ -1985,7 +1994,7 @@ pub mod types { request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Error { + impl ::std::default::Default for Error { fn default() -> Self { Self { error_code: Ok(Default::default()), @@ -1998,8 +2007,8 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.error_code = value .try_into() @@ -2008,8 +2017,8 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.message = value .try_into() @@ -2018,8 +2027,8 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.request_id = value .try_into() @@ -2041,7 +2050,7 @@ pub mod types { } } - impl From for Error { + impl ::std::convert::From for Error { fn from(value: super::Error) -> Self { Self { error_code: Ok(value.error_code), @@ -2065,7 +2074,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for Instance { + impl ::std::default::Default for Instance { fn default() -> Self { Self { disks: Err("no value supplied for disks".to_string()), @@ -2079,8 +2088,8 @@ pub mod types { impl Instance { pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.disks = value .try_into() @@ -2089,8 +2098,8 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.nics = value .try_into() @@ -2099,8 +2108,8 @@ pub mod types { } pub fn properties(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.properties = value .try_into() @@ -2109,8 +2118,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -2133,7 +2142,7 @@ pub mod types { } } - impl From for Instance { + impl ::std::convert::From for Instance { fn from(value: super::Instance) -> Self { Self { disks: Ok(value.disks), @@ -2163,7 +2172,7 @@ pub mod types { properties: ::std::result::Result, } - impl Default for InstanceEnsureRequest { + impl ::std::default::Default for InstanceEnsureRequest { fn default() -> Self { Self { cloud_init_bytes: Ok(Default::default()), @@ -2178,8 +2187,8 @@ pub mod types { impl InstanceEnsureRequest { pub fn cloud_init_bytes(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.cloud_init_bytes = value.try_into().map_err(|e| { format!( @@ -2191,8 +2200,8 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.disks = value .try_into() @@ -2201,10 +2210,10 @@ pub mod types { } pub fn migrate(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.migrate = value .try_into() @@ -2213,8 +2222,8 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.nics = value .try_into() @@ -2223,8 +2232,8 @@ pub mod types { } pub fn properties(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.properties = value .try_into() @@ -2248,7 +2257,7 @@ pub mod types { } } - impl From for InstanceEnsureRequest { + impl ::std::convert::From for InstanceEnsureRequest { fn from(value: super::InstanceEnsureRequest) -> Self { Self { cloud_init_bytes: Ok(value.cloud_init_bytes), @@ -2268,7 +2277,7 @@ pub mod types { >, } - impl Default for InstanceEnsureResponse { + impl ::std::default::Default for InstanceEnsureResponse { fn default() -> Self { Self { migrate: Ok(Default::default()), @@ -2279,10 +2288,10 @@ pub mod types { impl InstanceEnsureResponse { pub fn migrate(mut self, value: T) -> Self where - T: std::convert::TryInto< + T: ::std::convert::TryInto< ::std::option::Option, >, - T::Error: std::fmt::Display, + T::Error: ::std::fmt::Display, { self.migrate = value .try_into() @@ -2302,7 +2311,7 @@ pub mod types { } } - impl From for InstanceEnsureResponse { + impl ::std::convert::From for InstanceEnsureResponse { fn from(value: super::InstanceEnsureResponse) -> Self { Self { migrate: Ok(value.migrate), @@ -2315,7 +2324,7 @@ pub mod types { instance: ::std::result::Result, } - impl Default for InstanceGetResponse { + impl ::std::default::Default for InstanceGetResponse { fn default() -> Self { Self { instance: Err("no value supplied for instance".to_string()), @@ -2326,8 +2335,8 @@ pub mod types { impl InstanceGetResponse { pub fn instance(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.instance = value .try_into() @@ -2347,7 +2356,7 @@ pub mod types { } } - impl From for InstanceGetResponse { + impl ::std::convert::From for InstanceGetResponse { fn from(value: super::InstanceGetResponse) -> Self { Self { instance: Ok(value.instance), @@ -2362,7 +2371,7 @@ pub mod types { src_uuid: ::std::result::Result, } - impl Default for InstanceMigrateInitiateRequest { + impl ::std::default::Default for InstanceMigrateInitiateRequest { fn default() -> Self { Self { migration_id: Err("no value supplied for migration_id".to_string()), @@ -2375,8 +2384,8 @@ pub mod types { impl InstanceMigrateInitiateRequest { pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { format!("error converting supplied value for migration_id: {}", e) @@ -2385,8 +2394,8 @@ pub mod types { } pub fn src_addr(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.src_addr = value .try_into() @@ -2395,8 +2404,8 @@ pub mod types { } pub fn src_uuid(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.src_uuid = value .try_into() @@ -2420,7 +2429,9 @@ pub mod types { } } - impl From for InstanceMigrateInitiateRequest { + impl ::std::convert::From + for InstanceMigrateInitiateRequest + { fn from(value: super::InstanceMigrateInitiateRequest) -> Self { Self { migration_id: Ok(value.migration_id), @@ -2435,7 +2446,7 @@ pub mod types { migration_id: ::std::result::Result, } - impl Default for InstanceMigrateInitiateResponse { + impl ::std::default::Default for InstanceMigrateInitiateResponse { fn default() -> Self { Self { migration_id: Err("no value supplied for migration_id".to_string()), @@ -2446,8 +2457,8 @@ pub mod types { impl InstanceMigrateInitiateResponse { pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { format!("error converting supplied value for migration_id: {}", e) @@ -2469,7 +2480,9 @@ pub mod types { } } - impl From for InstanceMigrateInitiateResponse { + impl ::std::convert::From + for InstanceMigrateInitiateResponse + { fn from(value: super::InstanceMigrateInitiateResponse) -> Self { Self { migration_id: Ok(value.migration_id), @@ -2482,7 +2495,7 @@ pub mod types { migration_id: ::std::result::Result, } - impl Default for InstanceMigrateStatusRequest { + impl ::std::default::Default for InstanceMigrateStatusRequest { fn default() -> Self { Self { migration_id: Err("no value supplied for migration_id".to_string()), @@ -2493,8 +2506,8 @@ pub mod types { impl InstanceMigrateStatusRequest { pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { format!("error converting supplied value for migration_id: {}", e) @@ -2514,7 +2527,7 @@ pub mod types { } } - impl From for InstanceMigrateStatusRequest { + impl ::std::convert::From for InstanceMigrateStatusRequest { fn from(value: super::InstanceMigrateStatusRequest) -> Self { Self { migration_id: Ok(value.migration_id), @@ -2527,7 +2540,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for InstanceMigrateStatusResponse { + impl ::std::default::Default for InstanceMigrateStatusResponse { fn default() -> Self { Self { state: Err("no value supplied for state".to_string()), @@ -2538,8 +2551,8 @@ pub mod types { impl InstanceMigrateStatusResponse { pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -2561,7 +2574,7 @@ pub mod types { } } - impl From for InstanceMigrateStatusResponse { + impl ::std::convert::From for InstanceMigrateStatusResponse { fn from(value: super::InstanceMigrateStatusResponse) -> Self { Self { state: Ok(value.state), @@ -2580,7 +2593,7 @@ pub mod types { vcpus: ::std::result::Result, } - impl Default for InstanceProperties { + impl ::std::default::Default for InstanceProperties { fn default() -> Self { Self { bootrom_id: Err("no value supplied for bootrom_id".to_string()), @@ -2597,8 +2610,8 @@ pub mod types { impl InstanceProperties { pub fn bootrom_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.bootrom_id = value .try_into() @@ -2607,8 +2620,8 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.description = value .try_into() @@ -2617,8 +2630,8 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.id = value .try_into() @@ -2627,8 +2640,8 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.image_id = value .try_into() @@ -2637,8 +2650,8 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.memory = value .try_into() @@ -2647,8 +2660,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2657,8 +2670,8 @@ pub mod types { } pub fn vcpus(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.vcpus = value .try_into() @@ -2684,7 +2697,7 @@ pub mod types { } } - impl From for InstanceProperties { + impl ::std::convert::From for InstanceProperties { fn from(value: super::InstanceProperties) -> Self { Self { bootrom_id: Ok(value.bootrom_id), @@ -2703,7 +2716,7 @@ pub mod types { gen: ::std::result::Result, } - impl Default for InstanceStateMonitorRequest { + impl ::std::default::Default for InstanceStateMonitorRequest { fn default() -> Self { Self { gen: Err("no value supplied for gen".to_string()), @@ -2714,8 +2727,8 @@ pub mod types { impl InstanceStateMonitorRequest { pub fn gen(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.gen = value .try_into() @@ -2733,7 +2746,7 @@ pub mod types { } } - impl From for InstanceStateMonitorRequest { + impl ::std::convert::From for InstanceStateMonitorRequest { fn from(value: super::InstanceStateMonitorRequest) -> Self { Self { gen: Ok(value.gen) } } @@ -2745,7 +2758,7 @@ pub mod types { state: ::std::result::Result, } - impl Default for InstanceStateMonitorResponse { + impl ::std::default::Default for InstanceStateMonitorResponse { fn default() -> Self { Self { gen: Err("no value supplied for gen".to_string()), @@ -2757,8 +2770,8 @@ pub mod types { impl InstanceStateMonitorResponse { pub fn gen(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.gen = value .try_into() @@ -2767,8 +2780,8 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.state = value .try_into() @@ -2789,7 +2802,7 @@ pub mod types { } } - impl From for InstanceStateMonitorResponse { + impl ::std::convert::From for InstanceStateMonitorResponse { fn from(value: super::InstanceStateMonitorResponse) -> Self { Self { gen: Ok(value.gen), @@ -2807,7 +2820,7 @@ pub mod types { name: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for NetworkInterface { + impl ::std::default::Default for NetworkInterface { fn default() -> Self { Self { attachment: Err("no value supplied for attachment".to_string()), @@ -2819,8 +2832,8 @@ pub mod types { impl NetworkInterface { pub fn attachment(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.attachment = value .try_into() @@ -2829,8 +2842,8 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2851,7 +2864,7 @@ pub mod types { } } - impl From for NetworkInterface { + impl ::std::convert::From for NetworkInterface { fn from(value: super::NetworkInterface) -> Self { Self { attachment: Ok(value.attachment), @@ -2866,7 +2879,7 @@ pub mod types { slot: ::std::result::Result, } - impl Default for NetworkInterfaceRequest { + impl ::std::default::Default for NetworkInterfaceRequest { fn default() -> Self { Self { name: Err("no value supplied for name".to_string()), @@ -2878,8 +2891,8 @@ pub mod types { impl NetworkInterfaceRequest { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.name = value .try_into() @@ -2888,8 +2901,8 @@ pub mod types { } pub fn slot(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.slot = value .try_into() @@ -2910,7 +2923,7 @@ pub mod types { } } - impl From for NetworkInterfaceRequest { + impl ::std::convert::From for NetworkInterfaceRequest { fn from(value: super::NetworkInterfaceRequest) -> Self { Self { name: Ok(value.name), diff --git a/progenitor-impl/tests/output/src/propolis_server_positional.rs b/progenitor-impl/tests/output/src/propolis_server_positional.rs index 7ad3bcab..7f9b1b53 100644 --- a/progenitor-impl/tests/output/src/propolis_server_positional.rs +++ b/progenitor-impl/tests/output/src/propolis_server_positional.rs @@ -1,3 +1,4 @@ +#![allow(elided_named_lifetimes)] #[allow(unused_imports)] use progenitor_client::{encode_path, RequestBuilderExt}; #[allow(unused_imports)] @@ -129,7 +130,7 @@ pub mod types { pub target: ::std::vec::Vec<::std::string::String>, } - impl From<&CrucibleOpts> for CrucibleOpts { + impl ::std::convert::From<&CrucibleOpts> for CrucibleOpts { fn from(value: &CrucibleOpts) -> Self { value.clone() } @@ -171,7 +172,7 @@ pub mod types { pub state: DiskAttachmentState, } - impl From<&DiskAttachment> for DiskAttachment { + impl ::std::convert::From<&DiskAttachment> for DiskAttachment { fn from(value: &DiskAttachment) -> Self { value.clone() } @@ -217,13 +218,13 @@ pub mod types { Attached(uuid::Uuid), } - impl From<&DiskAttachmentState> for DiskAttachmentState { + impl ::std::convert::From<&DiskAttachmentState> for DiskAttachmentState { fn from(value: &DiskAttachmentState) -> Self { value.clone() } } - impl From for DiskAttachmentState { + impl ::std::convert::From for DiskAttachmentState { fn from(value: uuid::Uuid) -> Self { Self::Attached(value) } @@ -279,7 +280,7 @@ pub mod types { pub volume_construction_request: VolumeConstructionRequest, } - impl From<&DiskRequest> for DiskRequest { + impl ::std::convert::From<&DiskRequest> for DiskRequest { fn from(value: &DiskRequest) -> Self { value.clone() } @@ -319,7 +320,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -369,7 +370,7 @@ pub mod types { pub state: InstanceState, } - impl From<&Instance> for Instance { + impl ::std::convert::From<&Instance> for Instance { fn from(value: &Instance) -> Self { value.clone() } @@ -441,7 +442,7 @@ pub mod types { pub properties: InstanceProperties, } - impl From<&InstanceEnsureRequest> for InstanceEnsureRequest { + impl ::std::convert::From<&InstanceEnsureRequest> for InstanceEnsureRequest { fn from(value: &InstanceEnsureRequest) -> Self { value.clone() } @@ -480,12 +481,20 @@ pub mod types { pub migrate: ::std::option::Option, } - impl From<&InstanceEnsureResponse> for InstanceEnsureResponse { + impl ::std::convert::From<&InstanceEnsureResponse> for InstanceEnsureResponse { fn from(value: &InstanceEnsureResponse) -> Self { value.clone() } } + impl ::std::default::Default for InstanceEnsureResponse { + fn default() -> Self { + Self { + migrate: Default::default(), + } + } + } + ///InstanceGetResponse /// ///
JSON schema @@ -509,7 +518,7 @@ pub mod types { pub instance: Instance, } - impl From<&InstanceGetResponse> for InstanceGetResponse { + impl ::std::convert::From<&InstanceGetResponse> for InstanceGetResponse { fn from(value: &InstanceGetResponse) -> Self { value.clone() } @@ -550,7 +559,7 @@ pub mod types { pub src_uuid: uuid::Uuid, } - impl From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { + impl ::std::convert::From<&InstanceMigrateInitiateRequest> for InstanceMigrateInitiateRequest { fn from(value: &InstanceMigrateInitiateRequest) -> Self { value.clone() } @@ -580,7 +589,7 @@ pub mod types { pub migration_id: uuid::Uuid, } - impl From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { + impl ::std::convert::From<&InstanceMigrateInitiateResponse> for InstanceMigrateInitiateResponse { fn from(value: &InstanceMigrateInitiateResponse) -> Self { value.clone() } @@ -610,7 +619,7 @@ pub mod types { pub migration_id: uuid::Uuid, } - impl From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { + impl ::std::convert::From<&InstanceMigrateStatusRequest> for InstanceMigrateStatusRequest { fn from(value: &InstanceMigrateStatusRequest) -> Self { value.clone() } @@ -639,7 +648,7 @@ pub mod types { pub state: MigrationState, } - impl From<&InstanceMigrateStatusResponse> for InstanceMigrateStatusResponse { + impl ::std::convert::From<&InstanceMigrateStatusResponse> for InstanceMigrateStatusResponse { fn from(value: &InstanceMigrateStatusResponse) -> Self { value.clone() } @@ -720,7 +729,7 @@ pub mod types { pub vcpus: u8, } - impl From<&InstanceProperties> for InstanceProperties { + impl ::std::convert::From<&InstanceProperties> for InstanceProperties { fn from(value: &InstanceProperties) -> Self { value.clone() } @@ -774,7 +783,7 @@ pub mod types { Destroyed, } - impl From<&InstanceState> for InstanceState { + impl ::std::convert::From<&InstanceState> for InstanceState { fn from(value: &InstanceState) -> Self { value.clone() } @@ -797,7 +806,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceState { + impl ::std::str::FromStr for InstanceState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -816,14 +825,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceState { + impl ::std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -832,7 +841,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceState { + impl ::std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -866,7 +875,7 @@ pub mod types { pub gen: u64, } - impl From<&InstanceStateMonitorRequest> for InstanceStateMonitorRequest { + impl ::std::convert::From<&InstanceStateMonitorRequest> for InstanceStateMonitorRequest { fn from(value: &InstanceStateMonitorRequest) -> Self { value.clone() } @@ -902,7 +911,7 @@ pub mod types { pub state: InstanceState, } - impl From<&InstanceStateMonitorResponse> for InstanceStateMonitorResponse { + impl ::std::convert::From<&InstanceStateMonitorResponse> for InstanceStateMonitorResponse { fn from(value: &InstanceStateMonitorResponse) -> Self { value.clone() } @@ -943,7 +952,7 @@ pub mod types { MigrateStart, } - impl From<&InstanceStateRequested> for InstanceStateRequested { + impl ::std::convert::From<&InstanceStateRequested> for InstanceStateRequested { fn from(value: &InstanceStateRequested) -> Self { value.clone() } @@ -960,7 +969,7 @@ pub mod types { } } - impl std::str::FromStr for InstanceStateRequested { + impl ::std::str::FromStr for InstanceStateRequested { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -973,14 +982,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for InstanceStateRequested { + impl ::std::convert::TryFrom<&str> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { + impl ::std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -989,7 +998,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for InstanceStateRequested { + impl ::std::convert::TryFrom<::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1045,7 +1054,7 @@ pub mod types { Error, } - impl From<&MigrationState> for MigrationState { + impl ::std::convert::From<&MigrationState> for MigrationState { fn from(value: &MigrationState) -> Self { value.clone() } @@ -1068,7 +1077,7 @@ pub mod types { } } - impl std::str::FromStr for MigrationState { + impl ::std::str::FromStr for MigrationState { type Err = self::error::ConversionError; fn from_str(value: &str) -> ::std::result::Result { match value { @@ -1087,14 +1096,14 @@ pub mod types { } } - impl std::convert::TryFrom<&str> for MigrationState { + impl ::std::convert::TryFrom<&str> for MigrationState { type Error = self::error::ConversionError; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&::std::string::String> for MigrationState { + impl ::std::convert::TryFrom<&::std::string::String> for MigrationState { type Error = self::error::ConversionError; fn try_from( value: &::std::string::String, @@ -1103,7 +1112,7 @@ pub mod types { } } - impl std::convert::TryFrom<::std::string::String> for MigrationState { + impl ::std::convert::TryFrom<::std::string::String> for MigrationState { type Error = self::error::ConversionError; fn try_from( value: ::std::string::String, @@ -1140,7 +1149,7 @@ pub mod types { pub name: ::std::string::String, } - impl From<&NetworkInterface> for NetworkInterface { + impl ::std::convert::From<&NetworkInterface> for NetworkInterface { fn from(value: &NetworkInterface) -> Self { value.clone() } @@ -1183,13 +1192,13 @@ pub mod types { Attached(Slot), } - impl From<&NetworkInterfaceAttachmentState> for NetworkInterfaceAttachmentState { + impl ::std::convert::From<&NetworkInterfaceAttachmentState> for NetworkInterfaceAttachmentState { fn from(value: &NetworkInterfaceAttachmentState) -> Self { value.clone() } } - impl From for NetworkInterfaceAttachmentState { + impl ::std::convert::From for NetworkInterfaceAttachmentState { fn from(value: Slot) -> Self { Self::Attached(value) } @@ -1223,7 +1232,7 @@ pub mod types { pub slot: Slot, } - impl From<&NetworkInterfaceRequest> for NetworkInterfaceRequest { + impl ::std::convert::From<&NetworkInterfaceRequest> for NetworkInterfaceRequest { fn from(value: &NetworkInterfaceRequest) -> Self { value.clone() } @@ -1245,6 +1254,7 @@ pub mod types { /// ``` ///
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] + #[serde(transparent)] pub struct Slot(pub u8); impl ::std::ops::Deref for Slot { type Target = u8; @@ -1253,46 +1263,46 @@ pub mod types { } } - impl From for u8 { + impl ::std::convert::From for u8 { fn from(value: Slot) -> Self { value.0 } } - impl From<&Slot> for Slot { + impl ::std::convert::From<&Slot> for Slot { fn from(value: &Slot) -> Self { value.clone() } } - impl From for Slot { + impl ::std::convert::From for Slot { fn from(value: u8) -> Self { Self(value) } } - impl std::str::FromStr for Slot { + impl ::std::str::FromStr for Slot { type Err = ::Err; fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } - impl std::convert::TryFrom<&str> for Slot { + impl ::std::convert::TryFrom<&str> for Slot { type Error = ::Err; fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for Slot { + impl ::std::convert::TryFrom<&String> for Slot { type Error = ::Err; fn try_from(value: &String) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for Slot { + impl ::std::convert::TryFrom for Slot { type Error = ::Err; fn try_from(value: String) -> ::std::result::Result { value.parse() @@ -1482,7 +1492,7 @@ pub mod types { }, } - impl From<&VolumeConstructionRequest> for VolumeConstructionRequest { + impl ::std::convert::From<&VolumeConstructionRequest> for VolumeConstructionRequest { fn from(value: &VolumeConstructionRequest) -> Self { value.clone() } @@ -1552,6 +1562,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `GET` request to `/instance` pub async fn instance_get<'a>( 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 0465e52e..3b4866d8 100644 --- a/progenitor-impl/tests/output/src/test_default_params_builder.rs +++ b/progenitor-impl/tests/output/src/test_default_params_builder.rs @@ -83,7 +83,7 @@ pub mod types { pub yes: bool, } - impl From<&BodyWithDefaults> for BodyWithDefaults { + impl ::std::convert::From<&BodyWithDefaults> for BodyWithDefaults { fn from(value: &BodyWithDefaults) -> Self { value.clone() } @@ -129,7 +129,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -151,7 +151,7 @@ pub mod types { yes: ::std::result::Result, } - impl Default for BodyWithDefaults { + impl ::std::default::Default for BodyWithDefaults { fn default() -> Self { Self { forty_two: Ok(super::defaults::default_u64::()), @@ -165,8 +165,8 @@ pub mod types { impl BodyWithDefaults { pub fn forty_two(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.forty_two = value .try_into() @@ -175,8 +175,8 @@ pub mod types { } pub fn s(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.s = value .try_into() @@ -185,8 +185,8 @@ pub mod types { } pub fn something(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option>, + T::Error: ::std::fmt::Display, { self.something = value .try_into() @@ -195,8 +195,8 @@ pub mod types { } pub fn yes(mut self, value: T) -> Self where - T: std::convert::TryInto, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto, + T::Error: ::std::fmt::Display, { self.yes = value .try_into() @@ -219,7 +219,7 @@ pub mod types { } } - impl From for BodyWithDefaults { + impl ::std::convert::From for BodyWithDefaults { fn from(value: super::BodyWithDefaults) -> Self { Self { forty_two: Ok(value.forty_two), @@ -240,7 +240,7 @@ pub mod types { request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Error { + impl ::std::default::Default for Error { fn default() -> Self { Self { error_code: Ok(Default::default()), @@ -253,8 +253,8 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.error_code = value .try_into() @@ -263,8 +263,8 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.message = value .try_into() @@ -273,8 +273,8 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.request_id = value .try_into() @@ -296,7 +296,7 @@ pub mod types { } } - impl From for Error { + impl ::std::convert::From for Error { fn from(value: super::Error) -> Self { Self { error_code: Ok(value.error_code), 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 ee5a5d83..fb2a7e3a 100644 --- a/progenitor-impl/tests/output/src/test_default_params_positional.rs +++ b/progenitor-impl/tests/output/src/test_default_params_positional.rs @@ -83,7 +83,7 @@ pub mod types { pub yes: bool, } - impl From<&BodyWithDefaults> for BodyWithDefaults { + impl ::std::convert::From<&BodyWithDefaults> for BodyWithDefaults { fn from(value: &BodyWithDefaults) -> Self { value.clone() } @@ -123,7 +123,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -206,6 +206,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `POST` request to `/` pub async fn default_params<'a>( diff --git a/progenitor-impl/tests/output/src/test_freeform_response.rs b/progenitor-impl/tests/output/src/test_freeform_response.rs index ded1fe8a..3d8ca7e0 100644 --- a/progenitor-impl/tests/output/src/test_freeform_response.rs +++ b/progenitor-impl/tests/output/src/test_freeform_response.rs @@ -71,7 +71,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -139,6 +139,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `GET` request to `/` pub async fn freeform_response<'a>( diff --git a/progenitor-impl/tests/output/src/test_renamed_parameters.rs b/progenitor-impl/tests/output/src/test_renamed_parameters.rs index 0982cd43..a4b2f9b2 100644 --- a/progenitor-impl/tests/output/src/test_renamed_parameters.rs +++ b/progenitor-impl/tests/output/src/test_renamed_parameters.rs @@ -71,7 +71,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -139,6 +139,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `GET` request to `/{ref}/{type}/{trait}` pub async fn renamed_parameters<'a>( 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 8912bd33..07be78c1 100644 --- a/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs +++ b/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs @@ -71,7 +71,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -125,7 +125,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&Uint32ResultsPage> for Uint32ResultsPage { + impl ::std::convert::From<&Uint32ResultsPage> for Uint32ResultsPage { fn from(value: &Uint32ResultsPage) -> Self { value.clone() } @@ -149,7 +149,7 @@ pub mod types { request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } - impl Default for Error { + impl ::std::default::Default for Error { fn default() -> Self { Self { error_code: Ok(Default::default()), @@ -162,8 +162,8 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.error_code = value .try_into() @@ -172,8 +172,8 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.message = value .try_into() @@ -182,8 +182,8 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::string::String>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::string::String>, + T::Error: ::std::fmt::Display, { self.request_id = value .try_into() @@ -205,7 +205,7 @@ pub mod types { } } - impl From for Error { + impl ::std::convert::From for Error { fn from(value: super::Error) -> Self { Self { error_code: Ok(value.error_code), @@ -224,7 +224,7 @@ pub mod types { >, } - impl Default for Uint32ResultsPage { + impl ::std::default::Default for Uint32ResultsPage { fn default() -> Self { Self { items: Err("no value supplied for items".to_string()), @@ -236,8 +236,8 @@ pub mod types { impl Uint32ResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::vec::Vec>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, { self.items = value .try_into() @@ -246,8 +246,8 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::option::Option<::std::string::String>>, - T::Error: std::fmt::Display, + T: ::std::convert::TryInto<::std::option::Option<::std::string::String>>, + T::Error: ::std::fmt::Display, { self.next_page = value .try_into() @@ -268,7 +268,7 @@ pub mod types { } } - impl From for Uint32ResultsPage { + impl ::std::convert::From for Uint32ResultsPage { fn from(value: super::Uint32ResultsPage) -> Self { Self { items: Ok(value.items), 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 1e250177..4028721d 100644 --- a/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs +++ b/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs @@ -71,7 +71,7 @@ pub mod types { pub request_id: ::std::string::String, } - impl From<&Error> for Error { + impl ::std::convert::From<&Error> for Error { fn from(value: &Error) -> Self { value.clone() } @@ -119,7 +119,7 @@ pub mod types { pub next_page: ::std::option::Option<::std::string::String>, } - impl From<&Uint32ResultsPage> for Uint32ResultsPage { + impl ::std::convert::From<&Uint32ResultsPage> for Uint32ResultsPage { fn from(value: &Uint32ResultsPage) -> Self { value.clone() } @@ -187,6 +187,7 @@ impl Client { } #[allow(clippy::all)] +#[allow(elided_named_lifetimes)] impl Client { ///Sends a `GET` request to `/` /// diff --git a/progenitor-impl/tests/test_output.rs b/progenitor-impl/tests/test_output.rs index 0a1c3abc..bf415950 100644 --- a/progenitor-impl/tests/test_output.rs +++ b/progenitor-impl/tests/test_output.rs @@ -51,7 +51,11 @@ fn verify_apis(openapi_file: &str) { // Positional generation. let mut generator = Generator::default(); - let output = generate_formatted(&mut generator, &spec); + let output = format!( + "{}\n{}", + "#![allow(elided_named_lifetimes)]", + generate_formatted(&mut generator, &spec), + ); expectorate::assert_contents( format!("tests/output/src/{}_positional.rs", openapi_stem), &output, diff --git a/progenitor-impl/tests/test_specific.rs b/progenitor-impl/tests/test_specific.rs index d6751570..ba29aa6c 100644 --- a/progenitor-impl/tests/test_specific.rs +++ b/progenitor-impl/tests/test_specific.rs @@ -18,7 +18,7 @@ use std::{ }; fn generate_formatted(generator: &mut Generator, spec: &OpenAPI) -> String { - let content = generator.generate_tokens(&spec).unwrap(); + let content = generator.generate_tokens(spec).unwrap(); let rustfmt_config = rustfmt_wrapper::config::Config { normalize_doc_attributes: Some(true), wrap_comments: Some(true),