diff --git a/Cargo.lock b/Cargo.lock index 0f4ed747..157f6e55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1784,18 +1784,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" dependencies = [ "proc-macro2", "quote", @@ -2332,7 +2332,7 @@ checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" [[package]] name = "typify" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#a1986aaa2275bc71ee4f660c9ddf82d6aa29caca" +source = "git+https://github.com/oxidecomputer/typify#9065106fc0bf1c0611dd7a5aea0c7366b7f00135" 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#a1986aaa2275bc71ee4f660c9ddf82d6aa29caca" +source = "git+https://github.com/oxidecomputer/typify#9065106fc0bf1c0611dd7a5aea0c7366b7f00135" dependencies = [ "heck", "log", @@ -2360,7 +2360,7 @@ dependencies = [ [[package]] name = "typify-macro" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#a1986aaa2275bc71ee4f660c9ddf82d6aa29caca" +source = "git+https://github.com/oxidecomputer/typify#9065106fc0bf1c0611dd7a5aea0c7366b7f00135" dependencies = [ "proc-macro2", "quote", diff --git a/progenitor-impl/tests/output/src/buildomat_builder.rs b/progenitor-impl/tests/output/src/buildomat_builder.rs index ab3b5403..05e96584 100644 --- a/progenitor-impl/tests/output/src/buildomat_builder.rs +++ b/progenitor-impl/tests/output/src/buildomat_builder.rs @@ -95,8 +95,8 @@ pub mod types { )] pub struct ObjWithOptionArray { #[serde(rename = "stranger-things")] - pub stranger_things: Vec>, - pub things: Vec>, + pub stranger_things: ::std::vec::Vec<::std::option::Option>, + pub things: ::std::vec::Vec<::std::option::Option>, } impl From<&ObjWithOptionArray> for ObjWithOptionArray { @@ -152,11 +152,11 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Task { - pub id: String, - pub name: String, - pub output_rules: Vec, - pub script: String, - pub state: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, + pub state: ::std::string::String, } impl From<&Task> for Task { @@ -208,9 +208,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct TaskEvent { - pub payload: String, + pub payload: ::std::string::String, pub seq: u32, - pub stream: String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -258,8 +258,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct TaskOutput { - pub id: String, - pub path: String, + pub id: ::std::string::String, + pub path: ::std::string::String, pub size: u64, } @@ -307,10 +307,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct TaskSubmit { - pub name: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub output_rules: Vec, - pub script: String, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, } impl From<&TaskSubmit> for TaskSubmit { @@ -347,7 +347,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct TaskSubmitResult { - pub id: String, + pub id: ::std::string::String, } impl From<&TaskSubmitResult> for TaskSubmitResult { @@ -384,7 +384,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct UploadedChunk { - pub id: String, + pub id: ::std::string::String, } impl From<&UploadedChunk> for UploadedChunk { @@ -421,7 +421,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct UserCreate { - pub name: String, + pub name: ::std::string::String, } impl From<&UserCreate> for UserCreate { @@ -466,9 +466,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct UserCreateResult { - pub id: String, - pub name: String, - pub token: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub token: ::std::string::String, } impl From<&UserCreateResult> for UserCreateResult { @@ -509,8 +509,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WhoamiResult { - pub id: String, - pub name: String, + pub id: ::std::string::String, + pub name: ::std::string::String, } impl From<&WhoamiResult> for WhoamiResult { @@ -570,13 +570,13 @@ pub mod types { )] pub struct Worker { pub deleted: bool, - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub instance_id: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub lastping: Option>, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub instance_id: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub lastping: ::std::option::Option>, pub recycle: bool, - pub tasks: Vec, + pub tasks: ::std::vec::Vec, } impl From<&Worker> for Worker { @@ -625,8 +625,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkerAddOutput { - pub chunks: Vec, - pub path: String, + pub chunks: ::std::vec::Vec<::std::string::String>, + pub path: ::std::string::String, pub size: i64, } @@ -673,8 +673,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkerAppendTask { - pub payload: String, - pub stream: String, + pub payload: ::std::string::String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -716,8 +716,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkerBootstrap { - pub bootstrap: String, - pub token: String, + pub bootstrap: ::std::string::String, + pub token: ::std::string::String, } impl From<&WorkerBootstrap> for WorkerBootstrap { @@ -754,7 +754,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkerBootstrapResult { - pub id: String, + pub id: ::std::string::String, } impl From<&WorkerBootstrapResult> for WorkerBootstrapResult { @@ -832,8 +832,8 @@ pub mod types { )] pub struct WorkerPingResult { pub poweroff: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub task: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub task: ::std::option::Option, } impl From<&WorkerPingResult> for WorkerPingResult { @@ -881,9 +881,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkerPingTask { - pub id: String, - pub output_rules: Vec, - pub script: String, + pub id: ::std::string::String, + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, } impl From<&WorkerPingTask> for WorkerPingTask { @@ -928,9 +928,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkerTask { - pub id: String, - pub name: String, - pub owner: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub owner: ::std::string::String, } impl From<&WorkerTask> for WorkerTask { @@ -970,7 +970,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct WorkersResult { - pub workers: Vec, + pub workers: ::std::vec::Vec, } impl From<&WorkersResult> for WorkersResult { @@ -989,8 +989,14 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct ObjWithOptionArray { - stranger_things: Result>, String>, - things: Result>, String>, + stranger_things: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, + ::std::string::String, + >, + things: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, + ::std::string::String, + >, } impl Default for ObjWithOptionArray { @@ -1005,7 +1011,7 @@ pub mod types { impl ObjWithOptionArray { pub fn stranger_things(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, T::Error: std::fmt::Display, { self.stranger_things = value.try_into().map_err(|e| { @@ -1015,7 +1021,7 @@ pub mod types { } pub fn things(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, T::Error: std::fmt::Display, { self.things = value @@ -1025,9 +1031,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ObjWithOptionArray { + impl ::std::convert::TryFrom for super::ObjWithOptionArray { type Error = super::error::ConversionError; - fn try_from(value: ObjWithOptionArray) -> Result { + fn try_from( + value: ObjWithOptionArray, + ) -> ::std::result::Result { Ok(Self { stranger_things: value.stranger_things?, things: value.things?, @@ -1046,11 +1054,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Task { - id: Result, - name: Result, - output_rules: Result, String>, - script: Result, - state: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + output_rules: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + script: ::std::result::Result<::std::string::String, ::std::string::String>, + state: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Task { @@ -1068,7 +1079,7 @@ pub mod types { impl Task { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1078,7 +1089,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1088,7 +1099,7 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { @@ -1098,7 +1109,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -1108,7 +1119,7 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.state = value @@ -1118,9 +1129,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Task { + impl ::std::convert::TryFrom for super::Task { type Error = super::error::ConversionError; - fn try_from(value: Task) -> Result { + fn try_from(value: Task) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -1145,10 +1156,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskEvent { - payload: Result, - seq: Result, - stream: Result, - time: Result, String>, + payload: ::std::result::Result<::std::string::String, ::std::string::String>, + seq: ::std::result::Result, + stream: ::std::result::Result<::std::string::String, ::std::string::String>, + time: + ::std::result::Result, ::std::string::String>, } impl Default for TaskEvent { @@ -1165,7 +1177,7 @@ pub mod types { impl TaskEvent { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.payload = value @@ -1185,7 +1197,7 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.stream = value @@ -1205,9 +1217,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskEvent { + impl ::std::convert::TryFrom for super::TaskEvent { type Error = super::error::ConversionError; - fn try_from(value: TaskEvent) -> Result { + fn try_from( + value: TaskEvent, + ) -> ::std::result::Result { Ok(Self { payload: value.payload?, seq: value.seq?, @@ -1230,9 +1244,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskOutput { - id: Result, - path: Result, - size: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + path: ::std::result::Result<::std::string::String, ::std::string::String>, + size: ::std::result::Result, } impl Default for TaskOutput { @@ -1248,7 +1262,7 @@ pub mod types { impl TaskOutput { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1258,7 +1272,7 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.path = value @@ -1278,9 +1292,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskOutput { + impl ::std::convert::TryFrom for super::TaskOutput { type Error = super::error::ConversionError; - fn try_from(value: TaskOutput) -> Result { + fn try_from( + value: TaskOutput, + ) -> ::std::result::Result { Ok(Self { id: value.id?, path: value.path?, @@ -1301,9 +1317,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskSubmit { - name: Result, - output_rules: Result, String>, - script: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + output_rules: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + script: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for TaskSubmit { @@ -1319,7 +1338,7 @@ pub mod types { impl TaskSubmit { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1329,7 +1348,7 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { @@ -1339,7 +1358,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -1349,9 +1368,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskSubmit { + impl ::std::convert::TryFrom for super::TaskSubmit { type Error = super::error::ConversionError; - fn try_from(value: TaskSubmit) -> Result { + fn try_from( + value: TaskSubmit, + ) -> ::std::result::Result { Ok(Self { name: value.name?, output_rules: value.output_rules?, @@ -1372,7 +1393,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskSubmitResult { - id: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for TaskSubmitResult { @@ -1386,7 +1407,7 @@ pub mod types { impl TaskSubmitResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1396,9 +1417,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskSubmitResult { + impl ::std::convert::TryFrom for super::TaskSubmitResult { type Error = super::error::ConversionError; - fn try_from(value: TaskSubmitResult) -> Result { + fn try_from( + value: TaskSubmitResult, + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -1411,7 +1434,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct UploadedChunk { - id: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UploadedChunk { @@ -1425,7 +1448,7 @@ pub mod types { impl UploadedChunk { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1435,9 +1458,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UploadedChunk { + impl ::std::convert::TryFrom for super::UploadedChunk { type Error = super::error::ConversionError; - fn try_from(value: UploadedChunk) -> Result { + fn try_from( + value: UploadedChunk, + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -1450,7 +1475,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserCreate { - name: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UserCreate { @@ -1464,7 +1489,7 @@ pub mod types { impl UserCreate { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1474,9 +1499,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserCreate { + impl ::std::convert::TryFrom for super::UserCreate { type Error = super::error::ConversionError; - fn try_from(value: UserCreate) -> Result { + fn try_from( + value: UserCreate, + ) -> ::std::result::Result { Ok(Self { name: value.name? }) } } @@ -1491,9 +1518,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserCreateResult { - id: Result, - name: Result, - token: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + token: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UserCreateResult { @@ -1509,7 +1536,7 @@ pub mod types { impl UserCreateResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1519,7 +1546,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1529,7 +1556,7 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.token = value @@ -1539,9 +1566,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserCreateResult { + impl ::std::convert::TryFrom for super::UserCreateResult { type Error = super::error::ConversionError; - fn try_from(value: UserCreateResult) -> Result { + fn try_from( + value: UserCreateResult, + ) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -1562,8 +1591,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct WhoamiResult { - id: Result, - name: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WhoamiResult { @@ -1578,7 +1607,7 @@ pub mod types { impl WhoamiResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1588,7 +1617,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1598,9 +1627,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WhoamiResult { + impl ::std::convert::TryFrom for super::WhoamiResult { type Error = super::error::ConversionError; - fn try_from(value: WhoamiResult) -> Result { + fn try_from( + value: WhoamiResult, + ) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -1619,12 +1650,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct Worker { - deleted: Result, - id: Result, - instance_id: Result, String>, - lastping: Result>, String>, - recycle: Result, - tasks: Result, String>, + deleted: ::std::result::Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + instance_id: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + lastping: ::std::result::Result< + ::std::option::Option>, + ::std::string::String, + >, + recycle: ::std::result::Result, + tasks: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for Worker { @@ -1653,7 +1690,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1663,7 +1700,7 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.instance_id = value @@ -1673,7 +1710,9 @@ 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, { self.lastping = value @@ -1693,7 +1732,7 @@ pub mod types { } pub fn tasks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.tasks = value @@ -1703,9 +1742,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Worker { + impl ::std::convert::TryFrom for super::Worker { type Error = super::error::ConversionError; - fn try_from(value: Worker) -> Result { + fn try_from( + value: Worker, + ) -> ::std::result::Result { Ok(Self { deleted: value.deleted?, id: value.id?, @@ -1732,9 +1773,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerAddOutput { - chunks: Result, String>, - path: Result, - size: Result, + chunks: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + path: ::std::result::Result<::std::string::String, ::std::string::String>, + size: ::std::result::Result, } impl Default for WorkerAddOutput { @@ -1750,7 +1794,7 @@ pub mod types { impl WorkerAddOutput { pub fn chunks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.chunks = value @@ -1760,7 +1804,7 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.path = value @@ -1780,9 +1824,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerAddOutput { + impl ::std::convert::TryFrom for super::WorkerAddOutput { type Error = super::error::ConversionError; - fn try_from(value: WorkerAddOutput) -> Result { + fn try_from( + value: WorkerAddOutput, + ) -> ::std::result::Result { Ok(Self { chunks: value.chunks?, path: value.path?, @@ -1803,9 +1849,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerAppendTask { - payload: Result, - stream: Result, - time: Result, String>, + payload: ::std::result::Result<::std::string::String, ::std::string::String>, + stream: ::std::result::Result<::std::string::String, ::std::string::String>, + time: + ::std::result::Result, ::std::string::String>, } impl Default for WorkerAppendTask { @@ -1821,7 +1868,7 @@ pub mod types { impl WorkerAppendTask { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.payload = value @@ -1831,7 +1878,7 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.stream = value @@ -1851,9 +1898,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerAppendTask { + impl ::std::convert::TryFrom for super::WorkerAppendTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerAppendTask) -> Result { + fn try_from( + value: WorkerAppendTask, + ) -> ::std::result::Result { Ok(Self { payload: value.payload?, stream: value.stream?, @@ -1874,8 +1923,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerBootstrap { - bootstrap: Result, - token: Result, + bootstrap: ::std::result::Result<::std::string::String, ::std::string::String>, + token: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerBootstrap { @@ -1890,7 +1939,7 @@ pub mod types { impl WorkerBootstrap { pub fn bootstrap(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.bootstrap = value @@ -1900,7 +1949,7 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.token = value @@ -1910,9 +1959,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerBootstrap { + impl ::std::convert::TryFrom for super::WorkerBootstrap { type Error = super::error::ConversionError; - fn try_from(value: WorkerBootstrap) -> Result { + fn try_from( + value: WorkerBootstrap, + ) -> ::std::result::Result { Ok(Self { bootstrap: value.bootstrap?, token: value.token?, @@ -1931,7 +1982,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerBootstrapResult { - id: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerBootstrapResult { @@ -1945,7 +1996,7 @@ pub mod types { impl WorkerBootstrapResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1955,11 +2006,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerBootstrapResult { + impl ::std::convert::TryFrom for super::WorkerBootstrapResult { type Error = super::error::ConversionError; fn try_from( value: WorkerBootstrapResult, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -1972,7 +2023,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerCompleteTask { - failed: Result, + failed: ::std::result::Result, } impl Default for WorkerCompleteTask { @@ -1996,9 +2047,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerCompleteTask { + impl ::std::convert::TryFrom for super::WorkerCompleteTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerCompleteTask) -> Result { + fn try_from( + value: WorkerCompleteTask, + ) -> ::std::result::Result { Ok(Self { failed: value.failed?, }) @@ -2015,8 +2068,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerPingResult { - poweroff: Result, - task: Result, String>, + poweroff: ::std::result::Result, + task: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for WorkerPingResult { @@ -2041,7 +2097,7 @@ pub mod types { } pub fn task(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.task = value @@ -2051,9 +2107,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerPingResult { + impl ::std::convert::TryFrom for super::WorkerPingResult { type Error = super::error::ConversionError; - fn try_from(value: WorkerPingResult) -> Result { + fn try_from( + value: WorkerPingResult, + ) -> ::std::result::Result { Ok(Self { poweroff: value.poweroff?, task: value.task?, @@ -2072,9 +2130,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerPingTask { - id: Result, - output_rules: Result, String>, - script: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + output_rules: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + script: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerPingTask { @@ -2090,7 +2151,7 @@ pub mod types { impl WorkerPingTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -2100,7 +2161,7 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { @@ -2110,7 +2171,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -2120,9 +2181,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerPingTask { + impl ::std::convert::TryFrom for super::WorkerPingTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerPingTask) -> Result { + fn try_from( + value: WorkerPingTask, + ) -> ::std::result::Result { Ok(Self { id: value.id?, output_rules: value.output_rules?, @@ -2143,9 +2206,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerTask { - id: Result, - name: Result, - owner: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + owner: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerTask { @@ -2161,7 +2224,7 @@ pub mod types { impl WorkerTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -2171,7 +2234,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2181,7 +2244,7 @@ pub mod types { } pub fn owner(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.owner = value @@ -2191,9 +2254,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerTask { + impl ::std::convert::TryFrom for super::WorkerTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerTask) -> Result { + fn try_from( + value: WorkerTask, + ) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -2214,7 +2279,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkersResult { - workers: Result, String>, + workers: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for WorkersResult { @@ -2228,7 +2293,7 @@ pub mod types { impl WorkersResult { pub fn workers(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.workers = value @@ -2238,9 +2303,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkersResult { + impl ::std::convert::TryFrom for super::WorkersResult { type Error = super::error::ConversionError; - fn try_from(value: WorkersResult) -> Result { + fn try_from( + value: WorkersResult, + ) -> ::std::result::Result { Ok(Self { workers: value.workers?, }) @@ -2623,7 +2690,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskGet<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, } impl<'a> TaskGet<'a> { @@ -2636,11 +2703,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -2685,7 +2752,7 @@ pub mod builder { } ///Sends a `GET` request to `/v1/tasks` - pub async fn send(self) -> Result>, Error<()>> { + pub async fn send(self) -> Result>, Error<()>> { let Self { client } = self; let url = format!("{}/v1/tasks", client.baseurl,); #[allow(unused_mut)] @@ -2775,7 +2842,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskEventsGet<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, minseq: Result, String>, } @@ -2790,11 +2857,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -2810,7 +2877,9 @@ pub mod builder { } ///Sends a `GET` request to `/v1/tasks/{task}/events` - pub async fn send(self) -> Result>, Error<()>> { + pub async fn send( + self, + ) -> Result>, Error<()>> { let Self { client, task, @@ -2852,7 +2921,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskOutputsGet<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, } impl<'a> TaskOutputsGet<'a> { @@ -2865,16 +2934,18 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } ///Sends a `GET` request to `/v1/tasks/{task}/outputs` - pub async fn send(self) -> Result>, Error<()>> { + pub async fn send( + self, + ) -> Result>, Error<()>> { let Self { client, task } = self; let task = task.map_err(Error::InvalidRequest)?; let url = format!( @@ -2906,8 +2977,8 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskOutputDownload<'a> { client: &'a super::Client, - task: Result, - output: Result, + task: Result<::std::string::String, String>, + output: Result<::std::string::String, String>, } impl<'a> TaskOutputDownload<'a> { @@ -2921,21 +2992,21 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } pub fn output(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.output = value - .try_into() - .map_err(|_| "conversion to `String` for output failed".to_string()); + self.output = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for output failed".to_string() + }); self } @@ -3219,7 +3290,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct WorkerTaskAppend<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3234,11 +3305,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -3293,7 +3364,7 @@ pub mod builder { #[derive(Debug)] pub struct WorkerTaskUploadChunk<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3308,11 +3379,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -3365,7 +3436,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct WorkerTaskComplete<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3380,11 +3451,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -3439,7 +3510,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct WorkerTaskAddOutput<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3454,11 +3525,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs b/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs index b0ddc56f..79e428a9 100644 --- a/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/buildomat_builder_tagged.rs @@ -93,8 +93,8 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ObjWithOptionArray { #[serde(rename = "stranger-things")] - pub stranger_things: Vec>, - pub things: Vec>, + pub stranger_things: ::std::vec::Vec<::std::option::Option>, + pub things: ::std::vec::Vec<::std::option::Option>, } impl From<&ObjWithOptionArray> for ObjWithOptionArray { @@ -148,11 +148,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Task { - pub id: String, - pub name: String, - pub output_rules: Vec, - pub script: String, - pub state: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, + pub state: ::std::string::String, } impl From<&Task> for Task { @@ -202,9 +202,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskEvent { - pub payload: String, + pub payload: ::std::string::String, pub seq: u32, - pub stream: String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -250,8 +250,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskOutput { - pub id: String, - pub path: String, + pub id: ::std::string::String, + pub path: ::std::string::String, pub size: u64, } @@ -297,10 +297,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskSubmit { - pub name: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub output_rules: Vec, - pub script: String, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, } impl From<&TaskSubmit> for TaskSubmit { @@ -335,7 +335,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskSubmitResult { - pub id: String, + pub id: ::std::string::String, } impl From<&TaskSubmitResult> for TaskSubmitResult { @@ -370,7 +370,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UploadedChunk { - pub id: String, + pub id: ::std::string::String, } impl From<&UploadedChunk> for UploadedChunk { @@ -405,7 +405,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserCreate { - pub name: String, + pub name: ::std::string::String, } impl From<&UserCreate> for UserCreate { @@ -448,9 +448,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserCreateResult { - pub id: String, - pub name: String, - pub token: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub token: ::std::string::String, } impl From<&UserCreateResult> for UserCreateResult { @@ -489,8 +489,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WhoamiResult { - pub id: String, - pub name: String, + pub id: ::std::string::String, + pub name: ::std::string::String, } impl From<&WhoamiResult> for WhoamiResult { @@ -548,13 +548,13 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Worker { pub deleted: bool, - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub instance_id: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub lastping: Option>, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub instance_id: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub lastping: ::std::option::Option>, pub recycle: bool, - pub tasks: Vec, + pub tasks: ::std::vec::Vec, } impl From<&Worker> for Worker { @@ -601,8 +601,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerAddOutput { - pub chunks: Vec, - pub path: String, + pub chunks: ::std::vec::Vec<::std::string::String>, + pub path: ::std::string::String, pub size: i64, } @@ -647,8 +647,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerAppendTask { - pub payload: String, - pub stream: String, + pub payload: ::std::string::String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -688,8 +688,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerBootstrap { - pub bootstrap: String, - pub token: String, + pub bootstrap: ::std::string::String, + pub token: ::std::string::String, } impl From<&WorkerBootstrap> for WorkerBootstrap { @@ -724,7 +724,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerBootstrapResult { - pub id: String, + pub id: ::std::string::String, } impl From<&WorkerBootstrapResult> for WorkerBootstrapResult { @@ -798,8 +798,8 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerPingResult { pub poweroff: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub task: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub task: ::std::option::Option, } impl From<&WorkerPingResult> for WorkerPingResult { @@ -845,9 +845,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerPingTask { - pub id: String, - pub output_rules: Vec, - pub script: String, + pub id: ::std::string::String, + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, } impl From<&WorkerPingTask> for WorkerPingTask { @@ -890,9 +890,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerTask { - pub id: String, - pub name: String, - pub owner: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub owner: ::std::string::String, } impl From<&WorkerTask> for WorkerTask { @@ -930,7 +930,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkersResult { - pub workers: Vec, + pub workers: ::std::vec::Vec, } impl From<&WorkersResult> for WorkersResult { @@ -949,8 +949,14 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct ObjWithOptionArray { - stranger_things: Result>, String>, - things: Result>, String>, + stranger_things: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, + ::std::string::String, + >, + things: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, + ::std::string::String, + >, } impl Default for ObjWithOptionArray { @@ -965,7 +971,7 @@ pub mod types { impl ObjWithOptionArray { pub fn stranger_things(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, T::Error: std::fmt::Display, { self.stranger_things = value.try_into().map_err(|e| { @@ -975,7 +981,7 @@ pub mod types { } pub fn things(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto<::std::vec::Vec<::std::option::Option>>, T::Error: std::fmt::Display, { self.things = value @@ -985,9 +991,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ObjWithOptionArray { + impl ::std::convert::TryFrom for super::ObjWithOptionArray { type Error = super::error::ConversionError; - fn try_from(value: ObjWithOptionArray) -> Result { + fn try_from( + value: ObjWithOptionArray, + ) -> ::std::result::Result { Ok(Self { stranger_things: value.stranger_things?, things: value.things?, @@ -1006,11 +1014,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Task { - id: Result, - name: Result, - output_rules: Result, String>, - script: Result, - state: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + output_rules: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + script: ::std::result::Result<::std::string::String, ::std::string::String>, + state: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Task { @@ -1028,7 +1039,7 @@ pub mod types { impl Task { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1038,7 +1049,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1048,7 +1059,7 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { @@ -1058,7 +1069,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -1068,7 +1079,7 @@ pub mod types { } pub fn state(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.state = value @@ -1078,9 +1089,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Task { + impl ::std::convert::TryFrom for super::Task { type Error = super::error::ConversionError; - fn try_from(value: Task) -> Result { + fn try_from(value: Task) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -1105,10 +1116,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskEvent { - payload: Result, - seq: Result, - stream: Result, - time: Result, String>, + payload: ::std::result::Result<::std::string::String, ::std::string::String>, + seq: ::std::result::Result, + stream: ::std::result::Result<::std::string::String, ::std::string::String>, + time: + ::std::result::Result, ::std::string::String>, } impl Default for TaskEvent { @@ -1125,7 +1137,7 @@ pub mod types { impl TaskEvent { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.payload = value @@ -1145,7 +1157,7 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.stream = value @@ -1165,9 +1177,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskEvent { + impl ::std::convert::TryFrom for super::TaskEvent { type Error = super::error::ConversionError; - fn try_from(value: TaskEvent) -> Result { + fn try_from( + value: TaskEvent, + ) -> ::std::result::Result { Ok(Self { payload: value.payload?, seq: value.seq?, @@ -1190,9 +1204,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskOutput { - id: Result, - path: Result, - size: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + path: ::std::result::Result<::std::string::String, ::std::string::String>, + size: ::std::result::Result, } impl Default for TaskOutput { @@ -1208,7 +1222,7 @@ pub mod types { impl TaskOutput { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1218,7 +1232,7 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.path = value @@ -1238,9 +1252,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskOutput { + impl ::std::convert::TryFrom for super::TaskOutput { type Error = super::error::ConversionError; - fn try_from(value: TaskOutput) -> Result { + fn try_from( + value: TaskOutput, + ) -> ::std::result::Result { Ok(Self { id: value.id?, path: value.path?, @@ -1261,9 +1277,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskSubmit { - name: Result, - output_rules: Result, String>, - script: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + output_rules: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + script: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for TaskSubmit { @@ -1279,7 +1298,7 @@ pub mod types { impl TaskSubmit { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1289,7 +1308,7 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { @@ -1299,7 +1318,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -1309,9 +1328,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskSubmit { + impl ::std::convert::TryFrom for super::TaskSubmit { type Error = super::error::ConversionError; - fn try_from(value: TaskSubmit) -> Result { + fn try_from( + value: TaskSubmit, + ) -> ::std::result::Result { Ok(Self { name: value.name?, output_rules: value.output_rules?, @@ -1332,7 +1353,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct TaskSubmitResult { - id: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for TaskSubmitResult { @@ -1346,7 +1367,7 @@ pub mod types { impl TaskSubmitResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1356,9 +1377,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TaskSubmitResult { + impl ::std::convert::TryFrom for super::TaskSubmitResult { type Error = super::error::ConversionError; - fn try_from(value: TaskSubmitResult) -> Result { + fn try_from( + value: TaskSubmitResult, + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -1371,7 +1394,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct UploadedChunk { - id: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UploadedChunk { @@ -1385,7 +1408,7 @@ pub mod types { impl UploadedChunk { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1395,9 +1418,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UploadedChunk { + impl ::std::convert::TryFrom for super::UploadedChunk { type Error = super::error::ConversionError; - fn try_from(value: UploadedChunk) -> Result { + fn try_from( + value: UploadedChunk, + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -1410,7 +1435,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserCreate { - name: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UserCreate { @@ -1424,7 +1449,7 @@ pub mod types { impl UserCreate { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1434,9 +1459,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserCreate { + impl ::std::convert::TryFrom for super::UserCreate { type Error = super::error::ConversionError; - fn try_from(value: UserCreate) -> Result { + fn try_from( + value: UserCreate, + ) -> ::std::result::Result { Ok(Self { name: value.name? }) } } @@ -1451,9 +1478,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserCreateResult { - id: Result, - name: Result, - token: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + token: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UserCreateResult { @@ -1469,7 +1496,7 @@ pub mod types { impl UserCreateResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1479,7 +1506,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1489,7 +1516,7 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.token = value @@ -1499,9 +1526,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserCreateResult { + impl ::std::convert::TryFrom for super::UserCreateResult { type Error = super::error::ConversionError; - fn try_from(value: UserCreateResult) -> Result { + fn try_from( + value: UserCreateResult, + ) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -1522,8 +1551,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct WhoamiResult { - id: Result, - name: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WhoamiResult { @@ -1538,7 +1567,7 @@ pub mod types { impl WhoamiResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1548,7 +1577,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1558,9 +1587,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WhoamiResult { + impl ::std::convert::TryFrom for super::WhoamiResult { type Error = super::error::ConversionError; - fn try_from(value: WhoamiResult) -> Result { + fn try_from( + value: WhoamiResult, + ) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -1579,12 +1610,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct Worker { - deleted: Result, - id: Result, - instance_id: Result, String>, - lastping: Result>, String>, - recycle: Result, - tasks: Result, String>, + deleted: ::std::result::Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + instance_id: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + lastping: ::std::result::Result< + ::std::option::Option>, + ::std::string::String, + >, + recycle: ::std::result::Result, + tasks: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for Worker { @@ -1613,7 +1650,7 @@ pub mod types { } pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1623,7 +1660,7 @@ pub mod types { } pub fn instance_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.instance_id = value @@ -1633,7 +1670,9 @@ 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, { self.lastping = value @@ -1653,7 +1692,7 @@ pub mod types { } pub fn tasks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.tasks = value @@ -1663,9 +1702,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Worker { + impl ::std::convert::TryFrom for super::Worker { type Error = super::error::ConversionError; - fn try_from(value: Worker) -> Result { + fn try_from( + value: Worker, + ) -> ::std::result::Result { Ok(Self { deleted: value.deleted?, id: value.id?, @@ -1692,9 +1733,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerAddOutput { - chunks: Result, String>, - path: Result, - size: Result, + chunks: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + path: ::std::result::Result<::std::string::String, ::std::string::String>, + size: ::std::result::Result, } impl Default for WorkerAddOutput { @@ -1710,7 +1754,7 @@ pub mod types { impl WorkerAddOutput { pub fn chunks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.chunks = value @@ -1720,7 +1764,7 @@ pub mod types { } pub fn path(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.path = value @@ -1740,9 +1784,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerAddOutput { + impl ::std::convert::TryFrom for super::WorkerAddOutput { type Error = super::error::ConversionError; - fn try_from(value: WorkerAddOutput) -> Result { + fn try_from( + value: WorkerAddOutput, + ) -> ::std::result::Result { Ok(Self { chunks: value.chunks?, path: value.path?, @@ -1763,9 +1809,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerAppendTask { - payload: Result, - stream: Result, - time: Result, String>, + payload: ::std::result::Result<::std::string::String, ::std::string::String>, + stream: ::std::result::Result<::std::string::String, ::std::string::String>, + time: + ::std::result::Result, ::std::string::String>, } impl Default for WorkerAppendTask { @@ -1781,7 +1828,7 @@ pub mod types { impl WorkerAppendTask { pub fn payload(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.payload = value @@ -1791,7 +1838,7 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.stream = value @@ -1811,9 +1858,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerAppendTask { + impl ::std::convert::TryFrom for super::WorkerAppendTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerAppendTask) -> Result { + fn try_from( + value: WorkerAppendTask, + ) -> ::std::result::Result { Ok(Self { payload: value.payload?, stream: value.stream?, @@ -1834,8 +1883,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerBootstrap { - bootstrap: Result, - token: Result, + bootstrap: ::std::result::Result<::std::string::String, ::std::string::String>, + token: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerBootstrap { @@ -1850,7 +1899,7 @@ pub mod types { impl WorkerBootstrap { pub fn bootstrap(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.bootstrap = value @@ -1860,7 +1909,7 @@ pub mod types { } pub fn token(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.token = value @@ -1870,9 +1919,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerBootstrap { + impl ::std::convert::TryFrom for super::WorkerBootstrap { type Error = super::error::ConversionError; - fn try_from(value: WorkerBootstrap) -> Result { + fn try_from( + value: WorkerBootstrap, + ) -> ::std::result::Result { Ok(Self { bootstrap: value.bootstrap?, token: value.token?, @@ -1891,7 +1942,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerBootstrapResult { - id: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerBootstrapResult { @@ -1905,7 +1956,7 @@ pub mod types { impl WorkerBootstrapResult { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -1915,11 +1966,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerBootstrapResult { + impl ::std::convert::TryFrom for super::WorkerBootstrapResult { type Error = super::error::ConversionError; fn try_from( value: WorkerBootstrapResult, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -1932,7 +1983,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerCompleteTask { - failed: Result, + failed: ::std::result::Result, } impl Default for WorkerCompleteTask { @@ -1956,9 +2007,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerCompleteTask { + impl ::std::convert::TryFrom for super::WorkerCompleteTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerCompleteTask) -> Result { + fn try_from( + value: WorkerCompleteTask, + ) -> ::std::result::Result { Ok(Self { failed: value.failed?, }) @@ -1975,8 +2028,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerPingResult { - poweroff: Result, - task: Result, String>, + poweroff: ::std::result::Result, + task: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for WorkerPingResult { @@ -2001,7 +2057,7 @@ pub mod types { } pub fn task(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.task = value @@ -2011,9 +2067,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerPingResult { + impl ::std::convert::TryFrom for super::WorkerPingResult { type Error = super::error::ConversionError; - fn try_from(value: WorkerPingResult) -> Result { + fn try_from( + value: WorkerPingResult, + ) -> ::std::result::Result { Ok(Self { poweroff: value.poweroff?, task: value.task?, @@ -2032,9 +2090,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerPingTask { - id: Result, - output_rules: Result, String>, - script: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + output_rules: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, + script: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerPingTask { @@ -2050,7 +2111,7 @@ pub mod types { impl WorkerPingTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -2060,7 +2121,7 @@ pub mod types { } pub fn output_rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.output_rules = value.try_into().map_err(|e| { @@ -2070,7 +2131,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -2080,9 +2141,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerPingTask { + impl ::std::convert::TryFrom for super::WorkerPingTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerPingTask) -> Result { + fn try_from( + value: WorkerPingTask, + ) -> ::std::result::Result { Ok(Self { id: value.id?, output_rules: value.output_rules?, @@ -2103,9 +2166,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkerTask { - id: Result, - name: Result, - owner: Result, + id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + owner: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for WorkerTask { @@ -2121,7 +2184,7 @@ pub mod types { impl WorkerTask { pub fn id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.id = value @@ -2131,7 +2194,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2141,7 +2204,7 @@ pub mod types { } pub fn owner(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.owner = value @@ -2151,9 +2214,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkerTask { + impl ::std::convert::TryFrom for super::WorkerTask { type Error = super::error::ConversionError; - fn try_from(value: WorkerTask) -> Result { + fn try_from( + value: WorkerTask, + ) -> ::std::result::Result { Ok(Self { id: value.id?, name: value.name?, @@ -2174,7 +2239,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct WorkersResult { - workers: Result, String>, + workers: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for WorkersResult { @@ -2188,7 +2253,7 @@ pub mod types { impl WorkersResult { pub fn workers(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.workers = value @@ -2198,9 +2263,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::WorkersResult { + impl ::std::convert::TryFrom for super::WorkersResult { type Error = super::error::ConversionError; - fn try_from(value: WorkersResult) -> Result { + fn try_from( + value: WorkersResult, + ) -> ::std::result::Result { Ok(Self { workers: value.workers?, }) @@ -2583,7 +2650,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskGet<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, } impl<'a> TaskGet<'a> { @@ -2596,11 +2663,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -2645,7 +2712,7 @@ pub mod builder { } ///Sends a `GET` request to `/v1/tasks` - pub async fn send(self) -> Result>, Error<()>> { + pub async fn send(self) -> Result>, Error<()>> { let Self { client } = self; let url = format!("{}/v1/tasks", client.baseurl,); #[allow(unused_mut)] @@ -2735,7 +2802,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskEventsGet<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, minseq: Result, String>, } @@ -2750,11 +2817,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -2770,7 +2837,9 @@ pub mod builder { } ///Sends a `GET` request to `/v1/tasks/{task}/events` - pub async fn send(self) -> Result>, Error<()>> { + pub async fn send( + self, + ) -> Result>, Error<()>> { let Self { client, task, @@ -2812,7 +2881,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskOutputsGet<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, } impl<'a> TaskOutputsGet<'a> { @@ -2825,16 +2894,18 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } ///Sends a `GET` request to `/v1/tasks/{task}/outputs` - pub async fn send(self) -> Result>, Error<()>> { + pub async fn send( + self, + ) -> Result>, Error<()>> { let Self { client, task } = self; let task = task.map_err(Error::InvalidRequest)?; let url = format!( @@ -2866,8 +2937,8 @@ pub mod builder { #[derive(Debug, Clone)] pub struct TaskOutputDownload<'a> { client: &'a super::Client, - task: Result, - output: Result, + task: Result<::std::string::String, String>, + output: Result<::std::string::String, String>, } impl<'a> TaskOutputDownload<'a> { @@ -2881,21 +2952,21 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } pub fn output(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.output = value - .try_into() - .map_err(|_| "conversion to `String` for output failed".to_string()); + self.output = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for output failed".to_string() + }); self } @@ -3179,7 +3250,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct WorkerTaskAppend<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3194,11 +3265,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -3253,7 +3324,7 @@ pub mod builder { #[derive(Debug)] pub struct WorkerTaskUploadChunk<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3268,11 +3339,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -3325,7 +3396,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct WorkerTaskComplete<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3340,11 +3411,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } @@ -3399,7 +3470,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct WorkerTaskAddOutput<'a> { client: &'a super::Client, - task: Result, + task: Result<::std::string::String, String>, body: Result, } @@ -3414,11 +3485,11 @@ pub mod builder { pub fn task(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.task = value - .try_into() - .map_err(|_| "conversion to `String` for task failed".to_string()); + self.task = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for task failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/buildomat_cli.rs b/progenitor-impl/tests/output/src/buildomat_cli.rs index ff604e33..a8db7c5c 100644 --- a/progenitor-impl/tests/output/src/buildomat_cli.rs +++ b/progenitor-impl/tests/output/src/buildomat_cli.rs @@ -45,7 +45,7 @@ impl Cli { ::clap::Command::new("").arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) } @@ -59,13 +59,13 @@ impl Cli { .arg( ::clap::Arg::new("name") .long("name") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("script") .long("script") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -95,7 +95,7 @@ impl Cli { .arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) } @@ -104,7 +104,7 @@ impl Cli { ::clap::Command::new("").arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) } @@ -114,13 +114,13 @@ impl Cli { .arg( ::clap::Arg::new("output") .long("output") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) .arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) } @@ -130,7 +130,7 @@ impl Cli { .arg( ::clap::Arg::new("name") .long("name") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -162,13 +162,13 @@ impl Cli { .arg( ::clap::Arg::new("bootstrap") .long("bootstrap") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("token") .long("token") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -196,19 +196,19 @@ impl Cli { .arg( ::clap::Arg::new("payload") .long("payload") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("stream") .long("stream") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) .arg( @@ -237,7 +237,7 @@ impl Cli { ::clap::Command::new("").arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) } @@ -253,7 +253,7 @@ impl Cli { .arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) .arg( @@ -277,7 +277,7 @@ impl Cli { .arg( ::clap::Arg::new("path") .long("path") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -289,7 +289,7 @@ impl Cli { .arg( ::clap::Arg::new("task") .long("task") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) .arg( @@ -380,7 +380,7 @@ impl Cli { pub async fn execute_task_get(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.task_get(); - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -416,11 +416,11 @@ impl Cli { pub async fn execute_task_submit(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.task_submit(); - if let Some(value) = matches.get_one::("name") { + if let Some(value) = matches.get_one::<::std::string::String>("name") { request = request.body_map(|body| body.name(value.clone())) } - if let Some(value) = matches.get_one::("script") { + if let Some(value) = matches.get_one::<::std::string::String>("script") { request = request.body_map(|body| body.script(value.clone())) } @@ -453,7 +453,7 @@ impl Cli { request = request.minseq(value.clone()); } - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -476,7 +476,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.task_outputs_get(); - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -500,11 +500,11 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.task_output_download(); - if let Some(value) = matches.get_one::("output") { + if let Some(value) = matches.get_one::<::std::string::String>("output") { request = request.output(value.clone()); } - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -524,7 +524,7 @@ impl Cli { pub async fn execute_user_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.user_create(); - if let Some(value) = matches.get_one::("name") { + if let Some(value) = matches.get_one::<::std::string::String>("name") { request = request.body_map(|body| body.name(value.clone())) } @@ -588,11 +588,11 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.worker_bootstrap(); - if let Some(value) = matches.get_one::("bootstrap") { + if let Some(value) = matches.get_one::<::std::string::String>("bootstrap") { request = request.body_map(|body| body.bootstrap(value.clone())) } - if let Some(value) = matches.get_one::("token") { + if let Some(value) = matches.get_one::<::std::string::String>("token") { request = request.body_map(|body| body.token(value.clone())) } @@ -638,15 +638,15 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.worker_task_append(); - if let Some(value) = matches.get_one::("payload") { + if let Some(value) = matches.get_one::<::std::string::String>("payload") { request = request.body_map(|body| body.payload(value.clone())) } - if let Some(value) = matches.get_one::("stream") { + if let Some(value) = matches.get_one::<::std::string::String>("stream") { request = request.body_map(|body| body.stream(value.clone())) } - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -680,7 +680,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.worker_task_upload_chunk(); - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -708,7 +708,7 @@ impl Cli { request = request.body_map(|body| body.failed(value.clone())) } - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } @@ -738,7 +738,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.worker_task_add_output(); - if let Some(value) = matches.get_one::("path") { + if let Some(value) = matches.get_one::<::std::string::String>("path") { request = request.body_map(|body| body.path(value.clone())) } @@ -746,7 +746,7 @@ impl Cli { request = request.body_map(|body| body.size(value.clone())) } - if let Some(value) = matches.get_one::("task") { + if let Some(value) = matches.get_one::<::std::string::String>("task") { request = request.task(value.clone()); } diff --git a/progenitor-impl/tests/output/src/buildomat_httpmock.rs b/progenitor-impl/tests/output/src/buildomat_httpmock.rs index 70db3c45..523e84fd 100644 --- a/progenitor-impl/tests/output/src/buildomat_httpmock.rs +++ b/progenitor-impl/tests/output/src/buildomat_httpmock.rs @@ -134,7 +134,7 @@ pub mod operations { self.0 } - pub fn ok(self, value: &Vec) -> Self { + pub fn ok(self, value: &::std::vec::Vec) -> Self { Self( self.0 .status(200u16) @@ -230,7 +230,7 @@ pub mod operations { self.0 } - pub fn ok(self, value: &Vec) -> Self { + pub fn ok(self, value: &::std::vec::Vec) -> Self { Self( self.0 .status(200u16) @@ -271,7 +271,7 @@ pub mod operations { self.0 } - pub fn ok(self, value: &Vec) -> Self { + pub fn ok(self, value: &::std::vec::Vec) -> Self { Self( self.0 .status(200u16) diff --git a/progenitor-impl/tests/output/src/buildomat_positional.rs b/progenitor-impl/tests/output/src/buildomat_positional.rs index f1b7bc13..d448699b 100644 --- a/progenitor-impl/tests/output/src/buildomat_positional.rs +++ b/progenitor-impl/tests/output/src/buildomat_positional.rs @@ -93,8 +93,8 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ObjWithOptionArray { #[serde(rename = "stranger-things")] - pub stranger_things: Vec>, - pub things: Vec>, + pub stranger_things: ::std::vec::Vec<::std::option::Option>, + pub things: ::std::vec::Vec<::std::option::Option>, } impl From<&ObjWithOptionArray> for ObjWithOptionArray { @@ -142,11 +142,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Task { - pub id: String, - pub name: String, - pub output_rules: Vec, - pub script: String, - pub state: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, + pub state: ::std::string::String, } impl From<&Task> for Task { @@ -190,9 +190,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskEvent { - pub payload: String, + pub payload: ::std::string::String, pub seq: u32, - pub stream: String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -232,8 +232,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskOutput { - pub id: String, - pub path: String, + pub id: ::std::string::String, + pub path: ::std::string::String, pub size: u64, } @@ -273,10 +273,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskSubmit { - pub name: String, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub output_rules: Vec, - pub script: String, + pub name: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, } impl From<&TaskSubmit> for TaskSubmit { @@ -305,7 +305,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TaskSubmitResult { - pub id: String, + pub id: ::std::string::String, } impl From<&TaskSubmitResult> for TaskSubmitResult { @@ -334,7 +334,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UploadedChunk { - pub id: String, + pub id: ::std::string::String, } impl From<&UploadedChunk> for UploadedChunk { @@ -363,7 +363,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserCreate { - pub name: String, + pub name: ::std::string::String, } impl From<&UserCreate> for UserCreate { @@ -400,9 +400,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserCreateResult { - pub id: String, - pub name: String, - pub token: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub token: ::std::string::String, } impl From<&UserCreateResult> for UserCreateResult { @@ -435,8 +435,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WhoamiResult { - pub id: String, - pub name: String, + pub id: ::std::string::String, + pub name: ::std::string::String, } impl From<&WhoamiResult> for WhoamiResult { @@ -488,13 +488,13 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Worker { pub deleted: bool, - pub id: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub instance_id: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub lastping: Option>, + pub id: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub instance_id: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub lastping: ::std::option::Option>, pub recycle: bool, - pub tasks: Vec, + pub tasks: ::std::vec::Vec, } impl From<&Worker> for Worker { @@ -535,8 +535,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerAddOutput { - pub chunks: Vec, - pub path: String, + pub chunks: ::std::vec::Vec<::std::string::String>, + pub path: ::std::string::String, pub size: i64, } @@ -575,8 +575,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerAppendTask { - pub payload: String, - pub stream: String, + pub payload: ::std::string::String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -610,8 +610,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerBootstrap { - pub bootstrap: String, - pub token: String, + pub bootstrap: ::std::string::String, + pub token: ::std::string::String, } impl From<&WorkerBootstrap> for WorkerBootstrap { @@ -640,7 +640,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerBootstrapResult { - pub id: String, + pub id: ::std::string::String, } impl From<&WorkerBootstrapResult> for WorkerBootstrapResult { @@ -702,8 +702,8 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerPingResult { pub poweroff: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub task: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub task: ::std::option::Option, } impl From<&WorkerPingResult> for WorkerPingResult { @@ -743,9 +743,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerPingTask { - pub id: String, - pub output_rules: Vec, - pub script: String, + pub id: ::std::string::String, + pub output_rules: ::std::vec::Vec<::std::string::String>, + pub script: ::std::string::String, } impl From<&WorkerPingTask> for WorkerPingTask { @@ -782,9 +782,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkerTask { - pub id: String, - pub name: String, - pub owner: String, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub owner: ::std::string::String, } impl From<&WorkerTask> for WorkerTask { @@ -816,7 +816,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct WorkersResult { - pub workers: Vec, + pub workers: ::std::vec::Vec, } impl From<&WorkersResult> for WorkersResult { @@ -949,7 +949,9 @@ impl Client { } ///Sends a `GET` request to `/v1/tasks` - pub async fn tasks_get<'a>(&'a self) -> Result>, Error<()>> { + pub async fn tasks_get<'a>( + &'a self, + ) -> Result>, Error<()>> { let url = format!("{}/v1/tasks", self.baseurl,); #[allow(unused_mut)] let mut request = self @@ -997,7 +999,7 @@ impl Client { &'a self, task: &'a str, minseq: Option, - ) -> Result>, Error<()>> { + ) -> Result>, Error<()>> { let url = format!( "{}/v1/tasks/{}/events", self.baseurl, @@ -1030,7 +1032,7 @@ impl Client { pub async fn task_outputs_get<'a>( &'a self, task: &'a str, - ) -> Result>, Error<()>> { + ) -> Result>, Error<()>> { let url = format!( "{}/v1/tasks/{}/outputs", self.baseurl, diff --git a/progenitor-impl/tests/output/src/cli_gen_builder.rs b/progenitor-impl/tests/output/src/cli_gen_builder.rs index c13ea480..67d9feda 100644 --- a/progenitor-impl/tests/output/src/cli_gen_builder.rs +++ b/progenitor-impl/tests/output/src/cli_gen_builder.rs @@ -59,8 +59,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct UnoBody { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub gateway: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub gateway: ::std::option::Option<::std::string::String>, pub required: ::serde_json::Value, } @@ -80,8 +80,11 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct UnoBody { - gateway: Result, String>, - required: Result<::serde_json::Value, String>, + gateway: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + required: ::std::result::Result<::serde_json::Value, ::std::string::String>, } impl Default for UnoBody { @@ -96,7 +99,7 @@ pub mod types { impl UnoBody { pub fn gateway(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.gateway = value @@ -116,9 +119,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UnoBody { + impl ::std::convert::TryFrom for super::UnoBody { type Error = super::error::ConversionError; - fn try_from(value: UnoBody) -> Result { + fn try_from( + value: UnoBody, + ) -> ::std::result::Result { Ok(Self { gateway: value.gateway?, required: value.required?, @@ -228,7 +233,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct Uno<'a> { client: &'a super::Client, - gateway: Result, + gateway: Result<::std::string::String, String>, body: Result, } @@ -243,11 +248,11 @@ pub mod builder { pub fn gateway(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.gateway = value - .try_into() - .map_err(|_| "conversion to `String` for gateway failed".to_string()); + self.gateway = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for gateway failed".to_string() + }); self } 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 fa7039df..bdcf2133 100644 --- a/progenitor-impl/tests/output/src/cli_gen_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/cli_gen_builder_tagged.rs @@ -57,8 +57,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UnoBody { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub gateway: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub gateway: ::std::option::Option<::std::string::String>, pub required: ::serde_json::Value, } @@ -78,8 +78,11 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct UnoBody { - gateway: Result, String>, - required: Result<::serde_json::Value, String>, + gateway: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + required: ::std::result::Result<::serde_json::Value, ::std::string::String>, } impl Default for UnoBody { @@ -94,7 +97,7 @@ pub mod types { impl UnoBody { pub fn gateway(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.gateway = value @@ -114,9 +117,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UnoBody { + impl ::std::convert::TryFrom for super::UnoBody { type Error = super::error::ConversionError; - fn try_from(value: UnoBody) -> Result { + fn try_from( + value: UnoBody, + ) -> ::std::result::Result { Ok(Self { gateway: value.gateway?, required: value.required?, @@ -226,7 +231,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct Uno<'a> { client: &'a super::Client, - gateway: Result, + gateway: Result<::std::string::String, String>, body: Result, } @@ -241,11 +246,11 @@ pub mod builder { pub fn gateway(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.gateway = value - .try_into() - .map_err(|_| "conversion to `String` for gateway failed".to_string()); + self.gateway = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for gateway failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/cli_gen_cli.rs b/progenitor-impl/tests/output/src/cli_gen_cli.rs index 98473c92..637f6edb 100644 --- a/progenitor-impl/tests/output/src/cli_gen_cli.rs +++ b/progenitor-impl/tests/output/src/cli_gen_cli.rs @@ -20,7 +20,7 @@ impl Cli { .arg( ::clap::Arg::new("gateway") .long("gateway") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true), ) .arg( @@ -51,7 +51,7 @@ impl Cli { pub async fn execute_uno(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.uno(); - if let Some(value) = matches.get_one::("gateway") { + if let Some(value) = matches.get_one::<::std::string::String>("gateway") { request = request.gateway(value.clone()); } diff --git a/progenitor-impl/tests/output/src/cli_gen_positional.rs b/progenitor-impl/tests/output/src/cli_gen_positional.rs index 5c69ccba..8976a11d 100644 --- a/progenitor-impl/tests/output/src/cli_gen_positional.rs +++ b/progenitor-impl/tests/output/src/cli_gen_positional.rs @@ -57,8 +57,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UnoBody { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub gateway: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub gateway: ::std::option::Option<::std::string::String>, pub required: ::serde_json::Value, } diff --git a/progenitor-impl/tests/output/src/keeper_builder.rs b/progenitor-impl/tests/output/src/keeper_builder.rs index ee651a93..c89e807f 100644 --- a/progenitor-impl/tests/output/src/keeper_builder.rs +++ b/progenitor-impl/tests/output/src/keeper_builder.rs @@ -64,8 +64,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct EnrolBody { - pub host: String, - pub key: String, + pub host: ::std::string::String, + pub key: ::std::string::String, } impl From<&EnrolBody> for EnrolBody { @@ -106,7 +106,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct GlobalJobsResult { - pub summary: Vec, + pub summary: ::std::vec::Vec, } impl From<&GlobalJobsResult> for GlobalJobsResult { @@ -152,8 +152,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct OutputRecord { - pub msg: String, - pub stream: String, + pub msg: ::std::string::String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -196,7 +196,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct PingResult { - pub host: String, + pub host: ::std::string::String, pub ok: bool, } @@ -309,11 +309,11 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ReportId { - pub host: String, - pub job: String, + pub host: ::std::string::String, + pub job: ::std::string::String, pub pid: u64, pub time: chrono::DateTime, - pub uuid: String, + pub uuid: ::std::string::String, } impl From<&ReportId> for ReportId { @@ -442,7 +442,7 @@ pub mod types { )] pub struct ReportStartBody { pub id: ReportId, - pub script: String, + pub script: ::std::string::String, pub start_time: chrono::DateTime, } @@ -506,8 +506,8 @@ pub mod types { pub struct ReportSummary { pub age_seconds: usize, pub duration_seconds: usize, - pub host: String, - pub job: String, + pub host: ::std::string::String, + pub job: ::std::string::String, pub status: usize, pub when: chrono::DateTime, } @@ -528,8 +528,8 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct EnrolBody { - host: Result, - key: Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + key: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for EnrolBody { @@ -544,7 +544,7 @@ pub mod types { impl EnrolBody { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -554,7 +554,7 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.key = value @@ -564,9 +564,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::EnrolBody { + impl ::std::convert::TryFrom for super::EnrolBody { type Error = super::error::ConversionError; - fn try_from(value: EnrolBody) -> Result { + fn try_from( + value: EnrolBody, + ) -> ::std::result::Result { Ok(Self { host: value.host?, key: value.key?, @@ -585,7 +587,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalJobsResult { - summary: Result, String>, + summary: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for GlobalJobsResult { @@ -599,7 +602,7 @@ pub mod types { impl GlobalJobsResult { pub fn summary(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.summary = value @@ -609,9 +612,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalJobsResult { + impl ::std::convert::TryFrom for super::GlobalJobsResult { type Error = super::error::ConversionError; - fn try_from(value: GlobalJobsResult) -> Result { + fn try_from( + value: GlobalJobsResult, + ) -> ::std::result::Result { Ok(Self { summary: value.summary?, }) @@ -628,9 +633,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct OutputRecord { - msg: Result, - stream: Result, - time: Result, String>, + msg: ::std::result::Result<::std::string::String, ::std::string::String>, + stream: ::std::result::Result<::std::string::String, ::std::string::String>, + time: + ::std::result::Result, ::std::string::String>, } impl Default for OutputRecord { @@ -646,7 +652,7 @@ pub mod types { impl OutputRecord { pub fn msg(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.msg = value @@ -656,7 +662,7 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.stream = value @@ -676,9 +682,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OutputRecord { + impl ::std::convert::TryFrom for super::OutputRecord { type Error = super::error::ConversionError; - fn try_from(value: OutputRecord) -> Result { + fn try_from( + value: OutputRecord, + ) -> ::std::result::Result { Ok(Self { msg: value.msg?, stream: value.stream?, @@ -699,8 +707,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct PingResult { - host: Result, - ok: Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + ok: ::std::result::Result, } impl Default for PingResult { @@ -715,7 +723,7 @@ pub mod types { impl PingResult { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -735,9 +743,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::PingResult { + impl ::std::convert::TryFrom for super::PingResult { type Error = super::error::ConversionError; - fn try_from(value: PingResult) -> Result { + fn try_from( + value: PingResult, + ) -> ::std::result::Result { Ok(Self { host: value.host?, ok: value.ok?, @@ -756,10 +766,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportFinishBody { - duration_millis: Result, - end_time: Result, String>, - exit_status: Result, - id: Result, + duration_millis: ::std::result::Result, + end_time: + ::std::result::Result, ::std::string::String>, + exit_status: ::std::result::Result, + id: ::std::result::Result, } impl Default for ReportFinishBody { @@ -816,9 +827,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportFinishBody { + impl ::std::convert::TryFrom for super::ReportFinishBody { type Error = super::error::ConversionError; - fn try_from(value: ReportFinishBody) -> Result { + fn try_from( + value: ReportFinishBody, + ) -> ::std::result::Result { Ok(Self { duration_millis: value.duration_millis?, end_time: value.end_time?, @@ -841,11 +854,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportId { - host: Result, - job: Result, - pid: Result, - time: Result, String>, - uuid: Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + job: ::std::result::Result<::std::string::String, ::std::string::String>, + pid: ::std::result::Result, + time: + ::std::result::Result, ::std::string::String>, + uuid: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for ReportId { @@ -863,7 +877,7 @@ pub mod types { impl ReportId { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -873,7 +887,7 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.job = value @@ -903,7 +917,7 @@ pub mod types { } pub fn uuid(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.uuid = value @@ -913,9 +927,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportId { + impl ::std::convert::TryFrom for super::ReportId { type Error = super::error::ConversionError; - fn try_from(value: ReportId) -> Result { + fn try_from( + value: ReportId, + ) -> ::std::result::Result { Ok(Self { host: value.host?, job: value.job?, @@ -940,8 +956,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportOutputBody { - id: Result, - record: Result, + id: ::std::result::Result, + record: ::std::result::Result, } impl Default for ReportOutputBody { @@ -976,9 +992,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportOutputBody { + impl ::std::convert::TryFrom for super::ReportOutputBody { type Error = super::error::ConversionError; - fn try_from(value: ReportOutputBody) -> Result { + fn try_from( + value: ReportOutputBody, + ) -> ::std::result::Result { Ok(Self { id: value.id?, record: value.record?, @@ -997,7 +1015,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportResult { - existed_already: Result, + existed_already: ::std::result::Result, } impl Default for ReportResult { @@ -1021,9 +1039,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportResult { + impl ::std::convert::TryFrom for super::ReportResult { type Error = super::error::ConversionError; - fn try_from(value: ReportResult) -> Result { + fn try_from( + value: ReportResult, + ) -> ::std::result::Result { Ok(Self { existed_already: value.existed_already?, }) @@ -1040,9 +1060,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportStartBody { - id: Result, - script: Result, - start_time: Result, String>, + id: ::std::result::Result, + script: ::std::result::Result<::std::string::String, ::std::string::String>, + start_time: + ::std::result::Result, ::std::string::String>, } impl Default for ReportStartBody { @@ -1068,7 +1089,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -1088,9 +1109,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportStartBody { + impl ::std::convert::TryFrom for super::ReportStartBody { type Error = super::error::ConversionError; - fn try_from(value: ReportStartBody) -> Result { + fn try_from( + value: ReportStartBody, + ) -> ::std::result::Result { Ok(Self { id: value.id?, script: value.script?, @@ -1111,12 +1134,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportSummary { - age_seconds: Result, - duration_seconds: Result, - host: Result, - job: Result, - status: Result, - when: Result, String>, + age_seconds: ::std::result::Result, + duration_seconds: ::std::result::Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + job: ::std::result::Result<::std::string::String, ::std::string::String>, + status: ::std::result::Result, + when: + ::std::result::Result, ::std::string::String>, } impl Default for ReportSummary { @@ -1158,7 +1182,7 @@ pub mod types { } pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -1168,7 +1192,7 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.job = value @@ -1198,9 +1222,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportSummary { + impl ::std::convert::TryFrom for super::ReportSummary { type Error = super::error::ConversionError; - fn try_from(value: ReportSummary) -> Result { + fn try_from( + value: ReportSummary, + ) -> ::std::result::Result { Ok(Self { age_seconds: value.age_seconds?, duration_seconds: value.duration_seconds?, @@ -1397,7 +1423,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct Enrol<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1412,11 +1438,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1476,7 +1502,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct GlobalJobs<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, } impl<'a> GlobalJobs<'a> { @@ -1489,11 +1515,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1532,7 +1558,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct Ping<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, } impl<'a> Ping<'a> { @@ -1545,11 +1571,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1588,7 +1614,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ReportFinish<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1603,11 +1629,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1673,7 +1699,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ReportOutput<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1688,11 +1714,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1758,7 +1784,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ReportStart<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1773,11 +1799,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/keeper_builder_tagged.rs b/progenitor-impl/tests/output/src/keeper_builder_tagged.rs index cea81f28..92f96f1f 100644 --- a/progenitor-impl/tests/output/src/keeper_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/keeper_builder_tagged.rs @@ -62,8 +62,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct EnrolBody { - pub host: String, - pub key: String, + pub host: ::std::string::String, + pub key: ::std::string::String, } impl From<&EnrolBody> for EnrolBody { @@ -102,7 +102,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GlobalJobsResult { - pub summary: Vec, + pub summary: ::std::vec::Vec, } impl From<&GlobalJobsResult> for GlobalJobsResult { @@ -146,8 +146,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OutputRecord { - pub msg: String, - pub stream: String, + pub msg: ::std::string::String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -188,7 +188,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct PingResult { - pub host: String, + pub host: ::std::string::String, pub ok: bool, } @@ -297,11 +297,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ReportId { - pub host: String, - pub job: String, + pub host: ::std::string::String, + pub job: ::std::string::String, pub pid: u64, pub time: chrono::DateTime, - pub uuid: String, + pub uuid: ::std::string::String, } impl From<&ReportId> for ReportId { @@ -424,7 +424,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ReportStartBody { pub id: ReportId, - pub script: String, + pub script: ::std::string::String, pub start_time: chrono::DateTime, } @@ -486,8 +486,8 @@ pub mod types { pub struct ReportSummary { pub age_seconds: i32, pub duration_seconds: i32, - pub host: String, - pub job: String, + pub host: ::std::string::String, + pub job: ::std::string::String, pub status: i32, pub when: chrono::DateTime, } @@ -508,8 +508,8 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct EnrolBody { - host: Result, - key: Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + key: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for EnrolBody { @@ -524,7 +524,7 @@ pub mod types { impl EnrolBody { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -534,7 +534,7 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.key = value @@ -544,9 +544,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::EnrolBody { + impl ::std::convert::TryFrom for super::EnrolBody { type Error = super::error::ConversionError; - fn try_from(value: EnrolBody) -> Result { + fn try_from( + value: EnrolBody, + ) -> ::std::result::Result { Ok(Self { host: value.host?, key: value.key?, @@ -565,7 +567,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalJobsResult { - summary: Result, String>, + summary: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for GlobalJobsResult { @@ -579,7 +582,7 @@ pub mod types { impl GlobalJobsResult { pub fn summary(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.summary = value @@ -589,9 +592,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalJobsResult { + impl ::std::convert::TryFrom for super::GlobalJobsResult { type Error = super::error::ConversionError; - fn try_from(value: GlobalJobsResult) -> Result { + fn try_from( + value: GlobalJobsResult, + ) -> ::std::result::Result { Ok(Self { summary: value.summary?, }) @@ -608,9 +613,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct OutputRecord { - msg: Result, - stream: Result, - time: Result, String>, + msg: ::std::result::Result<::std::string::String, ::std::string::String>, + stream: ::std::result::Result<::std::string::String, ::std::string::String>, + time: + ::std::result::Result, ::std::string::String>, } impl Default for OutputRecord { @@ -626,7 +632,7 @@ pub mod types { impl OutputRecord { pub fn msg(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.msg = value @@ -636,7 +642,7 @@ pub mod types { } pub fn stream(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.stream = value @@ -656,9 +662,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OutputRecord { + impl ::std::convert::TryFrom for super::OutputRecord { type Error = super::error::ConversionError; - fn try_from(value: OutputRecord) -> Result { + fn try_from( + value: OutputRecord, + ) -> ::std::result::Result { Ok(Self { msg: value.msg?, stream: value.stream?, @@ -679,8 +687,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct PingResult { - host: Result, - ok: Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + ok: ::std::result::Result, } impl Default for PingResult { @@ -695,7 +703,7 @@ pub mod types { impl PingResult { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -715,9 +723,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::PingResult { + impl ::std::convert::TryFrom for super::PingResult { type Error = super::error::ConversionError; - fn try_from(value: PingResult) -> Result { + fn try_from( + value: PingResult, + ) -> ::std::result::Result { Ok(Self { host: value.host?, ok: value.ok?, @@ -736,10 +746,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportFinishBody { - duration_millis: Result, - end_time: Result, String>, - exit_status: Result, - id: Result, + duration_millis: ::std::result::Result, + end_time: + ::std::result::Result, ::std::string::String>, + exit_status: ::std::result::Result, + id: ::std::result::Result, } impl Default for ReportFinishBody { @@ -796,9 +807,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportFinishBody { + impl ::std::convert::TryFrom for super::ReportFinishBody { type Error = super::error::ConversionError; - fn try_from(value: ReportFinishBody) -> Result { + fn try_from( + value: ReportFinishBody, + ) -> ::std::result::Result { Ok(Self { duration_millis: value.duration_millis?, end_time: value.end_time?, @@ -821,11 +834,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportId { - host: Result, - job: Result, - pid: Result, - time: Result, String>, - uuid: Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + job: ::std::result::Result<::std::string::String, ::std::string::String>, + pid: ::std::result::Result, + time: + ::std::result::Result, ::std::string::String>, + uuid: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for ReportId { @@ -843,7 +857,7 @@ pub mod types { impl ReportId { pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -853,7 +867,7 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.job = value @@ -883,7 +897,7 @@ pub mod types { } pub fn uuid(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.uuid = value @@ -893,9 +907,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportId { + impl ::std::convert::TryFrom for super::ReportId { type Error = super::error::ConversionError; - fn try_from(value: ReportId) -> Result { + fn try_from( + value: ReportId, + ) -> ::std::result::Result { Ok(Self { host: value.host?, job: value.job?, @@ -920,8 +936,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportOutputBody { - id: Result, - record: Result, + id: ::std::result::Result, + record: ::std::result::Result, } impl Default for ReportOutputBody { @@ -956,9 +972,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportOutputBody { + impl ::std::convert::TryFrom for super::ReportOutputBody { type Error = super::error::ConversionError; - fn try_from(value: ReportOutputBody) -> Result { + fn try_from( + value: ReportOutputBody, + ) -> ::std::result::Result { Ok(Self { id: value.id?, record: value.record?, @@ -977,7 +995,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportResult { - existed_already: Result, + existed_already: ::std::result::Result, } impl Default for ReportResult { @@ -1001,9 +1019,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportResult { + impl ::std::convert::TryFrom for super::ReportResult { type Error = super::error::ConversionError; - fn try_from(value: ReportResult) -> Result { + fn try_from( + value: ReportResult, + ) -> ::std::result::Result { Ok(Self { existed_already: value.existed_already?, }) @@ -1020,9 +1040,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportStartBody { - id: Result, - script: Result, - start_time: Result, String>, + id: ::std::result::Result, + script: ::std::result::Result<::std::string::String, ::std::string::String>, + start_time: + ::std::result::Result, ::std::string::String>, } impl Default for ReportStartBody { @@ -1048,7 +1069,7 @@ pub mod types { } pub fn script(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.script = value @@ -1068,9 +1089,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportStartBody { + impl ::std::convert::TryFrom for super::ReportStartBody { type Error = super::error::ConversionError; - fn try_from(value: ReportStartBody) -> Result { + fn try_from( + value: ReportStartBody, + ) -> ::std::result::Result { Ok(Self { id: value.id?, script: value.script?, @@ -1091,12 +1114,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct ReportSummary { - age_seconds: Result, - duration_seconds: Result, - host: Result, - job: Result, - status: Result, - when: Result, String>, + age_seconds: ::std::result::Result, + duration_seconds: ::std::result::Result, + host: ::std::result::Result<::std::string::String, ::std::string::String>, + job: ::std::result::Result<::std::string::String, ::std::string::String>, + status: ::std::result::Result, + when: + ::std::result::Result, ::std::string::String>, } impl Default for ReportSummary { @@ -1138,7 +1162,7 @@ pub mod types { } pub fn host(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.host = value @@ -1148,7 +1172,7 @@ pub mod types { } pub fn job(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.job = value @@ -1178,9 +1202,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ReportSummary { + impl ::std::convert::TryFrom for super::ReportSummary { type Error = super::error::ConversionError; - fn try_from(value: ReportSummary) -> Result { + fn try_from( + value: ReportSummary, + ) -> ::std::result::Result { Ok(Self { age_seconds: value.age_seconds?, duration_seconds: value.duration_seconds?, @@ -1377,7 +1403,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct Enrol<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1392,11 +1418,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1456,7 +1482,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct GlobalJobs<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, } impl<'a> GlobalJobs<'a> { @@ -1469,11 +1495,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1512,7 +1538,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct Ping<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, } impl<'a> Ping<'a> { @@ -1525,11 +1551,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1568,7 +1594,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ReportFinish<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1583,11 +1609,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1653,7 +1679,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ReportOutput<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1668,11 +1694,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } @@ -1738,7 +1764,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct ReportStart<'a> { client: &'a super::Client, - authorization: Result, + authorization: Result<::std::string::String, String>, body: Result, } @@ -1753,11 +1779,11 @@ pub mod builder { pub fn authorization(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.authorization = value - .try_into() - .map_err(|_| "conversion to `String` for authorization failed".to_string()); + self.authorization = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for authorization failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/keeper_cli.rs b/progenitor-impl/tests/output/src/keeper_cli.rs index de8cd68d..604308e1 100644 --- a/progenitor-impl/tests/output/src/keeper_cli.rs +++ b/progenitor-impl/tests/output/src/keeper_cli.rs @@ -25,20 +25,20 @@ impl Cli { .arg( ::clap::Arg::new("authorization") .long("authorization") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("Authorization header (bearer token)"), ) .arg( ::clap::Arg::new("host") .long("host") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("key") .long("key") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -61,7 +61,7 @@ impl Cli { ::clap::Command::new("").arg( ::clap::Arg::new("authorization") .long("authorization") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("Authorization header (bearer token)"), ) @@ -71,7 +71,7 @@ impl Cli { ::clap::Command::new("").arg( ::clap::Arg::new("authorization") .long("authorization") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("Authorization header (bearer token)"), ) @@ -82,7 +82,7 @@ impl Cli { .arg( ::clap::Arg::new("authorization") .long("authorization") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("Authorization header (bearer token)"), ) @@ -125,7 +125,7 @@ impl Cli { .arg( ::clap::Arg::new("authorization") .long("authorization") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("Authorization header (bearer token)"), ) @@ -150,14 +150,14 @@ impl Cli { .arg( ::clap::Arg::new("authorization") .long("authorization") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("Authorization header (bearer token)"), ) .arg( ::clap::Arg::new("script") .long("script") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -199,15 +199,15 @@ impl Cli { pub async fn execute_enrol(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.enrol(); - if let Some(value) = matches.get_one::("authorization") { + if let Some(value) = matches.get_one::<::std::string::String>("authorization") { request = request.authorization(value.clone()); } - if let Some(value) = matches.get_one::("host") { + if let Some(value) = matches.get_one::<::std::string::String>("host") { request = request.body_map(|body| body.host(value.clone())) } - if let Some(value) = matches.get_one::("key") { + if let Some(value) = matches.get_one::<::std::string::String>("key") { request = request.body_map(|body| body.key(value.clone())) } @@ -233,7 +233,7 @@ impl Cli { pub async fn execute_global_jobs(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.global_jobs(); - if let Some(value) = matches.get_one::("authorization") { + if let Some(value) = matches.get_one::<::std::string::String>("authorization") { request = request.authorization(value.clone()); } @@ -253,7 +253,7 @@ impl Cli { pub async fn execute_ping(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.ping(); - if let Some(value) = matches.get_one::("authorization") { + if let Some(value) = matches.get_one::<::std::string::String>("authorization") { request = request.authorization(value.clone()); } @@ -273,7 +273,7 @@ impl Cli { pub async fn execute_report_finish(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.report_finish(); - if let Some(value) = matches.get_one::("authorization") { + if let Some(value) = matches.get_one::<::std::string::String>("authorization") { request = request.authorization(value.clone()); } @@ -311,7 +311,7 @@ impl Cli { pub async fn execute_report_output(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.report_output(); - if let Some(value) = matches.get_one::("authorization") { + if let Some(value) = matches.get_one::<::std::string::String>("authorization") { request = request.authorization(value.clone()); } @@ -337,11 +337,11 @@ impl Cli { pub async fn execute_report_start(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.report_start(); - if let Some(value) = matches.get_one::("authorization") { + if let Some(value) = matches.get_one::<::std::string::String>("authorization") { request = request.authorization(value.clone()); } - if let Some(value) = matches.get_one::("script") { + if let Some(value) = matches.get_one::<::std::string::String>("script") { request = request.body_map(|body| body.script(value.clone())) } diff --git a/progenitor-impl/tests/output/src/keeper_positional.rs b/progenitor-impl/tests/output/src/keeper_positional.rs index 5a45d640..b16d7842 100644 --- a/progenitor-impl/tests/output/src/keeper_positional.rs +++ b/progenitor-impl/tests/output/src/keeper_positional.rs @@ -62,8 +62,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct EnrolBody { - pub host: String, - pub key: String, + pub host: ::std::string::String, + pub key: ::std::string::String, } impl From<&EnrolBody> for EnrolBody { @@ -96,7 +96,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GlobalJobsResult { - pub summary: Vec, + pub summary: ::std::vec::Vec, } impl From<&GlobalJobsResult> for GlobalJobsResult { @@ -134,8 +134,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OutputRecord { - pub msg: String, - pub stream: String, + pub msg: ::std::string::String, + pub stream: ::std::string::String, pub time: chrono::DateTime, } @@ -170,7 +170,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct PingResult { - pub host: String, + pub host: ::std::string::String, pub ok: bool, } @@ -267,11 +267,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ReportId { - pub host: String, - pub job: String, + pub host: ::std::string::String, + pub job: ::std::string::String, pub pid: u64, pub time: chrono::DateTime, - pub uuid: String, + pub uuid: ::std::string::String, } impl From<&ReportId> for ReportId { @@ -376,7 +376,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ReportStartBody { pub id: ReportId, - pub script: String, + pub script: ::std::string::String, pub start_time: chrono::DateTime, } @@ -432,8 +432,8 @@ pub mod types { pub struct ReportSummary { pub age_seconds: i32, pub duration_seconds: i32, - pub host: String, - pub job: String, + pub host: ::std::string::String, + pub job: ::std::string::String, pub status: i32, pub when: chrono::DateTime, } diff --git a/progenitor-impl/tests/output/src/nexus_builder.rs b/progenitor-impl/tests/output/src/nexus_builder.rs index c1615116..e010a603 100644 --- a/progenitor-impl/tests/output/src/nexus_builder.rs +++ b/progenitor-impl/tests/output/src/nexus_builder.rs @@ -70,9 +70,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Baseboard { - pub part: String, + pub part: ::std::string::String, pub revision: i64, - pub serial: String, + pub serial: ::std::string::String, } impl From<&Baseboard> for Baseboard { @@ -452,9 +452,9 @@ pub mod types { } } - impl std::convert::TryFrom for BlockSize { + impl ::std::convert::TryFrom for BlockSize { type Error = self::error::ConversionError; - fn try_from(value: i64) -> Result { + fn try_from(value: i64) -> ::std::result::Result { if ![512_i64, 2048_i64, 4096_i64].contains(&value) { Err("invalid value".into()) } else { @@ -464,7 +464,7 @@ pub mod types { } impl<'de> ::serde::Deserialize<'de> for BlockSize { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { @@ -528,29 +528,29 @@ pub mod types { } impl std::str::FromStr for ByteCount { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for ByteCount { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for ByteCount { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for ByteCount { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -619,7 +619,7 @@ pub mod types { )] pub struct Certificate { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -702,10 +702,10 @@ pub mod types { )] pub struct CertificateCreate { ///PEM file containing public certificate chain - pub cert: Vec, - pub description: String, + pub cert: ::std::vec::Vec, + pub description: ::std::string::String, ///PEM file containing private key - pub key: Vec, + pub key: ::std::vec::Vec, pub name: Name, ///The service using this certificate pub service: ServiceUsingCertificate, @@ -759,10 +759,10 @@ pub mod types { )] pub struct CertificateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&CertificateResultsPage> for CertificateResultsPage { @@ -883,10 +883,10 @@ pub mod types { )] pub struct ComponentUpdateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { @@ -1185,9 +1185,9 @@ pub mod types { #[serde(rename = "f64")] F64(f64), #[serde(rename = "string")] - String(String), + String(::std::string::String), #[serde(rename = "bytes")] - Bytes(Vec), + Bytes(::std::vec::Vec), #[serde(rename = "cumulative_i64")] CumulativeI64(Cumulativeint64), #[serde(rename = "cumulative_f64")] @@ -1222,8 +1222,8 @@ pub mod types { } } - impl From> for Datum { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for Datum { + fn from(value: ::std::vec::Vec) -> Self { Self::Bytes(value) } } @@ -1332,7 +1332,7 @@ pub mod types { impl std::str::FromStr for DatumType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "bool" => Ok(Self::Bool), "i64" => Ok(Self::I64), @@ -1350,21 +1350,25 @@ pub mod types { impl std::convert::TryFrom<&str> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for DatumType { + impl std::convert::TryFrom<&::std::string::String> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for DatumType { + impl std::convert::TryFrom<::std::string::String> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1400,9 +1404,9 @@ pub mod types { )] pub struct DerEncodedKeyPair { ///request signing private key (base64 encoded der file) - pub private_key: String, + pub private_key: ::std::string::String, ///request signing public certificate (base64 encoded der file) - pub public_cert: String, + pub public_cert: ::std::string::String, } impl From<&DerEncodedKeyPair> for DerEncodedKeyPair { @@ -1449,8 +1453,8 @@ pub mod types { )] pub struct DeviceAccessTokenRequest { pub client_id: uuid::Uuid, - pub device_code: String, - pub grant_type: String, + pub device_code: ::std::string::String, + pub grant_type: ::std::string::String, } impl From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { @@ -1525,7 +1529,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DeviceAuthVerify { - pub user_code: String, + pub user_code: ::std::string::String, } impl From<&DeviceAuthVerify> for DeviceAuthVerify { @@ -1575,7 +1579,7 @@ pub mod types { #[serde(tag = "type", content = "value")] pub enum Digest { #[serde(rename = "sha256")] - Sha256(String), + Sha256(::std::string::String), } impl From<&Digest> for Digest { @@ -1674,18 +1678,18 @@ pub mod types { pub struct Disk { pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, - pub device_path: String, + pub description: ::std::string::String, + pub device_path: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub image_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub image_id: ::std::option::Option, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub project_id: uuid::Uuid, pub size: ByteCount, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub snapshot_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub snapshot_id: ::std::option::Option, pub state: DiskState, ///timestamp when this resource was created pub time_created: chrono::DateTime, @@ -1752,7 +1756,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DiskCreate { - pub description: String, + pub description: ::std::string::String, ///initial source for this disk pub disk_source: DiskSource, pub name: Name, @@ -1881,7 +1885,7 @@ pub mod types { impl std::str::FromStr for DiskMetricName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "activated" => Ok(Self::Activated), "flush" => Ok(Self::Flush), @@ -1896,21 +1900,25 @@ pub mod types { impl std::convert::TryFrom<&str> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for DiskMetricName { + impl std::convert::TryFrom<&::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for DiskMetricName { + impl std::convert::TryFrom<::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1988,10 +1996,10 @@ pub mod types { )] pub struct DiskResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&DiskResultsPage> for DiskResultsPage { @@ -2332,7 +2340,7 @@ pub mod types { ///The name of the distribution (e.g. "alpine" or "ubuntu") pub name: Name, ///The version of the distribution (e.g. "3.10" or "18.04") - pub version: String, + pub version: ::std::string::String, } impl From<&Distribution> for Distribution { @@ -2377,10 +2385,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -2492,8 +2500,8 @@ pub mod types { /// available pools if not specified. #[serde(rename = "ephemeral")] Ephemeral { - #[serde(default, skip_serializing_if = "Option::is_none")] - pool_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pool_name: ::std::option::Option, }, } @@ -2539,10 +2547,10 @@ pub mod types { )] pub struct ExternalIpResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ExternalIpResultsPage> for ExternalIpResultsPage { @@ -2589,7 +2597,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct FieldSchema { - pub name: String, + pub name: ::std::string::String, pub source: FieldSource, pub ty: FieldType, } @@ -2659,7 +2667,7 @@ pub mod types { impl std::str::FromStr for FieldSource { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "target" => Ok(Self::Target), "metric" => Ok(Self::Metric), @@ -2670,21 +2678,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FieldSource { + impl std::convert::TryFrom<&::std::string::String> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FieldSource { + impl std::convert::TryFrom<::std::string::String> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2754,7 +2766,7 @@ pub mod types { impl std::str::FromStr for FieldType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "string" => Ok(Self::String), "i64" => Ok(Self::I64), @@ -2768,21 +2780,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FieldType { + impl std::convert::TryFrom<&::std::string::String> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FieldType { + impl std::convert::TryFrom<::std::string::String> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2842,7 +2858,7 @@ pub mod types { impl std::str::FromStr for FleetRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -2854,21 +2870,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FleetRole { + impl std::convert::TryFrom<&::std::string::String> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FleetRole { + impl std::convert::TryFrom<::std::string::String> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2909,7 +2929,7 @@ pub mod types { )] pub struct FleetRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&FleetRolePolicy> for FleetRolePolicy { @@ -3088,12 +3108,12 @@ pub mod types { ///size of blocks in bytes pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///Hash of the image contents, if applicable - #[serde(default, skip_serializing_if = "Option::is_none")] - pub digest: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub digest: ::std::option::Option, ///Image distribution - pub distribution: String, + pub distribution: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -3105,10 +3125,10 @@ pub mod types { ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, ///URL source of this image, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub url: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub url: ::std::option::Option<::std::string::String>, ///Image version - pub version: String, + pub version: ::std::string::String, } impl From<&GlobalImage> for GlobalImage { @@ -3181,7 +3201,7 @@ pub mod types { pub struct GlobalImageCreate { ///block size in bytes pub block_size: BlockSize, - pub description: String, + pub description: ::std::string::String, ///OS image distribution pub distribution: Distribution, pub name: Name, @@ -3237,10 +3257,10 @@ pub mod types { )] pub struct GlobalImageResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&GlobalImageResultsPage> for GlobalImageResultsPage { @@ -3291,7 +3311,7 @@ pub mod types { )] pub struct Group { ///Human-readable name that can identify the group - pub display_name: String, + pub display_name: ::std::string::String, pub id: uuid::Uuid, ///Uuid of the silo to which this group belongs pub silo_id: uuid::Uuid, @@ -3345,10 +3365,10 @@ pub mod types { )] pub struct GroupResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&GroupResultsPage> for GroupResultsPage { @@ -3472,7 +3492,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Histogramdouble { - pub bins: Vec, + pub bins: ::std::vec::Vec, pub n_samples: u64, pub start_time: chrono::DateTime, } @@ -3598,7 +3618,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Histogramint64 { - pub bins: Vec, + pub bins: ::std::vec::Vec, pub n_samples: u64, pub start_time: chrono::DateTime, } @@ -3672,7 +3692,7 @@ pub mod types { impl std::str::FromStr for IdSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "id_ascending" => Ok(Self::IdAscending), _ => Err("invalid value".into()), @@ -3682,21 +3702,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdSortMode { + impl std::convert::TryFrom<&::std::string::String> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdSortMode { + impl std::convert::TryFrom<::std::string::String> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3764,7 +3788,7 @@ pub mod types { )] pub struct IdentityProvider { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -3825,10 +3849,10 @@ pub mod types { )] pub struct IdentityProviderResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { @@ -3896,7 +3920,7 @@ pub mod types { impl std::str::FromStr for IdentityProviderType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "saml" => Ok(Self::Saml), _ => Err("invalid value".into()), @@ -3906,21 +3930,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdentityProviderType { + impl std::convert::TryFrom<&::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdentityProviderType { + impl std::convert::TryFrom<::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3977,7 +4005,7 @@ pub mod types { impl std::str::FromStr for IdentityType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "silo_user" => Ok(Self::SiloUser), "silo_group" => Ok(Self::SiloGroup), @@ -3988,21 +4016,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdentityType { + impl std::convert::TryFrom<&::std::string::String> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdentityType { + impl std::convert::TryFrom<::std::string::String> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4060,9 +4092,9 @@ pub mod types { #[serde(tag = "type")] pub enum IdpMetadataSource { #[serde(rename = "url")] - Url { url: String }, + Url { url: ::std::string::String }, #[serde(rename = "base64_encoded_xml")] - Base64EncodedXml { data: String }, + Base64EncodedXml { data: ::std::string::String }, } impl From<&IdpMetadataSource> for IdpMetadataSource { @@ -4180,10 +4212,10 @@ pub mod types { ///size of blocks in bytes pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///Hash of the image contents, if applicable - #[serde(default, skip_serializing_if = "Option::is_none")] - pub digest: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub digest: ::std::option::Option, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -4197,11 +4229,11 @@ pub mod types { ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, ///URL source of this image, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub url: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub url: ::std::option::Option<::std::string::String>, ///Version of this, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub version: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub version: ::std::option::Option<::std::string::String>, } impl From<&Image> for Image { @@ -4265,7 +4297,7 @@ pub mod types { pub struct ImageCreate { ///block size in bytes pub block_size: BlockSize, - pub description: String, + pub description: ::std::string::String, pub name: Name, ///The source of the image's contents. pub source: ImageSource, @@ -4319,10 +4351,10 @@ pub mod types { )] pub struct ImageResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ImageResultsPage> for ImageResultsPage { @@ -4408,7 +4440,7 @@ pub mod types { #[serde(tag = "type")] pub enum ImageSource { #[serde(rename = "url")] - Url { url: String }, + Url { url: ::std::string::String }, #[serde(rename = "snapshot")] Snapshot { id: uuid::Uuid }, #[serde(rename = "you_can_boot_anything_as_long_as_its_alpine")] @@ -4513,9 +4545,9 @@ pub mod types { )] pub struct Instance { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///RFC1035-compliant hostname for the Instance. - pub hostname: String, + pub hostname: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///memory allocated for this Instance @@ -4589,29 +4621,29 @@ pub mod types { } impl std::str::FromStr for InstanceCpuCount { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -4712,19 +4744,19 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceCreate { - pub description: String, + pub description: ::std::string::String, ///The disks to be created or attached for this instance. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub disks: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub disks: ::std::vec::Vec, ///The external IP addresses provided to this instance. /// ///By default, all instances have outbound connectivity, but no inbound /// connectivity. These external addresses can be used to provide a /// fixed, known IP address for making inbound connections to the /// instance. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub external_ips: Vec, - pub hostname: String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub external_ips: ::std::vec::Vec, + pub hostname: ::std::string::String, pub memory: ByteCount, pub name: Name, pub ncpus: InstanceCpuCount, @@ -4738,7 +4770,7 @@ pub mod types { /// Must be a Base64-encoded string, as specified in RFC 4648 § 4 (+ and /// / characters with padding). Maximum 32 KiB unencoded data. #[serde(default)] - pub user_data: String, + pub user_data: ::std::string::String, } impl From<&InstanceCreate> for InstanceCreate { @@ -4838,7 +4870,7 @@ pub mod types { ///During instance creation, create and attach disks #[serde(rename = "create")] Create { - description: String, + description: ::std::string::String, ///initial source for this disk disk_source: DiskSource, name: Name, @@ -4982,7 +5014,7 @@ pub mod types { ///If more than one interface is provided, then the first will be /// designated the primary interface for the instance. #[serde(rename = "create")] - Create(Vec), + Create(::std::vec::Vec), #[serde(rename = "default")] Default, #[serde(rename = "none")] @@ -4995,8 +5027,8 @@ pub mod types { } } - impl From> for InstanceNetworkInterfaceAttachment { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for InstanceNetworkInterfaceAttachment { + fn from(value: ::std::vec::Vec) -> Self { Self::Create(value) } } @@ -5037,10 +5069,10 @@ pub mod types { )] pub struct InstanceResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&InstanceResultsPage> for InstanceResultsPage { @@ -5098,7 +5130,7 @@ pub mod types { ///The bytes starting from the requested offset up to either the end of /// the buffer or the request's `max_bytes`. Provided as a u8 array /// rather than a string, as it may not be UTF-8. - pub data: Vec, + pub data: ::std::vec::Vec, ///The absolute offset since boot (suitable for use as `byte_offset` in /// a subsequent request) of the last byte returned in `data`. pub last_byte_offset: u64, @@ -5283,7 +5315,7 @@ pub mod types { impl std::str::FromStr for InstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "creating" => Ok(Self::Creating), "starting" => Ok(Self::Starting), @@ -5302,21 +5334,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceState { + impl std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceState { + impl std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5373,7 +5409,7 @@ pub mod types { impl std::str::FromStr for IpKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "ephemeral" => Ok(Self::Ephemeral), "floating" => Ok(Self::Floating), @@ -5384,21 +5420,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IpKind { + impl std::convert::TryFrom<&::std::string::String> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IpKind { + impl std::convert::TryFrom<::std::string::String> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5447,7 +5487,7 @@ pub mod types { impl std::str::FromStr for IpNet { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::V4(v)) } else if let Ok(v) = value.parse() { @@ -5460,21 +5500,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IpNet { + impl std::convert::TryFrom<&::std::string::String> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IpNet { + impl std::convert::TryFrom<::std::string::String> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5556,7 +5600,7 @@ pub mod types { )] pub struct IpPool { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -5609,7 +5653,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct IpPoolCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -5710,10 +5754,10 @@ pub mod types { )] pub struct IpPoolRangeResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { @@ -5764,10 +5808,10 @@ pub mod types { )] pub struct IpPoolResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IpPoolResultsPage> for IpPoolResultsPage { @@ -5819,10 +5863,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct IpPoolUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&IpPoolUpdate> for IpPoolUpdate { @@ -5921,15 +5965,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct Ipv4Net(String); + pub struct Ipv4Net(::std::string::String); impl ::std::ops::Deref for Ipv4Net { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Ipv4Net) -> Self { value.0 } @@ -5943,7 +5987,7 @@ pub mod types { impl ::std::str::FromStr for Ipv4Net { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.\ ){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/\ @@ -5965,31 +6009,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Ipv4Net { + impl ::std::convert::TryFrom<&::std::string::String> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Ipv4Net { + impl ::std::convert::TryFrom<::std::string::String> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Ipv4Net { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6075,15 +6123,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct Ipv6Net(String); + pub struct Ipv6Net(::std::string::String); impl ::std::ops::Deref for Ipv6Net { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Ipv6Net) -> Self { value.0 } @@ -6097,7 +6145,7 @@ pub mod types { impl ::std::str::FromStr for Ipv6Net { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "^([fF][dD])[0-9a-fA-F]{2}:(([0-9a-fA-F]{1,4}:){6}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,\ 4}:){1,6}:)\\/([1-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$", @@ -6118,31 +6166,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Ipv6Net { + impl ::std::convert::TryFrom<&::std::string::String> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Ipv6Net { + impl ::std::convert::TryFrom<::std::string::String> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Ipv6Net { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6230,15 +6282,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct L4PortRange(String); + pub struct L4PortRange(::std::string::String); impl ::std::ops::Deref for L4PortRange { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: L4PortRange) -> Self { value.0 } @@ -6252,7 +6304,7 @@ pub mod types { impl ::std::str::FromStr for L4PortRange { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 11usize { return Err("longer than 11 characters".into()); } @@ -6272,31 +6324,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for L4PortRange { + impl ::std::convert::TryFrom<&::std::string::String> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for L4PortRange { + impl ::std::convert::TryFrom<::std::string::String> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for L4PortRange { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6333,15 +6389,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct MacAddr(String); + pub struct MacAddr(::std::string::String); impl ::std::ops::Deref for MacAddr { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: MacAddr) -> Self { value.0 } @@ -6355,7 +6411,7 @@ pub mod types { impl ::std::str::FromStr for MacAddr { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 17usize { return Err("longer than 17 characters".into()); } @@ -6377,31 +6433,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for MacAddr { + impl ::std::convert::TryFrom<&::std::string::String> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for MacAddr { + impl ::std::convert::TryFrom<::std::string::String> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for MacAddr { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6490,10 +6550,10 @@ pub mod types { )] pub struct MeasurementResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&MeasurementResultsPage> for MeasurementResultsPage { @@ -6540,15 +6600,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct Name(String); + pub struct Name(::std::string::String); impl ::std::ops::Deref for Name { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Name) -> Self { value.0 } @@ -6562,7 +6622,7 @@ pub mod types { impl ::std::str::FromStr for Name { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -6573,31 +6633,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Name { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Name { + impl ::std::convert::TryFrom<&::std::string::String> for Name { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Name { + impl ::std::convert::TryFrom<::std::string::String> for Name { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Name { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6650,7 +6714,7 @@ pub mod types { impl std::str::FromStr for NameOrId { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Id(v)) } else if let Ok(v) = value.parse() { @@ -6663,21 +6727,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameOrId { + impl std::convert::TryFrom<&::std::string::String> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameOrId { + impl std::convert::TryFrom<::std::string::String> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6780,7 +6848,7 @@ pub mod types { impl std::str::FromStr for NameOrIdSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "name_ascending" => Ok(Self::NameAscending), "name_descending" => Ok(Self::NameDescending), @@ -6792,21 +6860,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameOrIdSortMode { + impl std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameOrIdSortMode { + impl std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6868,7 +6940,7 @@ pub mod types { impl std::str::FromStr for NameSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "name_ascending" => Ok(Self::NameAscending), _ => Err("invalid value".into()), @@ -6878,21 +6950,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameSortMode { + impl std::convert::TryFrom<&::std::string::String> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameSortMode { + impl std::convert::TryFrom<::std::string::String> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6991,7 +7067,7 @@ pub mod types { )] pub struct NetworkInterface { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///The Instance to which the interface belongs. @@ -7082,11 +7158,11 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct NetworkInterfaceCreate { - pub description: String, + pub description: ::std::string::String, ///The IP address for the interface. One will be auto-assigned if not /// provided. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ip: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ip: ::std::option::Option, pub name: Name, ///The VPC Subnet in which to create the interface. pub subnet_name: Name, @@ -7142,10 +7218,10 @@ pub mod types { )] pub struct NetworkInterfaceResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { @@ -7216,10 +7292,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct NetworkInterfaceUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, ///Make a secondary interface the instance's primary interface. /// ///If applied to a secondary interface, that interface will become the @@ -7278,15 +7354,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct NodeName(pub String); + pub struct NodeName(pub ::std::string::String); impl ::std::ops::Deref for NodeName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: NodeName) -> Self { value.0 } @@ -7298,15 +7374,15 @@ pub mod types { } } - impl From for NodeName { - fn from(value: String) -> Self { + impl From<::std::string::String> for NodeName { + fn from(value: ::std::string::String) -> Self { Self(value) } } - impl std::str::FromStr for NodeName { - type Err = std::convert::Infallible; - fn from_str(value: &str) -> Result { + impl ::std::str::FromStr for NodeName { + type Err = ::std::convert::Infallible; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.to_string())) } } @@ -7371,7 +7447,7 @@ pub mod types { )] pub struct Organization { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -7423,7 +7499,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct OrganizationCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -7475,10 +7551,10 @@ pub mod types { )] pub struct OrganizationResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&OrganizationResultsPage> for OrganizationResultsPage { @@ -7548,7 +7624,7 @@ pub mod types { impl std::str::FromStr for OrganizationRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -7560,21 +7636,25 @@ pub mod types { impl std::convert::TryFrom<&str> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for OrganizationRole { + impl std::convert::TryFrom<&::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for OrganizationRole { + impl std::convert::TryFrom<::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7615,7 +7695,7 @@ pub mod types { )] pub struct OrganizationRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&OrganizationRolePolicy> for OrganizationRolePolicy { @@ -7727,10 +7807,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct OrganizationUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&OrganizationUpdate> for OrganizationUpdate { @@ -7769,15 +7849,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct Password(String); + pub struct Password(::std::string::String); impl ::std::ops::Deref for Password { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Password) -> Self { value.0 } @@ -7791,7 +7871,7 @@ pub mod types { impl ::std::str::FromStr for Password { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 512usize { return Err("longer than 512 characters".into()); } @@ -7801,31 +7881,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Password { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Password { + impl ::std::convert::TryFrom<&::std::string::String> for Password { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Password { + impl ::std::convert::TryFrom<::std::string::String> for Password { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Password { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -7898,16 +7982,16 @@ pub mod types { pub disk_type: PhysicalDiskType, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub model: String, - pub serial: String, + pub model: ::std::string::String, + pub serial: ::std::string::String, ///The sled to which this disk is attached, if any. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub sled_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub sled_id: ::std::option::Option, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, - pub vendor: String, + pub vendor: ::std::string::String, } impl From<&PhysicalDisk> for PhysicalDisk { @@ -7958,10 +8042,10 @@ pub mod types { )] pub struct PhysicalDiskResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { @@ -8027,7 +8111,7 @@ pub mod types { impl std::str::FromStr for PhysicalDiskType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "internal" => Ok(Self::Internal), "external" => Ok(Self::External), @@ -8038,21 +8122,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for PhysicalDiskType { + impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for PhysicalDiskType { + impl std::convert::TryFrom<::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -8116,7 +8204,7 @@ pub mod types { )] pub struct Project { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -8169,7 +8257,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ProjectCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -8221,10 +8309,10 @@ pub mod types { )] pub struct ProjectResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ProjectResultsPage> for ProjectResultsPage { @@ -8294,7 +8382,7 @@ pub mod types { impl std::str::FromStr for ProjectRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -8306,21 +8394,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ProjectRole { + impl std::convert::TryFrom<&::std::string::String> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ProjectRole { + impl std::convert::TryFrom<::std::string::String> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -8361,7 +8453,7 @@ pub mod types { )] pub struct ProjectRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&ProjectRolePolicy> for ProjectRolePolicy { @@ -8473,10 +8565,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ProjectUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&ProjectUpdate> for ProjectUpdate { @@ -8585,10 +8677,10 @@ pub mod types { )] pub struct RackResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RackResultsPage> for RackResultsPage { @@ -8630,7 +8722,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Role { - pub description: String, + pub description: ::std::string::String, pub name: RoleName, } @@ -8672,15 +8764,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct RoleName(String); + pub struct RoleName(::std::string::String); impl ::std::ops::Deref for RoleName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: RoleName) -> Self { value.0 } @@ -8694,7 +8786,7 @@ pub mod types { impl ::std::str::FromStr for RoleName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -8711,31 +8803,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for RoleName { + impl ::std::convert::TryFrom<&::std::string::String> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for RoleName { + impl ::std::convert::TryFrom<::std::string::String> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for RoleName { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -8779,10 +8875,10 @@ pub mod types { )] pub struct RoleResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RoleResultsPage> for RoleResultsPage { @@ -9159,7 +9255,7 @@ pub mod types { )] pub struct RouterRoute { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, pub destination: RouteDestination, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, @@ -9223,7 +9319,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct RouterRouteCreateParams { - pub description: String, + pub description: ::std::string::String, pub destination: RouteDestination, pub name: Name, pub target: RouteTarget, @@ -9346,7 +9442,7 @@ pub mod types { impl std::str::FromStr for RouterRouteKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "default" => Ok(Self::Default), "vpc_subnet" => Ok(Self::VpcSubnet), @@ -9359,21 +9455,25 @@ pub mod types { impl std::convert::TryFrom<&str> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for RouterRouteKind { + impl std::convert::TryFrom<&::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for RouterRouteKind { + impl std::convert::TryFrom<::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9414,10 +9514,10 @@ pub mod types { )] pub struct RouterRouteResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RouterRouteResultsPage> for RouterRouteResultsPage { @@ -9479,11 +9579,11 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct RouterRouteUpdateParams { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, pub destination: RouteDestination, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, pub target: RouteTarget, } @@ -9645,13 +9745,13 @@ pub mod types { #[serde(rename = "action_failed")] ActionFailed { source_error: ::serde_json::Value }, #[serde(rename = "deserialize_failed")] - DeserializeFailed { message: String }, + DeserializeFailed { message: ::std::string::String }, #[serde(rename = "injected_error")] InjectedError, #[serde(rename = "serialize_failed")] - SerializeFailed { message: String }, + SerializeFailed { message: ::std::string::String }, #[serde(rename = "subsaga_create_failed")] - SubsagaCreateFailed { message: String }, + SubsagaCreateFailed { message: ::std::string::String }, } impl From<&SagaErrorInfo> for SagaErrorInfo { @@ -9696,10 +9796,10 @@ pub mod types { )] pub struct SagaResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SagaResultsPage> for SagaResultsPage { @@ -9889,25 +9989,25 @@ pub mod types { )] pub struct SamlIdentityProvider { ///service provider endpoint where the response will be sent - pub acs_url: String, + pub acs_url: ::std::string::String, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///idp's entity id - pub idp_entity_id: String, + pub idp_entity_id: ::std::string::String, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///optional request signing public certificate (base64 encoded der /// file) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub public_cert: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub public_cert: ::std::option::Option<::std::string::String>, ///service provider endpoint where the idp should send log out requests - pub slo_url: String, + pub slo_url: ::std::string::String, ///sp's client id - pub sp_client_id: String, + pub sp_client_id: ::std::string::String, ///customer's technical contact for saml configuration - pub technical_contact_email: String, + pub technical_contact_email: ::std::string::String, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -10016,27 +10116,27 @@ pub mod types { )] pub struct SamlIdentityProviderCreate { ///service provider endpoint where the response will be sent - pub acs_url: String, - pub description: String, + pub acs_url: ::std::string::String, + pub description: ::std::string::String, ///If set, SAML attributes with this name will be considered to denote /// a user's group membership, where the attribute value(s) should be a /// comma-separated list of group names. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub group_attribute_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub group_attribute_name: ::std::option::Option<::std::string::String>, ///idp's entity id - pub idp_entity_id: String, + pub idp_entity_id: ::std::string::String, ///the source of an identity provider metadata descriptor pub idp_metadata_source: IdpMetadataSource, pub name: Name, ///optional request signing key pair - #[serde(default, skip_serializing_if = "Option::is_none")] - pub signing_keypair: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub signing_keypair: ::std::option::Option, ///service provider endpoint where the idp should send log out requests - pub slo_url: String, + pub slo_url: ::std::string::String, ///sp's client id - pub sp_client_id: String, + pub sp_client_id: ::std::string::String, ///customer's technical contact for saml configuration - pub technical_contact_email: String, + pub technical_contact_email: ::std::string::String, } impl From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { @@ -10073,15 +10173,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct SemverVersion(String); + pub struct SemverVersion(::std::string::String); impl ::std::ops::Deref for SemverVersion { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: SemverVersion) -> Self { value.0 } @@ -10095,7 +10195,7 @@ pub mod types { impl ::std::str::FromStr for SemverVersion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new("^\\d+\\.\\d+\\.\\d+([\\-\\+].+)?$") .unwrap() .find(value) @@ -10109,31 +10209,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for SemverVersion { + impl ::std::convert::TryFrom<&::std::string::String> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for SemverVersion { + impl ::std::convert::TryFrom<::std::string::String> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for SemverVersion { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -10196,7 +10300,7 @@ pub mod types { impl std::str::FromStr for ServiceUsingCertificate { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "external_api" => Ok(Self::ExternalApi), _ => Err("invalid value".into()), @@ -10206,21 +10310,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ServiceUsingCertificate { + impl std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ServiceUsingCertificate { + impl std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10293,7 +10401,7 @@ pub mod types { )] pub struct Silo { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///A silo where discoverable is false can be retrieved only by its id - /// it will not be part of the "list all silos" output. pub discoverable: bool, @@ -10378,9 +10486,9 @@ pub mod types { ///Note that if configuring a SAML based identity provider, /// group_attribute_name must be set for users to be considered part of /// a group. See [`SamlIdentityProviderCreate`] for more information. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub admin_group_name: Option, - pub description: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub admin_group_name: ::std::option::Option<::std::string::String>, + pub description: ::std::string::String, pub discoverable: bool, pub identity_mode: SiloIdentityMode, pub name: Name, @@ -10474,7 +10582,7 @@ pub mod types { impl std::str::FromStr for SiloIdentityMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "saml_jit" => Ok(Self::SamlJit), "local_only" => Ok(Self::LocalOnly), @@ -10485,21 +10593,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SiloIdentityMode { + impl std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SiloIdentityMode { + impl std::convert::TryFrom<::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10540,10 +10652,10 @@ pub mod types { )] pub struct SiloResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SiloResultsPage> for SiloResultsPage { @@ -10613,7 +10725,7 @@ pub mod types { impl std::str::FromStr for SiloRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -10625,21 +10737,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SiloRole { + impl std::convert::TryFrom<&::std::string::String> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SiloRole { + impl std::convert::TryFrom<::std::string::String> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10680,7 +10796,7 @@ pub mod types { )] pub struct SiloRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&SiloRolePolicy> for SiloRolePolicy { @@ -10802,7 +10918,7 @@ pub mod types { pub baseboard: Baseboard, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub service_address: String, + pub service_address: ::std::string::String, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -10857,10 +10973,10 @@ pub mod types { )] pub struct SledResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SledResultsPage> for SledResultsPage { @@ -10947,7 +11063,7 @@ pub mod types { )] pub struct Snapshot { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, pub disk_id: uuid::Uuid, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, @@ -11012,7 +11128,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct SnapshotCreate { - pub description: String, + pub description: ::std::string::String, ///The name of the disk to be snapshotted pub disk: Name, pub name: Name, @@ -11066,10 +11182,10 @@ pub mod types { )] pub struct SnapshotResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SnapshotResultsPage> for SnapshotResultsPage { @@ -11143,7 +11259,7 @@ pub mod types { impl std::str::FromStr for SnapshotState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "creating" => Ok(Self::Creating), "ready" => Ok(Self::Ready), @@ -11156,21 +11272,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SnapshotState { + impl std::convert::TryFrom<&::std::string::String> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SnapshotState { + impl std::convert::TryFrom<::std::string::String> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11197,7 +11317,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct SpoofLoginBody { - pub username: String, + pub username: ::std::string::String, } impl From<&SpoofLoginBody> for SpoofLoginBody { @@ -11278,13 +11398,13 @@ pub mod types { )] pub struct SshKey { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` - pub public_key: String, + pub public_key: ::std::string::String, ///The user to whom this key belongs pub silo_user_id: uuid::Uuid, ///timestamp when this resource was created @@ -11340,10 +11460,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct SshKeyCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` - pub public_key: String, + pub public_key: ::std::string::String, } impl From<&SshKeyCreate> for SshKeyCreate { @@ -11394,10 +11514,10 @@ pub mod types { )] pub struct SshKeyResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SshKeyResultsPage> for SshKeyResultsPage { @@ -11467,7 +11587,7 @@ pub mod types { impl std::str::FromStr for SystemMetricName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "virtual_disk_space_provisioned" => Ok(Self::VirtualDiskSpaceProvisioned), "cpus_provisioned" => Ok(Self::CpusProvisioned), @@ -11479,21 +11599,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SystemMetricName { + impl std::convert::TryFrom<&::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SystemMetricName { + impl std::convert::TryFrom<::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11599,10 +11723,10 @@ pub mod types { )] pub struct SystemUpdateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { @@ -11725,15 +11849,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct TimeseriesName(String); + pub struct TimeseriesName(::std::string::String); impl ::std::ops::Deref for TimeseriesName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: TimeseriesName) -> Self { value.0 } @@ -11747,7 +11871,7 @@ pub mod types { impl ::std::str::FromStr for TimeseriesName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*):(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*)", ) @@ -11766,31 +11890,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for TimeseriesName { + impl ::std::convert::TryFrom<&::std::string::String> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for TimeseriesName { + impl ::std::convert::TryFrom<::std::string::String> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for TimeseriesName { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -11844,7 +11972,7 @@ pub mod types { pub struct TimeseriesSchema { pub created: chrono::DateTime, pub datum_type: DatumType, - pub field_schema: Vec, + pub field_schema: ::std::vec::Vec, pub timeseries_name: TimeseriesName, } @@ -11896,10 +12024,10 @@ pub mod types { )] pub struct TimeseriesSchemaResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { @@ -12020,10 +12148,10 @@ pub mod types { )] pub struct UpdateDeploymentResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { @@ -12115,7 +12243,7 @@ pub mod types { impl std::str::FromStr for UpdateStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "updating" => Ok(Self::Updating), "steady" => Ok(Self::Steady), @@ -12126,21 +12254,25 @@ pub mod types { impl std::convert::TryFrom<&str> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for UpdateStatus { + impl std::convert::TryFrom<&::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for UpdateStatus { + impl std::convert::TryFrom<::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12206,7 +12338,7 @@ pub mod types { )] pub struct UpdateableComponent { pub component_type: UpdateableComponentType, - pub device_id: String, + pub device_id: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub status: UpdateStatus, @@ -12266,10 +12398,10 @@ pub mod types { )] pub struct UpdateableComponentResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { @@ -12375,7 +12507,7 @@ pub mod types { impl std::str::FromStr for UpdateableComponentType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "bootloader_for_rot" => Ok(Self::BootloaderForRot), "bootloader_for_sp" => Ok(Self::BootloaderForSp), @@ -12396,21 +12528,25 @@ pub mod types { impl std::convert::TryFrom<&str> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for UpdateableComponentType { + impl std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for UpdateableComponentType { + impl std::convert::TryFrom<::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12451,7 +12587,7 @@ pub mod types { )] pub struct User { ///Human-readable name that can identify the user - pub display_name: String, + pub display_name: ::std::string::String, pub id: uuid::Uuid, ///Uuid of the silo to which this user belongs pub silo_id: uuid::Uuid, @@ -12523,7 +12659,7 @@ pub mod types { )] pub struct UserBuiltin { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -12582,10 +12718,10 @@ pub mod types { )] pub struct UserBuiltinResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { @@ -12688,15 +12824,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct UserId(String); + pub struct UserId(::std::string::String); impl ::std::ops::Deref for UserId { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: UserId) -> Self { value.0 } @@ -12710,7 +12846,7 @@ pub mod types { impl ::std::str::FromStr for UserId { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -12721,31 +12857,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for UserId { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for UserId { + impl ::std::convert::TryFrom<&::std::string::String> for UserId { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for UserId { + impl ::std::convert::TryFrom<::std::string::String> for UserId { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for UserId { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -12860,10 +13000,10 @@ pub mod types { )] pub struct UserResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UserResultsPage> for UserResultsPage { @@ -13049,7 +13189,7 @@ pub mod types { )] pub struct Vpc { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///The name used for the VPC in DNS. pub dns_name: Name, ///unique, immutable, system-controlled identifier for each resource @@ -13130,7 +13270,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcCreate { - pub description: String, + pub description: ::std::string::String, pub dns_name: Name, ///The IPv6 prefix for this VPC. /// @@ -13138,8 +13278,8 @@ pub mod types { /// range, which sould be a Unique Local Address in the range /// `fd00::/48`. The default VPC Subnet will have the first `/64` range /// from this prefix. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ipv6_prefix: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ipv6_prefix: ::std::option::Option, pub name: Name, } @@ -13271,7 +13411,7 @@ pub mod types { ///whether traffic matching the rule should be allowed or dropped pub action: VpcFirewallRuleAction, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///whether this rule is for incoming or outgoing traffic pub direction: VpcFirewallRuleDirection, ///reductions on the scope of the rule @@ -13285,7 +13425,7 @@ pub mod types { ///whether this rule is in effect pub status: VpcFirewallRuleStatus, ///list of sets of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -13357,7 +13497,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "allow" => Ok(Self::Allow), "deny" => Ok(Self::Deny), @@ -13368,21 +13508,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleAction { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleAction { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13438,7 +13582,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleDirection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "inbound" => Ok(Self::Inbound), "outbound" => Ok(Self::Outbound), @@ -13449,21 +13593,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleDirection { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleDirection { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13524,14 +13672,14 @@ pub mod types { pub struct VpcFirewallRuleFilter { ///If present, the sources (if incoming) or destinations (if outgoing) /// this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub hosts: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hosts: ::std::option::Option<::std::vec::Vec>, ///If present, the destination ports this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ports: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ports: ::std::option::Option<::std::vec::Vec>, ///If present, the networking protocols this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub protocols: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub protocols: ::std::option::Option<::std::vec::Vec>, } impl From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { @@ -13758,7 +13906,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleProtocol { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "TCP" => Ok(Self::Tcp), "UDP" => Ok(Self::Udp), @@ -13770,21 +13918,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleProtocol { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleProtocol { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13840,7 +13992,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "disabled" => Ok(Self::Disabled), "enabled" => Ok(Self::Enabled), @@ -13851,21 +14003,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleStatus { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleStatus { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14111,7 +14267,7 @@ pub mod types { ///whether traffic matching the rule should be allowed or dropped pub action: VpcFirewallRuleAction, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///whether this rule is for incoming or outgoing traffic pub direction: VpcFirewallRuleDirection, ///reductions on the scope of the rule @@ -14123,7 +14279,7 @@ pub mod types { ///whether this rule is in effect pub status: VpcFirewallRuleStatus, ///list of sets of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { @@ -14168,7 +14324,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcFirewallRuleUpdateParams { - pub rules: Vec, + pub rules: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { @@ -14209,7 +14365,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcFirewallRules { - pub rules: Vec, + pub rules: ::std::vec::Vec, } impl From<&VpcFirewallRules> for VpcFirewallRules { @@ -14260,10 +14416,10 @@ pub mod types { )] pub struct VpcResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcResultsPage> for VpcResultsPage { @@ -14344,7 +14500,7 @@ pub mod types { )] pub struct VpcRouter { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub kind: VpcRouterKind, @@ -14399,7 +14555,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcRouterCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -14466,7 +14622,7 @@ pub mod types { impl std::str::FromStr for VpcRouterKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "system" => Ok(Self::System), "custom" => Ok(Self::Custom), @@ -14477,21 +14633,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcRouterKind { + impl std::convert::TryFrom<&::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcRouterKind { + impl std::convert::TryFrom<::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14532,10 +14692,10 @@ pub mod types { )] pub struct VpcRouterResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcRouterResultsPage> for VpcRouterResultsPage { @@ -14589,10 +14749,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcRouterUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcRouterUpdate> for VpcRouterUpdate { @@ -14689,7 +14849,7 @@ pub mod types { )] pub struct VpcSubnet { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///The IPv4 subnet CIDR block. @@ -14777,7 +14937,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcSubnetCreate { - pub description: String, + pub description: ::std::string::String, ///The IPv4 address range for this subnet. /// ///It must be allocated from an RFC 1918 private address range, and @@ -14789,8 +14949,8 @@ pub mod types { /// with the prefix equal to the parent VPC's prefix. A random `/64` /// block will be assigned if one is not provided. It must not overlap /// with any existing subnet in the VPC. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ipv6_block: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ipv6_block: ::std::option::Option, pub name: Name, } @@ -14842,10 +15002,10 @@ pub mod types { )] pub struct VpcSubnetResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { @@ -14899,10 +15059,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcSubnetUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcSubnetUpdate> for VpcSubnetUpdate { @@ -14969,12 +15129,12 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct VpcUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub dns_name: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub dns_name: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcUpdate> for VpcUpdate { @@ -14993,9 +15153,9 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct Baseboard { - part: Result, - revision: Result, - serial: Result, + part: ::std::result::Result<::std::string::String, ::std::string::String>, + revision: ::std::result::Result, + serial: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Baseboard { @@ -15011,7 +15171,7 @@ pub mod types { impl Baseboard { pub fn part(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.part = value @@ -15031,7 +15191,7 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.serial = value @@ -15041,9 +15201,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Baseboard { + impl ::std::convert::TryFrom for super::Baseboard { type Error = super::error::ConversionError; - fn try_from(value: Baseboard) -> Result { + fn try_from( + value: Baseboard, + ) -> ::std::result::Result { Ok(Self { part: value.part?, revision: value.revision?, @@ -15064,8 +15226,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Bindouble { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Bindouble { @@ -15100,9 +15262,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Bindouble { + impl ::std::convert::TryFrom for super::Bindouble { type Error = super::error::ConversionError; - fn try_from(value: Bindouble) -> Result { + fn try_from( + value: Bindouble, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -15121,8 +15285,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binint64 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binint64 { @@ -15157,9 +15321,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binint64 { + impl ::std::convert::TryFrom for super::Binint64 { type Error = super::error::ConversionError; - fn try_from(value: Binint64) -> Result { + fn try_from( + value: Binint64, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -15178,12 +15344,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Certificate { - description: Result, - id: Result, - name: Result, - service: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + service: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Certificate { @@ -15202,7 +15370,7 @@ pub mod types { impl Certificate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -15262,9 +15430,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Certificate { + impl ::std::convert::TryFrom for super::Certificate { type Error = super::error::ConversionError; - fn try_from(value: Certificate) -> Result { + fn try_from( + value: Certificate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -15291,11 +15461,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct CertificateCreate { - cert: Result, String>, - description: Result, - key: Result, String>, - name: Result, - service: Result, + cert: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + key: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + name: ::std::result::Result, + service: ::std::result::Result, } impl Default for CertificateCreate { @@ -15313,7 +15483,7 @@ pub mod types { impl CertificateCreate { pub fn cert(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.cert = value @@ -15323,7 +15493,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -15333,7 +15503,7 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.key = value @@ -15363,9 +15533,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CertificateCreate { + impl ::std::convert::TryFrom for super::CertificateCreate { type Error = super::error::ConversionError; - fn try_from(value: CertificateCreate) -> Result { + fn try_from( + value: CertificateCreate, + ) -> ::std::result::Result { Ok(Self { cert: value.cert?, description: value.description?, @@ -15390,8 +15562,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct CertificateResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for CertificateResultsPage { @@ -15406,7 +15582,7 @@ pub mod types { impl CertificateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -15416,7 +15592,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -15426,11 +15602,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CertificateResultsPage { + impl ::std::convert::TryFrom for super::CertificateResultsPage { type Error = super::error::ConversionError; fn try_from( value: CertificateResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -15449,11 +15625,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct ComponentUpdate { - component_type: Result, - id: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + component_type: + ::std::result::Result, + id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for ComponentUpdate { @@ -15521,9 +15700,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ComponentUpdate { + impl ::std::convert::TryFrom for super::ComponentUpdate { type Error = super::error::ConversionError; - fn try_from(value: ComponentUpdate) -> Result { + fn try_from( + value: ComponentUpdate, + ) -> ::std::result::Result { Ok(Self { component_type: value.component_type?, id: value.id?, @@ -15548,8 +15729,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct ComponentUpdateResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ComponentUpdateResultsPage { @@ -15564,7 +15751,7 @@ pub mod types { impl ComponentUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -15574,7 +15761,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -15584,11 +15771,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ComponentUpdateResultsPage { + impl ::std::convert::TryFrom for super::ComponentUpdateResultsPage { type Error = super::error::ConversionError; fn try_from( value: ComponentUpdateResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -15607,8 +15794,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativedouble { - start_time: Result, String>, - value: Result, + start_time: + ::std::result::Result, ::std::string::String>, + value: ::std::result::Result, } impl Default for Cumulativedouble { @@ -15643,9 +15831,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Cumulativedouble { + impl ::std::convert::TryFrom for super::Cumulativedouble { type Error = super::error::ConversionError; - fn try_from(value: Cumulativedouble) -> Result { + fn try_from( + value: Cumulativedouble, + ) -> ::std::result::Result { Ok(Self { start_time: value.start_time?, value: value.value?, @@ -15664,8 +15854,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativeint64 { - start_time: Result, String>, - value: Result, + start_time: + ::std::result::Result, ::std::string::String>, + value: ::std::result::Result, } impl Default for Cumulativeint64 { @@ -15700,9 +15891,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Cumulativeint64 { + impl ::std::convert::TryFrom for super::Cumulativeint64 { type Error = super::error::ConversionError; - fn try_from(value: Cumulativeint64) -> Result { + fn try_from( + value: Cumulativeint64, + ) -> ::std::result::Result { Ok(Self { start_time: value.start_time?, value: value.value?, @@ -15721,8 +15914,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct DerEncodedKeyPair { - private_key: Result, - public_cert: Result, + private_key: ::std::result::Result<::std::string::String, ::std::string::String>, + public_cert: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for DerEncodedKeyPair { @@ -15737,7 +15930,7 @@ pub mod types { impl DerEncodedKeyPair { pub fn private_key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.private_key = value @@ -15747,7 +15940,7 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.public_cert = value @@ -15757,9 +15950,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DerEncodedKeyPair { + impl ::std::convert::TryFrom for super::DerEncodedKeyPair { type Error = super::error::ConversionError; - fn try_from(value: DerEncodedKeyPair) -> Result { + fn try_from( + value: DerEncodedKeyPair, + ) -> ::std::result::Result { Ok(Self { private_key: value.private_key?, public_cert: value.public_cert?, @@ -15778,9 +15973,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAccessTokenRequest { - client_id: Result, - device_code: Result, - grant_type: Result, + client_id: ::std::result::Result, + device_code: ::std::result::Result<::std::string::String, ::std::string::String>, + grant_type: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for DeviceAccessTokenRequest { @@ -15806,7 +16001,7 @@ pub mod types { } pub fn device_code(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device_code = value @@ -15816,7 +16011,7 @@ pub mod types { } pub fn grant_type(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.grant_type = value @@ -15826,11 +16021,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DeviceAccessTokenRequest { + impl ::std::convert::TryFrom for super::DeviceAccessTokenRequest { type Error = super::error::ConversionError; fn try_from( value: DeviceAccessTokenRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { client_id: value.client_id?, device_code: value.device_code?, @@ -15851,7 +16046,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthRequest { - client_id: Result, + client_id: ::std::result::Result, } impl Default for DeviceAuthRequest { @@ -15875,9 +16070,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DeviceAuthRequest { + impl ::std::convert::TryFrom for super::DeviceAuthRequest { type Error = super::error::ConversionError; - fn try_from(value: DeviceAuthRequest) -> Result { + fn try_from( + value: DeviceAuthRequest, + ) -> ::std::result::Result { Ok(Self { client_id: value.client_id?, }) @@ -15894,7 +16091,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthVerify { - user_code: Result, + user_code: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for DeviceAuthVerify { @@ -15908,7 +16105,7 @@ pub mod types { impl DeviceAuthVerify { pub fn user_code(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.user_code = value @@ -15918,9 +16115,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DeviceAuthVerify { + impl ::std::convert::TryFrom for super::DeviceAuthVerify { type Error = super::error::ConversionError; - fn try_from(value: DeviceAuthVerify) -> Result { + fn try_from( + value: DeviceAuthVerify, + ) -> ::std::result::Result { Ok(Self { user_code: value.user_code?, }) @@ -15937,18 +16136,22 @@ pub mod types { #[derive(Clone, Debug)] pub struct Disk { - block_size: Result, - description: Result, - device_path: Result, - id: Result, - image_id: Result, String>, - name: Result, - project_id: Result, - size: Result, - snapshot_id: Result, String>, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + device_path: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + image_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, + project_id: ::std::result::Result, + size: ::std::result::Result, + snapshot_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Disk { @@ -15983,7 +16186,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -15993,7 +16196,7 @@ pub mod types { } pub fn device_path(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device_path = value @@ -16013,7 +16216,7 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.image_id = value @@ -16053,7 +16256,7 @@ pub mod types { } pub fn snapshot_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.snapshot_id = value @@ -16093,9 +16296,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Disk { + impl ::std::convert::TryFrom for super::Disk { type Error = super::error::ConversionError; - fn try_from(value: Disk) -> Result { + fn try_from(value: Disk) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -16134,10 +16337,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskCreate { - description: Result, - disk_source: Result, - name: Result, - size: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disk_source: ::std::result::Result, + name: ::std::result::Result, + size: ::std::result::Result, } impl Default for DiskCreate { @@ -16154,7 +16357,7 @@ pub mod types { impl DiskCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -16194,9 +16397,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskCreate { + impl ::std::convert::TryFrom for super::DiskCreate { type Error = super::error::ConversionError; - fn try_from(value: DiskCreate) -> Result { + fn try_from( + value: DiskCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disk_source: value.disk_source?, @@ -16219,7 +16424,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskIdentifier { - name: Result, + name: ::std::result::Result, } impl Default for DiskIdentifier { @@ -16243,9 +16448,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskIdentifier { + impl ::std::convert::TryFrom for super::DiskIdentifier { type Error = super::error::ConversionError; - fn try_from(value: DiskIdentifier) -> Result { + fn try_from( + value: DiskIdentifier, + ) -> ::std::result::Result { Ok(Self { name: value.name? }) } } @@ -16260,7 +16467,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskPath { - disk: Result, + disk: ::std::result::Result, } impl Default for DiskPath { @@ -16284,9 +16491,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskPath { + impl ::std::convert::TryFrom for super::DiskPath { type Error = super::error::ConversionError; - fn try_from(value: DiskPath) -> Result { + fn try_from( + value: DiskPath, + ) -> ::std::result::Result { Ok(Self { disk: value.disk? }) } } @@ -16301,8 +16510,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for DiskResultsPage { @@ -16317,7 +16529,7 @@ pub mod types { impl DiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -16327,7 +16539,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -16337,9 +16549,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskResultsPage { + impl ::std::convert::TryFrom for super::DiskResultsPage { type Error = super::error::ConversionError; - fn try_from(value: DiskResultsPage) -> Result { + fn try_from( + value: DiskResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -16358,8 +16572,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Distribution { - name: Result, - version: Result, + name: ::std::result::Result, + version: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Distribution { @@ -16384,7 +16598,7 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.version = value @@ -16394,9 +16608,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Distribution { + impl ::std::convert::TryFrom for super::Distribution { type Error = super::error::ConversionError; - fn try_from(value: Distribution) -> Result { + fn try_from( + value: Distribution, + ) -> ::std::result::Result { Ok(Self { name: value.name?, version: value.version?, @@ -16415,9 +16631,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct Error { - error_code: Result, String>, - message: Result, - request_id: Result, + error_code: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + message: ::std::result::Result<::std::string::String, ::std::string::String>, + request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Error { @@ -16433,7 +16652,7 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.error_code = value @@ -16443,7 +16662,7 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.message = value @@ -16453,7 +16672,7 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.request_id = value @@ -16463,9 +16682,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Error { + impl ::std::convert::TryFrom for super::Error { type Error = super::error::ConversionError; - fn try_from(value: Error) -> Result { + fn try_from( + value: Error, + ) -> ::std::result::Result { Ok(Self { error_code: value.error_code?, message: value.message?, @@ -16486,8 +16707,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct ExternalIp { - ip: Result, - kind: Result, + ip: ::std::result::Result, + kind: ::std::result::Result, } impl Default for ExternalIp { @@ -16522,9 +16743,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ExternalIp { + impl ::std::convert::TryFrom for super::ExternalIp { type Error = super::error::ConversionError; - fn try_from(value: ExternalIp) -> Result { + fn try_from( + value: ExternalIp, + ) -> ::std::result::Result { Ok(Self { ip: value.ip?, kind: value.kind?, @@ -16543,8 +16766,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ExternalIpResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ExternalIpResultsPage { @@ -16559,7 +16785,7 @@ pub mod types { impl ExternalIpResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -16569,7 +16795,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -16579,11 +16805,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ExternalIpResultsPage { + impl ::std::convert::TryFrom for super::ExternalIpResultsPage { type Error = super::error::ConversionError; fn try_from( value: ExternalIpResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -16602,9 +16828,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct FieldSchema { - name: Result, - source: Result, - ty: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + source: ::std::result::Result, + ty: ::std::result::Result, } impl Default for FieldSchema { @@ -16620,7 +16846,7 @@ pub mod types { impl FieldSchema { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -16650,9 +16876,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FieldSchema { + impl ::std::convert::TryFrom for super::FieldSchema { type Error = super::error::ConversionError; - fn try_from(value: FieldSchema) -> Result { + fn try_from( + value: FieldSchema, + ) -> ::std::result::Result { Ok(Self { name: value.name?, source: value.source?, @@ -16673,7 +16901,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct FleetRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for FleetRolePolicy { @@ -16687,7 +16918,7 @@ pub mod types { impl FleetRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -16700,9 +16931,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FleetRolePolicy { + impl ::std::convert::TryFrom for super::FleetRolePolicy { type Error = super::error::ConversionError; - fn try_from(value: FleetRolePolicy) -> Result { + fn try_from( + value: FleetRolePolicy, + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -16719,9 +16952,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct FleetRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for FleetRoleRoleAssignment { @@ -16767,11 +17000,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FleetRoleRoleAssignment { + impl ::std::convert::TryFrom for super::FleetRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: FleetRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -16792,17 +17025,23 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalImage { - block_size: Result, - description: Result, - digest: Result, String>, - distribution: Result, - id: Result, - name: Result, - size: Result, - time_created: Result, String>, - time_modified: Result, String>, - url: Result, String>, - version: Result, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + digest: + ::std::result::Result<::std::option::Option, ::std::string::String>, + distribution: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + size: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + url: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + version: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for GlobalImage { @@ -16836,7 +17075,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -16846,7 +17085,7 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.digest = value @@ -16856,7 +17095,7 @@ pub mod types { } pub fn distribution(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.distribution = value.try_into().map_err(|e| { @@ -16916,7 +17155,7 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.url = value @@ -16926,7 +17165,7 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.version = value @@ -16936,9 +17175,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalImage { + impl ::std::convert::TryFrom for super::GlobalImage { type Error = super::error::ConversionError; - fn try_from(value: GlobalImage) -> Result { + fn try_from( + value: GlobalImage, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -16975,11 +17216,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalImageCreate { - block_size: Result, - description: Result, - distribution: Result, - name: Result, - source: Result, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + distribution: ::std::result::Result, + name: ::std::result::Result, + source: ::std::result::Result, } impl Default for GlobalImageCreate { @@ -17007,7 +17248,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17047,9 +17288,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalImageCreate { + impl ::std::convert::TryFrom for super::GlobalImageCreate { type Error = super::error::ConversionError; - fn try_from(value: GlobalImageCreate) -> Result { + fn try_from( + value: GlobalImageCreate, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -17074,8 +17317,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalImageResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for GlobalImageResultsPage { @@ -17090,7 +17337,7 @@ pub mod types { impl GlobalImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17100,7 +17347,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17110,11 +17357,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalImageResultsPage { + impl ::std::convert::TryFrom for super::GlobalImageResultsPage { type Error = super::error::ConversionError; fn try_from( value: GlobalImageResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17133,9 +17380,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Group { - display_name: Result, - id: Result, - silo_id: Result, + display_name: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + silo_id: ::std::result::Result, } impl Default for Group { @@ -17151,7 +17398,7 @@ pub mod types { impl Group { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { @@ -17181,9 +17428,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Group { + impl ::std::convert::TryFrom for super::Group { type Error = super::error::ConversionError; - fn try_from(value: Group) -> Result { + fn try_from( + value: Group, + ) -> ::std::result::Result { Ok(Self { display_name: value.display_name?, id: value.id?, @@ -17204,8 +17453,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct GroupResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for GroupResultsPage { @@ -17220,7 +17472,7 @@ pub mod types { impl GroupResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17230,7 +17482,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17240,9 +17492,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GroupResultsPage { + impl ::std::convert::TryFrom for super::GroupResultsPage { type Error = super::error::ConversionError; - fn try_from(value: GroupResultsPage) -> Result { + fn try_from( + value: GroupResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17261,9 +17515,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramdouble { - bins: Result, String>, - n_samples: Result, - start_time: Result, String>, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + n_samples: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, } impl Default for Histogramdouble { @@ -17279,7 +17534,7 @@ pub mod types { impl Histogramdouble { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.bins = value @@ -17309,9 +17564,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramdouble { + impl ::std::convert::TryFrom for super::Histogramdouble { type Error = super::error::ConversionError; - fn try_from(value: Histogramdouble) -> Result { + fn try_from( + value: Histogramdouble, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, n_samples: value.n_samples?, @@ -17332,9 +17589,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramint64 { - bins: Result, String>, - n_samples: Result, - start_time: Result, String>, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + n_samples: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, } impl Default for Histogramint64 { @@ -17350,7 +17608,7 @@ pub mod types { impl Histogramint64 { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.bins = value @@ -17380,9 +17638,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramint64 { + impl ::std::convert::TryFrom for super::Histogramint64 { type Error = super::error::ConversionError; - fn try_from(value: Histogramint64) -> Result { + fn try_from( + value: Histogramint64, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, n_samples: value.n_samples?, @@ -17403,12 +17663,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct IdentityProvider { - description: Result, - id: Result, - name: Result, - provider_type: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + provider_type: + ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for IdentityProvider { @@ -17427,7 +17690,7 @@ pub mod types { impl IdentityProvider { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17487,9 +17750,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IdentityProvider { + impl ::std::convert::TryFrom for super::IdentityProvider { type Error = super::error::ConversionError; - fn try_from(value: IdentityProvider) -> Result { + fn try_from( + value: IdentityProvider, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -17516,8 +17781,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct IdentityProviderResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for IdentityProviderResultsPage { @@ -17532,7 +17803,7 @@ pub mod types { impl IdentityProviderResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17542,7 +17813,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17552,11 +17823,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IdentityProviderResultsPage { + impl ::std::convert::TryFrom for super::IdentityProviderResultsPage { type Error = super::error::ConversionError; fn try_from( value: IdentityProviderResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17575,17 +17846,26 @@ pub mod types { #[derive(Clone, Debug)] pub struct Image { - block_size: Result, - description: Result, - digest: Result, String>, - id: Result, - name: Result, - project_id: Result, - size: Result, - time_created: Result, String>, - time_modified: Result, String>, - url: Result, String>, - version: Result, String>, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + digest: + ::std::result::Result<::std::option::Option, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + size: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + url: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + version: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for Image { @@ -17619,7 +17899,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17629,7 +17909,7 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.digest = value @@ -17699,7 +17979,7 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.url = value @@ -17709,7 +17989,7 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.version = value @@ -17719,9 +17999,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Image { + impl ::std::convert::TryFrom for super::Image { type Error = super::error::ConversionError; - fn try_from(value: Image) -> Result { + fn try_from( + value: Image, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -17758,10 +18040,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ImageCreate { - block_size: Result, - description: Result, - name: Result, - source: Result, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + source: ::std::result::Result, } impl Default for ImageCreate { @@ -17788,7 +18070,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17818,9 +18100,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ImageCreate { + impl ::std::convert::TryFrom for super::ImageCreate { type Error = super::error::ConversionError; - fn try_from(value: ImageCreate) -> Result { + fn try_from( + value: ImageCreate, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -17843,8 +18127,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ImageResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ImageResultsPage { @@ -17859,7 +18146,7 @@ pub mod types { impl ImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17869,7 +18156,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17879,9 +18166,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ImageResultsPage { + impl ::std::convert::TryFrom for super::ImageResultsPage { type Error = super::error::ConversionError; - fn try_from(value: ImageResultsPage) -> Result { + fn try_from( + value: ImageResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17900,17 +18189,20 @@ pub mod types { #[derive(Clone, Debug)] pub struct Instance { - description: Result, - hostname: Result, - id: Result, - memory: Result, - name: Result, - ncpus: Result, - project_id: Result, - run_state: Result, - time_created: Result, String>, - time_modified: Result, String>, - time_run_state_updated: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + hostname: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + memory: ::std::result::Result, + name: ::std::result::Result, + ncpus: ::std::result::Result, + project_id: ::std::result::Result, + run_state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + time_run_state_updated: + ::std::result::Result, ::std::string::String>, } impl Default for Instance { @@ -17936,7 +18228,7 @@ pub mod types { impl Instance { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17946,7 +18238,7 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.hostname = value @@ -18049,9 +18341,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Instance { + impl ::std::convert::TryFrom for super::Instance { type Error = super::error::ConversionError; - fn try_from(value: Instance) -> Result { + fn try_from( + value: Instance, + ) -> ::std::result::Result { Ok(Self { description: value.description?, hostname: value.hostname?, @@ -18088,16 +18382,25 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceCreate { - description: Result, - disks: Result, String>, - external_ips: Result, String>, - hostname: Result, - memory: Result, - name: Result, - ncpus: Result, - network_interfaces: Result, - start: Result, - user_data: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disks: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + external_ips: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + hostname: ::std::result::Result<::std::string::String, ::std::string::String>, + memory: ::std::result::Result, + name: ::std::result::Result, + ncpus: ::std::result::Result, + network_interfaces: ::std::result::Result< + super::InstanceNetworkInterfaceAttachment, + ::std::string::String, + >, + start: ::std::result::Result, + user_data: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for InstanceCreate { @@ -18120,7 +18423,7 @@ pub mod types { impl InstanceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18130,7 +18433,7 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.disks = value @@ -18140,7 +18443,7 @@ pub mod types { } pub fn external_ips(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.external_ips = value.try_into().map_err(|e| { @@ -18150,7 +18453,7 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.hostname = value @@ -18213,7 +18516,7 @@ pub mod types { } pub fn user_data(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.user_data = value @@ -18223,9 +18526,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceCreate { + impl ::std::convert::TryFrom for super::InstanceCreate { type Error = super::error::ConversionError; - fn try_from(value: InstanceCreate) -> Result { + fn try_from( + value: InstanceCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disks: value.disks?, @@ -18260,7 +18565,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrate { - dst_sled_id: Result, + dst_sled_id: ::std::result::Result, } impl Default for InstanceMigrate { @@ -18284,9 +18589,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceMigrate { + impl ::std::convert::TryFrom for super::InstanceMigrate { type Error = super::error::ConversionError; - fn try_from(value: InstanceMigrate) -> Result { + fn try_from( + value: InstanceMigrate, + ) -> ::std::result::Result { Ok(Self { dst_sled_id: value.dst_sled_id?, }) @@ -18303,8 +18610,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for InstanceResultsPage { @@ -18319,7 +18629,7 @@ pub mod types { impl InstanceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18329,7 +18639,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18339,9 +18649,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceResultsPage { + impl ::std::convert::TryFrom for super::InstanceResultsPage { type Error = super::error::ConversionError; - fn try_from(value: InstanceResultsPage) -> Result { + fn try_from( + value: InstanceResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18360,8 +18672,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceSerialConsoleData { - data: Result, String>, - last_byte_offset: Result, + data: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + last_byte_offset: ::std::result::Result, } impl Default for InstanceSerialConsoleData { @@ -18376,7 +18688,7 @@ pub mod types { impl InstanceSerialConsoleData { pub fn data(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.data = value @@ -18399,11 +18711,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceSerialConsoleData { + impl ::std::convert::TryFrom for super::InstanceSerialConsoleData { type Error = super::error::ConversionError; fn try_from( value: InstanceSerialConsoleData, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { data: value.data?, last_byte_offset: value.last_byte_offset?, @@ -18422,11 +18734,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPool { - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for IpPool { @@ -18444,7 +18758,7 @@ pub mod types { impl IpPool { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18494,9 +18808,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPool { + impl ::std::convert::TryFrom for super::IpPool { type Error = super::error::ConversionError; - fn try_from(value: IpPool) -> Result { + fn try_from( + value: IpPool, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -18521,8 +18837,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for IpPoolCreate { @@ -18537,7 +18853,7 @@ pub mod types { impl IpPoolCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18557,9 +18873,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolCreate { + impl ::std::convert::TryFrom for super::IpPoolCreate { type Error = super::error::ConversionError; - fn try_from(value: IpPoolCreate) -> Result { + fn try_from( + value: IpPoolCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -18578,9 +18896,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRange { - id: Result, - range: Result, - time_created: Result, String>, + id: ::std::result::Result, + range: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, } impl Default for IpPoolRange { @@ -18626,9 +18945,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolRange { + impl ::std::convert::TryFrom for super::IpPoolRange { type Error = super::error::ConversionError; - fn try_from(value: IpPoolRange) -> Result { + fn try_from( + value: IpPoolRange, + ) -> ::std::result::Result { Ok(Self { id: value.id?, range: value.range?, @@ -18649,8 +18970,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRangeResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for IpPoolRangeResultsPage { @@ -18665,7 +18990,7 @@ pub mod types { impl IpPoolRangeResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18675,7 +19000,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18685,11 +19010,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolRangeResultsPage { + impl ::std::convert::TryFrom for super::IpPoolRangeResultsPage { type Error = super::error::ConversionError; fn try_from( value: IpPoolRangeResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18708,8 +19033,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for IpPoolResultsPage { @@ -18724,7 +19052,7 @@ pub mod types { impl IpPoolResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18734,7 +19062,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18744,9 +19072,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolResultsPage { + impl ::std::convert::TryFrom for super::IpPoolResultsPage { type Error = super::error::ConversionError; - fn try_from(value: IpPoolResultsPage) -> Result { + fn try_from( + value: IpPoolResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18765,8 +19095,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for IpPoolUpdate { @@ -18781,7 +19114,7 @@ pub mod types { impl IpPoolUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -18791,7 +19124,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -18801,9 +19134,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolUpdate { + impl ::std::convert::TryFrom for super::IpPoolUpdate { type Error = super::error::ConversionError; - fn try_from(value: IpPoolUpdate) -> Result { + fn try_from( + value: IpPoolUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -18822,8 +19157,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv4Range { - first: Result, - last: Result, + first: ::std::result::Result, + last: ::std::result::Result, } impl Default for Ipv4Range { @@ -18858,9 +19193,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ipv4Range { + impl ::std::convert::TryFrom for super::Ipv4Range { type Error = super::error::ConversionError; - fn try_from(value: Ipv4Range) -> Result { + fn try_from( + value: Ipv4Range, + ) -> ::std::result::Result { Ok(Self { first: value.first?, last: value.last?, @@ -18879,8 +19216,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv6Range { - first: Result, - last: Result, + first: ::std::result::Result, + last: ::std::result::Result, } impl Default for Ipv6Range { @@ -18915,9 +19252,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ipv6Range { + impl ::std::convert::TryFrom for super::Ipv6Range { type Error = super::error::ConversionError; - fn try_from(value: Ipv6Range) -> Result { + fn try_from( + value: Ipv6Range, + ) -> ::std::result::Result { Ok(Self { first: value.first?, last: value.last?, @@ -18936,8 +19275,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Measurement { - datum: Result, - timestamp: Result, String>, + datum: ::std::result::Result, + timestamp: + ::std::result::Result, ::std::string::String>, } impl Default for Measurement { @@ -18972,9 +19312,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Measurement { + impl ::std::convert::TryFrom for super::Measurement { type Error = super::error::ConversionError; - fn try_from(value: Measurement) -> Result { + fn try_from( + value: Measurement, + ) -> ::std::result::Result { Ok(Self { datum: value.datum?, timestamp: value.timestamp?, @@ -18993,8 +19335,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct MeasurementResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for MeasurementResultsPage { @@ -19009,7 +19355,7 @@ pub mod types { impl MeasurementResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -19019,7 +19365,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -19029,11 +19375,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::MeasurementResultsPage { + impl ::std::convert::TryFrom for super::MeasurementResultsPage { type Error = super::error::ConversionError; fn try_from( value: MeasurementResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -19052,17 +19398,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { - description: Result, - id: Result, - instance_id: Result, - ip: Result, - mac: Result, - name: Result, - primary: Result, - subnet_id: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + instance_id: ::std::result::Result, + ip: ::std::result::Result, + mac: ::std::result::Result, + name: ::std::result::Result, + primary: ::std::result::Result, + subnet_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for NetworkInterface { @@ -19086,7 +19434,7 @@ pub mod types { impl NetworkInterface { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19196,9 +19544,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterface { + impl ::std::convert::TryFrom for super::NetworkInterface { type Error = super::error::ConversionError; - fn try_from(value: NetworkInterface) -> Result { + fn try_from( + value: NetworkInterface, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -19235,11 +19585,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceCreate { - description: Result, - ip: Result, String>, - name: Result, - subnet_name: Result, - vpc_name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ip: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + name: ::std::result::Result, + subnet_name: ::std::result::Result, + vpc_name: ::std::result::Result, } impl Default for NetworkInterfaceCreate { @@ -19257,7 +19610,7 @@ pub mod types { impl NetworkInterfaceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19267,7 +19620,7 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ip = value @@ -19307,11 +19660,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceCreate { + impl ::std::convert::TryFrom for super::NetworkInterfaceCreate { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, ip: value.ip?, @@ -19336,8 +19689,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for NetworkInterfaceResultsPage { @@ -19352,7 +19711,7 @@ pub mod types { impl NetworkInterfaceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -19362,7 +19721,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -19372,11 +19731,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceResultsPage { + impl ::std::convert::TryFrom for super::NetworkInterfaceResultsPage { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -19395,9 +19754,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceUpdate { - description: Result, String>, - name: Result, String>, - primary: Result, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, + primary: ::std::result::Result, } impl Default for NetworkInterfaceUpdate { @@ -19413,7 +19775,7 @@ pub mod types { impl NetworkInterfaceUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -19423,7 +19785,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -19443,11 +19805,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceUpdate { + impl ::std::convert::TryFrom for super::NetworkInterfaceUpdate { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceUpdate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19468,11 +19830,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct Organization { - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Organization { @@ -19490,7 +19854,7 @@ pub mod types { impl Organization { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19540,9 +19904,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Organization { + impl ::std::convert::TryFrom for super::Organization { type Error = super::error::ConversionError; - fn try_from(value: Organization) -> Result { + fn try_from( + value: Organization, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -19567,8 +19933,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for OrganizationCreate { @@ -19583,7 +19949,7 @@ pub mod types { impl OrganizationCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19603,9 +19969,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationCreate { + impl ::std::convert::TryFrom for super::OrganizationCreate { type Error = super::error::ConversionError; - fn try_from(value: OrganizationCreate) -> Result { + fn try_from( + value: OrganizationCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19624,8 +19992,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for OrganizationResultsPage { @@ -19640,7 +20012,7 @@ pub mod types { impl OrganizationResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -19650,7 +20022,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -19660,11 +20032,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationResultsPage { + impl ::std::convert::TryFrom for super::OrganizationResultsPage { type Error = super::error::ConversionError; fn try_from( value: OrganizationResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -19683,7 +20055,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for OrganizationRolePolicy { @@ -19697,7 +20072,7 @@ pub mod types { impl OrganizationRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -19710,11 +20085,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationRolePolicy { + impl ::std::convert::TryFrom for super::OrganizationRolePolicy { type Error = super::error::ConversionError; fn try_from( value: OrganizationRolePolicy, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -19731,9 +20106,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for OrganizationRoleRoleAssignment { @@ -19779,13 +20154,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::OrganizationRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: OrganizationRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -19806,8 +20181,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for OrganizationUpdate { @@ -19822,7 +20200,7 @@ pub mod types { impl OrganizationUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -19832,7 +20210,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -19842,9 +20220,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationUpdate { + impl ::std::convert::TryFrom for super::OrganizationUpdate { type Error = super::error::ConversionError; - fn try_from(value: OrganizationUpdate) -> Result { + fn try_from( + value: OrganizationUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19863,14 +20243,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDisk { - disk_type: Result, - id: Result, - model: Result, - serial: Result, - sled_id: Result, String>, - time_created: Result, String>, - time_modified: Result, String>, - vendor: Result, + disk_type: ::std::result::Result, + id: ::std::result::Result, + model: ::std::result::Result<::std::string::String, ::std::string::String>, + serial: ::std::result::Result<::std::string::String, ::std::string::String>, + sled_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for PhysicalDisk { @@ -19911,7 +20294,7 @@ pub mod types { } pub fn model(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.model = value @@ -19921,7 +20304,7 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.serial = value @@ -19931,7 +20314,7 @@ pub mod types { } pub fn sled_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.sled_id = value @@ -19961,7 +20344,7 @@ pub mod types { } pub fn vendor(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.vendor = value @@ -19971,9 +20354,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::PhysicalDisk { + impl ::std::convert::TryFrom for super::PhysicalDisk { type Error = super::error::ConversionError; - fn try_from(value: PhysicalDisk) -> Result { + fn try_from( + value: PhysicalDisk, + ) -> ::std::result::Result { Ok(Self { disk_type: value.disk_type?, id: value.id?, @@ -20004,8 +20389,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDiskResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for PhysicalDiskResultsPage { @@ -20020,7 +20409,7 @@ pub mod types { impl PhysicalDiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20030,7 +20419,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20040,11 +20429,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::PhysicalDiskResultsPage { + impl ::std::convert::TryFrom for super::PhysicalDiskResultsPage { type Error = super::error::ConversionError; fn try_from( value: PhysicalDiskResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20063,12 +20452,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Project { - description: Result, - id: Result, - name: Result, - organization_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + organization_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Project { @@ -20087,7 +20478,7 @@ pub mod types { impl Project { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20147,9 +20538,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Project { + impl ::std::convert::TryFrom for super::Project { type Error = super::error::ConversionError; - fn try_from(value: Project) -> Result { + fn try_from( + value: Project, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -20176,8 +20569,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for ProjectCreate { @@ -20192,7 +20585,7 @@ pub mod types { impl ProjectCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20212,9 +20605,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectCreate { + impl ::std::convert::TryFrom for super::ProjectCreate { type Error = super::error::ConversionError; - fn try_from(value: ProjectCreate) -> Result { + fn try_from( + value: ProjectCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -20233,8 +20628,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ProjectResultsPage { @@ -20249,7 +20647,7 @@ pub mod types { impl ProjectResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20259,7 +20657,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20269,9 +20667,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectResultsPage { + impl ::std::convert::TryFrom for super::ProjectResultsPage { type Error = super::error::ConversionError; - fn try_from(value: ProjectResultsPage) -> Result { + fn try_from( + value: ProjectResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20290,7 +20690,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for ProjectRolePolicy { @@ -20304,7 +20707,7 @@ pub mod types { impl ProjectRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -20317,9 +20720,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectRolePolicy { + impl ::std::convert::TryFrom for super::ProjectRolePolicy { type Error = super::error::ConversionError; - fn try_from(value: ProjectRolePolicy) -> Result { + fn try_from( + value: ProjectRolePolicy, + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -20336,9 +20741,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for ProjectRoleRoleAssignment { @@ -20384,11 +20789,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectRoleRoleAssignment { + impl ::std::convert::TryFrom for super::ProjectRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: ProjectRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -20409,8 +20814,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for ProjectUpdate { @@ -20425,7 +20833,7 @@ pub mod types { impl ProjectUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -20435,7 +20843,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -20445,9 +20853,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectUpdate { + impl ::std::convert::TryFrom for super::ProjectUpdate { type Error = super::error::ConversionError; - fn try_from(value: ProjectUpdate) -> Result { + fn try_from( + value: ProjectUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -20466,9 +20876,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct Rack { - id: Result, - time_created: Result, String>, - time_modified: Result, String>, + id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Rack { @@ -20514,9 +20926,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Rack { + impl ::std::convert::TryFrom for super::Rack { type Error = super::error::ConversionError; - fn try_from(value: Rack) -> Result { + fn try_from(value: Rack) -> ::std::result::Result { Ok(Self { id: value.id?, time_created: value.time_created?, @@ -20537,8 +20949,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct RackResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for RackResultsPage { @@ -20553,7 +20968,7 @@ pub mod types { impl RackResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20563,7 +20978,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20573,9 +20988,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RackResultsPage { + impl ::std::convert::TryFrom for super::RackResultsPage { type Error = super::error::ConversionError; - fn try_from(value: RackResultsPage) -> Result { + fn try_from( + value: RackResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20594,8 +21011,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Role { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for Role { @@ -20610,7 +21027,7 @@ pub mod types { impl Role { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20630,9 +21047,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Role { + impl ::std::convert::TryFrom for super::Role { type Error = super::error::ConversionError; - fn try_from(value: Role) -> Result { + fn try_from(value: Role) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -20651,8 +21068,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct RoleResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for RoleResultsPage { @@ -20667,7 +21087,7 @@ pub mod types { impl RoleResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20677,7 +21097,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20687,9 +21107,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RoleResultsPage { + impl ::std::convert::TryFrom for super::RoleResultsPage { type Error = super::error::ConversionError; - fn try_from(value: RoleResultsPage) -> Result { + fn try_from( + value: RoleResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20708,15 +21130,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRoute { - description: Result, - destination: Result, - id: Result, - kind: Result, - name: Result, - target: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_router_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + destination: ::std::result::Result, + id: ::std::result::Result, + kind: ::std::result::Result, + name: ::std::result::Result, + target: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_router_id: ::std::result::Result, } impl Default for RouterRoute { @@ -20738,7 +21162,7 @@ pub mod types { impl RouterRoute { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20828,9 +21252,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRoute { + impl ::std::convert::TryFrom for super::RouterRoute { type Error = super::error::ConversionError; - fn try_from(value: RouterRoute) -> Result { + fn try_from( + value: RouterRoute, + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -20863,10 +21289,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteCreateParams { - description: Result, - destination: Result, - name: Result, - target: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + destination: ::std::result::Result, + name: ::std::result::Result, + target: ::std::result::Result, } impl Default for RouterRouteCreateParams { @@ -20883,7 +21309,7 @@ pub mod types { impl RouterRouteCreateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20923,11 +21349,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteCreateParams { + impl ::std::convert::TryFrom for super::RouterRouteCreateParams { type Error = super::error::ConversionError; fn try_from( value: RouterRouteCreateParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -20950,8 +21376,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for RouterRouteResultsPage { @@ -20966,7 +21396,7 @@ pub mod types { impl RouterRouteResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20976,7 +21406,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20986,11 +21416,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteResultsPage { + impl ::std::convert::TryFrom for super::RouterRouteResultsPage { type Error = super::error::ConversionError; fn try_from( value: RouterRouteResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -21009,10 +21439,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteUpdateParams { - description: Result, String>, - destination: Result, - name: Result, String>, - target: Result, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + destination: ::std::result::Result, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, + target: ::std::result::Result, } impl Default for RouterRouteUpdateParams { @@ -21029,7 +21462,7 @@ pub mod types { impl RouterRouteUpdateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -21049,7 +21482,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -21069,11 +21502,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteUpdateParams { + impl ::std::convert::TryFrom for super::RouterRouteUpdateParams { type Error = super::error::ConversionError; fn try_from( value: RouterRouteUpdateParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -21096,8 +21529,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Saga { - id: Result, - state: Result, + id: ::std::result::Result, + state: ::std::result::Result, } impl Default for Saga { @@ -21132,9 +21565,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Saga { + impl ::std::convert::TryFrom for super::Saga { type Error = super::error::ConversionError; - fn try_from(value: Saga) -> Result { + fn try_from(value: Saga) -> ::std::result::Result { Ok(Self { id: value.id?, state: value.state?, @@ -21153,8 +21586,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SagaResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SagaResultsPage { @@ -21169,7 +21605,7 @@ pub mod types { impl SagaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -21179,7 +21615,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -21189,9 +21625,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SagaResultsPage { + impl ::std::convert::TryFrom for super::SagaResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SagaResultsPage) -> Result { + fn try_from( + value: SagaResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -21210,17 +21648,23 @@ pub mod types { #[derive(Clone, Debug)] pub struct SamlIdentityProvider { - acs_url: Result, - description: Result, - id: Result, - idp_entity_id: Result, - name: Result, - public_cert: Result, String>, - slo_url: Result, - sp_client_id: Result, - technical_contact_email: Result, - time_created: Result, String>, - time_modified: Result, String>, + acs_url: ::std::result::Result<::std::string::String, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + idp_entity_id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + public_cert: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + slo_url: ::std::result::Result<::std::string::String, ::std::string::String>, + sp_client_id: ::std::result::Result<::std::string::String, ::std::string::String>, + technical_contact_email: + ::std::result::Result<::std::string::String, ::std::string::String>, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for SamlIdentityProvider { @@ -21246,7 +21690,7 @@ pub mod types { impl SamlIdentityProvider { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.acs_url = value @@ -21256,7 +21700,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21276,7 +21720,7 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { @@ -21296,7 +21740,7 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.public_cert = value @@ -21306,7 +21750,7 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.slo_url = value @@ -21316,7 +21760,7 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { @@ -21326,7 +21770,7 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { @@ -21359,11 +21803,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SamlIdentityProvider { + impl ::std::convert::TryFrom for super::SamlIdentityProvider { type Error = super::error::ConversionError; fn try_from( value: SamlIdentityProvider, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { acs_url: value.acs_url?, description: value.description?, @@ -21400,16 +21844,24 @@ pub mod types { #[derive(Clone, Debug)] pub struct SamlIdentityProviderCreate { - acs_url: Result, - description: Result, - group_attribute_name: Result, String>, - idp_entity_id: Result, - idp_metadata_source: Result, - name: Result, - signing_keypair: Result, String>, - slo_url: Result, - sp_client_id: Result, - technical_contact_email: Result, + acs_url: ::std::result::Result<::std::string::String, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + group_attribute_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + idp_entity_id: ::std::result::Result<::std::string::String, ::std::string::String>, + idp_metadata_source: + ::std::result::Result, + name: ::std::result::Result, + signing_keypair: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + slo_url: ::std::result::Result<::std::string::String, ::std::string::String>, + sp_client_id: ::std::result::Result<::std::string::String, ::std::string::String>, + technical_contact_email: + ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SamlIdentityProviderCreate { @@ -21436,7 +21888,7 @@ pub mod types { impl SamlIdentityProviderCreate { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.acs_url = value @@ -21446,7 +21898,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21456,7 +21908,7 @@ pub mod types { } pub fn group_attribute_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -21469,7 +21921,7 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { @@ -21502,7 +21954,7 @@ pub mod types { } pub fn signing_keypair(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.signing_keypair = value.try_into().map_err(|e| { @@ -21512,7 +21964,7 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.slo_url = value @@ -21522,7 +21974,7 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { @@ -21532,7 +21984,7 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { @@ -21545,11 +21997,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SamlIdentityProviderCreate { + impl ::std::convert::TryFrom for super::SamlIdentityProviderCreate { type Error = super::error::ConversionError; fn try_from( value: SamlIdentityProviderCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { acs_url: value.acs_url?, description: value.description?, @@ -21584,13 +22036,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct Silo { - description: Result, - discoverable: Result, - id: Result, - identity_mode: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + discoverable: ::std::result::Result, + id: ::std::result::Result, + identity_mode: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Silo { @@ -21610,7 +22064,7 @@ pub mod types { impl Silo { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21680,9 +22134,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Silo { + impl ::std::convert::TryFrom for super::Silo { type Error = super::error::ConversionError; - fn try_from(value: Silo) -> Result { + fn try_from(value: Silo) -> ::std::result::Result { Ok(Self { description: value.description?, discoverable: value.discoverable?, @@ -21711,11 +22165,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloCreate { - admin_group_name: Result, String>, - description: Result, - discoverable: Result, - identity_mode: Result, - name: Result, + admin_group_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + discoverable: ::std::result::Result, + identity_mode: ::std::result::Result, + name: ::std::result::Result, } impl Default for SiloCreate { @@ -21733,7 +22190,7 @@ pub mod types { impl SiloCreate { pub fn admin_group_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -21746,7 +22203,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21786,9 +22243,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloCreate { + impl ::std::convert::TryFrom for super::SiloCreate { type Error = super::error::ConversionError; - fn try_from(value: SiloCreate) -> Result { + fn try_from( + value: SiloCreate, + ) -> ::std::result::Result { Ok(Self { admin_group_name: value.admin_group_name?, description: value.description?, @@ -21813,8 +22272,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SiloResultsPage { @@ -21829,7 +22291,7 @@ pub mod types { impl SiloResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -21839,7 +22301,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -21849,9 +22311,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloResultsPage { + impl ::std::convert::TryFrom for super::SiloResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SiloResultsPage) -> Result { + fn try_from( + value: SiloResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -21870,7 +22334,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for SiloRolePolicy { @@ -21884,7 +22351,7 @@ pub mod types { impl SiloRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -21897,9 +22364,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloRolePolicy { + impl ::std::convert::TryFrom for super::SiloRolePolicy { type Error = super::error::ConversionError; - fn try_from(value: SiloRolePolicy) -> Result { + fn try_from( + value: SiloRolePolicy, + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -21916,9 +22385,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for SiloRoleRoleAssignment { @@ -21964,11 +22433,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloRoleRoleAssignment { + impl ::std::convert::TryFrom for super::SiloRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: SiloRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -21989,11 +22458,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct Sled { - baseboard: Result, - id: Result, - service_address: Result, - time_created: Result, String>, - time_modified: Result, String>, + baseboard: ::std::result::Result, + id: ::std::result::Result, + service_address: ::std::result::Result<::std::string::String, ::std::string::String>, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Sled { @@ -22031,7 +22502,7 @@ pub mod types { } pub fn service_address(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.service_address = value.try_into().map_err(|e| { @@ -22061,9 +22532,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Sled { + impl ::std::convert::TryFrom for super::Sled { type Error = super::error::ConversionError; - fn try_from(value: Sled) -> Result { + fn try_from(value: Sled) -> ::std::result::Result { Ok(Self { baseboard: value.baseboard?, id: value.id?, @@ -22088,8 +22559,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SledResultsPage { @@ -22104,7 +22578,7 @@ pub mod types { impl SledResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22114,7 +22588,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22124,9 +22598,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledResultsPage { + impl ::std::convert::TryFrom for super::SledResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SledResultsPage) -> Result { + fn try_from( + value: SledResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22145,15 +22621,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Snapshot { - description: Result, - disk_id: Result, - id: Result, - name: Result, - project_id: Result, - size: Result, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disk_id: ::std::result::Result, + id: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + size: ::std::result::Result, + state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Snapshot { @@ -22175,7 +22653,7 @@ pub mod types { impl Snapshot { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -22265,9 +22743,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Snapshot { + impl ::std::convert::TryFrom for super::Snapshot { type Error = super::error::ConversionError; - fn try_from(value: Snapshot) -> Result { + fn try_from( + value: Snapshot, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disk_id: value.disk_id?, @@ -22300,9 +22780,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SnapshotCreate { - description: Result, - disk: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disk: ::std::result::Result, + name: ::std::result::Result, } impl Default for SnapshotCreate { @@ -22318,7 +22798,7 @@ pub mod types { impl SnapshotCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -22348,9 +22828,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SnapshotCreate { + impl ::std::convert::TryFrom for super::SnapshotCreate { type Error = super::error::ConversionError; - fn try_from(value: SnapshotCreate) -> Result { + fn try_from( + value: SnapshotCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disk: value.disk?, @@ -22371,8 +22853,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SnapshotResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SnapshotResultsPage { @@ -22387,7 +22872,7 @@ pub mod types { impl SnapshotResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22397,7 +22882,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22407,9 +22892,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SnapshotResultsPage { + impl ::std::convert::TryFrom for super::SnapshotResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SnapshotResultsPage) -> Result { + fn try_from( + value: SnapshotResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22428,7 +22915,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SpoofLoginBody { - username: Result, + username: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SpoofLoginBody { @@ -22442,7 +22929,7 @@ pub mod types { impl SpoofLoginBody { pub fn username(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.username = value @@ -22452,9 +22939,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SpoofLoginBody { + impl ::std::convert::TryFrom for super::SpoofLoginBody { type Error = super::error::ConversionError; - fn try_from(value: SpoofLoginBody) -> Result { + fn try_from( + value: SpoofLoginBody, + ) -> ::std::result::Result { Ok(Self { username: value.username?, }) @@ -22471,13 +22960,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKey { - description: Result, - id: Result, - name: Result, - public_key: Result, - silo_user_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + public_key: ::std::result::Result<::std::string::String, ::std::string::String>, + silo_user_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for SshKey { @@ -22497,7 +22988,7 @@ pub mod types { impl SshKey { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -22527,7 +23018,7 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.public_key = value @@ -22567,9 +23058,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SshKey { + impl ::std::convert::TryFrom for super::SshKey { type Error = super::error::ConversionError; - fn try_from(value: SshKey) -> Result { + fn try_from( + value: SshKey, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -22598,9 +23091,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKeyCreate { - description: Result, - name: Result, - public_key: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + public_key: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SshKeyCreate { @@ -22616,7 +23109,7 @@ pub mod types { impl SshKeyCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -22636,7 +23129,7 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.public_key = value @@ -22646,9 +23139,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SshKeyCreate { + impl ::std::convert::TryFrom for super::SshKeyCreate { type Error = super::error::ConversionError; - fn try_from(value: SshKeyCreate) -> Result { + fn try_from( + value: SshKeyCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -22669,8 +23164,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKeyResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SshKeyResultsPage { @@ -22685,7 +23183,7 @@ pub mod types { impl SshKeyResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22695,7 +23193,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22705,9 +23203,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SshKeyResultsPage { + impl ::std::convert::TryFrom for super::SshKeyResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SshKeyResultsPage) -> Result { + fn try_from( + value: SshKeyResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22726,10 +23226,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdate { - id: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for SystemUpdate { @@ -22786,9 +23288,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemUpdate { + impl ::std::convert::TryFrom for super::SystemUpdate { type Error = super::error::ConversionError; - fn try_from(value: SystemUpdate) -> Result { + fn try_from( + value: SystemUpdate, + ) -> ::std::result::Result { Ok(Self { id: value.id?, time_created: value.time_created?, @@ -22811,8 +23315,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdateResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SystemUpdateResultsPage { @@ -22827,7 +23335,7 @@ pub mod types { impl SystemUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22837,7 +23345,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22847,11 +23355,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemUpdateResultsPage { + impl ::std::convert::TryFrom for super::SystemUpdateResultsPage { type Error = super::error::ConversionError; fn try_from( value: SystemUpdateResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22870,7 +23378,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdateStart { - version: Result, + version: ::std::result::Result, } impl Default for SystemUpdateStart { @@ -22894,9 +23402,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemUpdateStart { + impl ::std::convert::TryFrom for super::SystemUpdateStart { type Error = super::error::ConversionError; - fn try_from(value: SystemUpdateStart) -> Result { + fn try_from( + value: SystemUpdateStart, + ) -> ::std::result::Result { Ok(Self { version: value.version?, }) @@ -22913,8 +23423,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemVersion { - status: Result, - version_range: Result, + status: ::std::result::Result, + version_range: ::std::result::Result, } impl Default for SystemVersion { @@ -22949,9 +23459,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemVersion { + impl ::std::convert::TryFrom for super::SystemVersion { type Error = super::error::ConversionError; - fn try_from(value: SystemVersion) -> Result { + fn try_from( + value: SystemVersion, + ) -> ::std::result::Result { Ok(Self { status: value.status?, version_range: value.version_range?, @@ -22970,10 +23482,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchema { - created: Result, String>, - datum_type: Result, - field_schema: Result, String>, - timeseries_name: Result, + created: + ::std::result::Result, ::std::string::String>, + datum_type: ::std::result::Result, + field_schema: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + timeseries_name: ::std::result::Result, } impl Default for TimeseriesSchema { @@ -23010,7 +23524,7 @@ pub mod types { } pub fn field_schema(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.field_schema = value.try_into().map_err(|e| { @@ -23030,9 +23544,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TimeseriesSchema { + impl ::std::convert::TryFrom for super::TimeseriesSchema { type Error = super::error::ConversionError; - fn try_from(value: TimeseriesSchema) -> Result { + fn try_from( + value: TimeseriesSchema, + ) -> ::std::result::Result { Ok(Self { created: value.created?, datum_type: value.datum_type?, @@ -23055,8 +23571,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchemaResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for TimeseriesSchemaResultsPage { @@ -23071,7 +23593,7 @@ pub mod types { impl TimeseriesSchemaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23081,7 +23603,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23091,11 +23613,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TimeseriesSchemaResultsPage { + impl ::std::convert::TryFrom for super::TimeseriesSchemaResultsPage { type Error = super::error::ConversionError; fn try_from( value: TimeseriesSchemaResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23114,11 +23636,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateDeployment { - id: Result, - status: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + id: ::std::result::Result, + status: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for UpdateDeployment { @@ -23186,9 +23710,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UpdateDeployment { + impl ::std::convert::TryFrom for super::UpdateDeployment { type Error = super::error::ConversionError; - fn try_from(value: UpdateDeployment) -> Result { + fn try_from( + value: UpdateDeployment, + ) -> ::std::result::Result { Ok(Self { id: value.id?, status: value.status?, @@ -23213,8 +23739,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateDeploymentResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UpdateDeploymentResultsPage { @@ -23229,7 +23761,7 @@ pub mod types { impl UpdateDeploymentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23239,7 +23771,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23249,11 +23781,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UpdateDeploymentResultsPage { + impl ::std::convert::TryFrom for super::UpdateDeploymentResultsPage { type Error = super::error::ConversionError; fn try_from( value: UpdateDeploymentResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23272,14 +23804,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateableComponent { - component_type: Result, - device_id: Result, - id: Result, - status: Result, - system_version: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + component_type: + ::std::result::Result, + device_id: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + status: ::std::result::Result, + system_version: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for UpdateableComponent { @@ -23310,7 +23845,7 @@ pub mod types { } pub fn device_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device_id = value @@ -23380,9 +23915,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UpdateableComponent { + impl ::std::convert::TryFrom for super::UpdateableComponent { type Error = super::error::ConversionError; - fn try_from(value: UpdateableComponent) -> Result { + fn try_from( + value: UpdateableComponent, + ) -> ::std::result::Result { Ok(Self { component_type: value.component_type?, device_id: value.device_id?, @@ -23413,8 +23950,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateableComponentResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UpdateableComponentResultsPage { @@ -23429,7 +23972,7 @@ pub mod types { impl UpdateableComponentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23439,7 +23982,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23449,13 +23992,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::UpdateableComponentResultsPage { type Error = super::error::ConversionError; fn try_from( value: UpdateableComponentResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23474,9 +24017,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct User { - display_name: Result, - id: Result, - silo_id: Result, + display_name: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + silo_id: ::std::result::Result, } impl Default for User { @@ -23492,7 +24035,7 @@ pub mod types { impl User { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { @@ -23522,9 +24065,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::User { + impl ::std::convert::TryFrom for super::User { type Error = super::error::ConversionError; - fn try_from(value: User) -> Result { + fn try_from(value: User) -> ::std::result::Result { Ok(Self { display_name: value.display_name?, id: value.id?, @@ -23545,11 +24088,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserBuiltin { - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for UserBuiltin { @@ -23567,7 +24112,7 @@ pub mod types { impl UserBuiltin { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -23617,9 +24162,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserBuiltin { + impl ::std::convert::TryFrom for super::UserBuiltin { type Error = super::error::ConversionError; - fn try_from(value: UserBuiltin) -> Result { + fn try_from( + value: UserBuiltin, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -23644,8 +24191,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserBuiltinResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UserBuiltinResultsPage { @@ -23660,7 +24211,7 @@ pub mod types { impl UserBuiltinResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23670,7 +24221,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23680,11 +24231,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserBuiltinResultsPage { + impl ::std::convert::TryFrom for super::UserBuiltinResultsPage { type Error = super::error::ConversionError; fn try_from( value: UserBuiltinResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23703,8 +24254,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserCreate { - external_id: Result, - password: Result, + external_id: ::std::result::Result, + password: ::std::result::Result, } impl Default for UserCreate { @@ -23739,9 +24290,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserCreate { + impl ::std::convert::TryFrom for super::UserCreate { type Error = super::error::ConversionError; - fn try_from(value: UserCreate) -> Result { + fn try_from( + value: UserCreate, + ) -> ::std::result::Result { Ok(Self { external_id: value.external_id?, password: value.password?, @@ -23760,8 +24313,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UserResultsPage { @@ -23776,7 +24332,7 @@ pub mod types { impl UserResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23786,7 +24342,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23796,9 +24352,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserResultsPage { + impl ::std::convert::TryFrom for super::UserResultsPage { type Error = super::error::ConversionError; - fn try_from(value: UserResultsPage) -> Result { + fn try_from( + value: UserResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23817,8 +24375,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct UsernamePasswordCredentials { - password: Result, - username: Result, + password: ::std::result::Result, + username: ::std::result::Result, } impl Default for UsernamePasswordCredentials { @@ -23853,11 +24411,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UsernamePasswordCredentials { + impl ::std::convert::TryFrom for super::UsernamePasswordCredentials { type Error = super::error::ConversionError; fn try_from( value: UsernamePasswordCredentials, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { password: value.password?, username: value.username?, @@ -23876,8 +24434,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct VersionRange { - high: Result, - low: Result, + high: ::std::result::Result, + low: ::std::result::Result, } impl Default for VersionRange { @@ -23912,9 +24470,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VersionRange { + impl ::std::convert::TryFrom for super::VersionRange { type Error = super::error::ConversionError; - fn try_from(value: VersionRange) -> Result { + fn try_from( + value: VersionRange, + ) -> ::std::result::Result { Ok(Self { high: value.high?, low: value.low?, @@ -23933,15 +24493,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Vpc { - description: Result, - dns_name: Result, - id: Result, - ipv6_prefix: Result, - name: Result, - project_id: Result, - system_router_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + dns_name: ::std::result::Result, + id: ::std::result::Result, + ipv6_prefix: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + system_router_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Vpc { @@ -23963,7 +24525,7 @@ pub mod types { impl Vpc { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24056,9 +24618,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Vpc { + impl ::std::convert::TryFrom for super::Vpc { type Error = super::error::ConversionError; - fn try_from(value: Vpc) -> Result { + fn try_from(value: Vpc) -> ::std::result::Result { Ok(Self { description: value.description?, dns_name: value.dns_name?, @@ -24091,10 +24653,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcCreate { - description: Result, - dns_name: Result, - ipv6_prefix: Result, String>, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + dns_name: ::std::result::Result, + ipv6_prefix: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, } impl Default for VpcCreate { @@ -24111,7 +24674,7 @@ pub mod types { impl VpcCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24131,7 +24694,7 @@ pub mod types { } pub fn ipv6_prefix(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ipv6_prefix = value @@ -24151,9 +24714,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcCreate { + impl ::std::convert::TryFrom for super::VpcCreate { type Error = super::error::ConversionError; - fn try_from(value: VpcCreate) -> Result { + fn try_from( + value: VpcCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, dns_name: value.dns_name?, @@ -24176,18 +24741,24 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRule { - action: Result, - description: Result, - direction: Result, - filters: Result, - id: Result, - name: Result, - priority: Result, - status: Result, - targets: Result, String>, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + action: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + direction: + ::std::result::Result, + filters: ::std::result::Result, + id: ::std::result::Result, + name: ::std::result::Result, + priority: ::std::result::Result, + status: ::std::result::Result, + targets: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for VpcFirewallRule { @@ -24222,7 +24793,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24292,7 +24863,7 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.targets = value @@ -24332,9 +24903,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRule { + impl ::std::convert::TryFrom for super::VpcFirewallRule { type Error = super::error::ConversionError; - fn try_from(value: VpcFirewallRule) -> Result { + fn try_from( + value: VpcFirewallRule, + ) -> ::std::result::Result { Ok(Self { action: value.action?, description: value.description?, @@ -24373,9 +24946,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRuleFilter { - hosts: Result>, String>, - ports: Result>, String>, - protocols: Result>, String>, + hosts: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + ports: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + protocols: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, } impl Default for VpcFirewallRuleFilter { @@ -24391,7 +24973,9 @@ 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, { self.hosts = value @@ -24401,7 +24985,9 @@ 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, { self.ports = value @@ -24411,7 +24997,9 @@ 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, { self.protocols = value @@ -24421,11 +25009,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRuleFilter { + impl ::std::convert::TryFrom for super::VpcFirewallRuleFilter { type Error = super::error::ConversionError; fn try_from( value: VpcFirewallRuleFilter, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { hosts: value.hosts?, ports: value.ports?, @@ -24446,14 +25034,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRuleUpdate { - action: Result, - description: Result, - direction: Result, - filters: Result, - name: Result, - priority: Result, - status: Result, - targets: Result, String>, + action: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + direction: + ::std::result::Result, + filters: ::std::result::Result, + name: ::std::result::Result, + priority: ::std::result::Result, + status: ::std::result::Result, + targets: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for VpcFirewallRuleUpdate { @@ -24484,7 +25076,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24544,7 +25136,7 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.targets = value @@ -24554,11 +25146,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRuleUpdate { + impl ::std::convert::TryFrom for super::VpcFirewallRuleUpdate { type Error = super::error::ConversionError; fn try_from( value: VpcFirewallRuleUpdate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { action: value.action?, description: value.description?, @@ -24589,7 +25181,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRuleUpdateParams { - rules: Result, String>, + rules: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for VpcFirewallRuleUpdateParams { @@ -24603,7 +25198,7 @@ pub mod types { impl VpcFirewallRuleUpdateParams { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.rules = value @@ -24613,11 +25208,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRuleUpdateParams { + impl ::std::convert::TryFrom for super::VpcFirewallRuleUpdateParams { type Error = super::error::ConversionError; fn try_from( value: VpcFirewallRuleUpdateParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { rules: value.rules?, }) @@ -24634,7 +25229,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRules { - rules: Result, String>, + rules: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for VpcFirewallRules { @@ -24648,7 +25246,7 @@ pub mod types { impl VpcFirewallRules { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.rules = value @@ -24658,9 +25256,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRules { + impl ::std::convert::TryFrom for super::VpcFirewallRules { type Error = super::error::ConversionError; - fn try_from(value: VpcFirewallRules) -> Result { + fn try_from( + value: VpcFirewallRules, + ) -> ::std::result::Result { Ok(Self { rules: value.rules?, }) @@ -24677,8 +25277,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for VpcResultsPage { @@ -24693,7 +25296,7 @@ pub mod types { impl VpcResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -24703,7 +25306,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -24713,9 +25316,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcResultsPage { + impl ::std::convert::TryFrom for super::VpcResultsPage { type Error = super::error::ConversionError; - fn try_from(value: VpcResultsPage) -> Result { + fn try_from( + value: VpcResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -24734,13 +25339,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouter { - description: Result, - id: Result, - kind: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + kind: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for VpcRouter { @@ -24760,7 +25367,7 @@ pub mod types { impl VpcRouter { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24830,9 +25437,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouter { + impl ::std::convert::TryFrom for super::VpcRouter { type Error = super::error::ConversionError; - fn try_from(value: VpcRouter) -> Result { + fn try_from( + value: VpcRouter, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -24861,8 +25470,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouterCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for VpcRouterCreate { @@ -24877,7 +25486,7 @@ pub mod types { impl VpcRouterCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24897,9 +25506,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouterCreate { + impl ::std::convert::TryFrom for super::VpcRouterCreate { type Error = super::error::ConversionError; - fn try_from(value: VpcRouterCreate) -> Result { + fn try_from( + value: VpcRouterCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -24918,8 +25529,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouterResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for VpcRouterResultsPage { @@ -24934,7 +25548,7 @@ pub mod types { impl VpcRouterResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -24944,7 +25558,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -24954,11 +25568,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouterResultsPage { + impl ::std::convert::TryFrom for super::VpcRouterResultsPage { type Error = super::error::ConversionError; fn try_from( value: VpcRouterResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -24977,8 +25591,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouterUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for VpcRouterUpdate { @@ -24993,7 +25610,7 @@ pub mod types { impl VpcRouterUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -25003,7 +25620,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -25013,9 +25630,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouterUpdate { + impl ::std::convert::TryFrom for super::VpcRouterUpdate { type Error = super::error::ConversionError; - fn try_from(value: VpcRouterUpdate) -> Result { + fn try_from( + value: VpcRouterUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -25034,14 +25653,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnet { - description: Result, - id: Result, - ipv4_block: Result, - ipv6_block: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + ipv4_block: ::std::result::Result, + ipv6_block: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for VpcSubnet { @@ -25062,7 +25683,7 @@ pub mod types { impl VpcSubnet { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -25142,9 +25763,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnet { + impl ::std::convert::TryFrom for super::VpcSubnet { type Error = super::error::ConversionError; - fn try_from(value: VpcSubnet) -> Result { + fn try_from( + value: VpcSubnet, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -25175,10 +25798,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetCreate { - description: Result, - ipv4_block: Result, - ipv6_block: Result, String>, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ipv4_block: ::std::result::Result, + ipv6_block: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, } impl Default for VpcSubnetCreate { @@ -25195,7 +25819,7 @@ pub mod types { impl VpcSubnetCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -25215,7 +25839,7 @@ pub mod types { } pub fn ipv6_block(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ipv6_block = value @@ -25235,9 +25859,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnetCreate { + impl ::std::convert::TryFrom for super::VpcSubnetCreate { type Error = super::error::ConversionError; - fn try_from(value: VpcSubnetCreate) -> Result { + fn try_from( + value: VpcSubnetCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, ipv4_block: value.ipv4_block?, @@ -25260,8 +25886,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for VpcSubnetResultsPage { @@ -25276,7 +25905,7 @@ pub mod types { impl VpcSubnetResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -25286,7 +25915,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -25296,11 +25925,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnetResultsPage { + impl ::std::convert::TryFrom for super::VpcSubnetResultsPage { type Error = super::error::ConversionError; fn try_from( value: VpcSubnetResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -25319,8 +25948,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for VpcSubnetUpdate { @@ -25335,7 +25967,7 @@ pub mod types { impl VpcSubnetUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -25345,7 +25977,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -25355,9 +25987,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnetUpdate { + impl ::std::convert::TryFrom for super::VpcSubnetUpdate { type Error = super::error::ConversionError; - fn try_from(value: VpcSubnetUpdate) -> Result { + fn try_from( + value: VpcSubnetUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -25376,9 +26010,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcUpdate { - description: Result, String>, - dns_name: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + dns_name: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for VpcUpdate { @@ -25394,7 +26032,7 @@ pub mod types { impl VpcUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -25404,7 +26042,7 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.dns_name = value @@ -25414,7 +26052,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -25424,9 +26062,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcUpdate { + impl ::std::convert::TryFrom for super::VpcUpdate { type Error = super::error::ConversionError; - fn try_from(value: VpcUpdate) -> Result { + fn try_from( + value: VpcUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, dns_name: value.dns_name?, @@ -30026,7 +30666,7 @@ pub mod builder { pub struct GroupList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -30052,12 +30692,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -30537,7 +31176,7 @@ pub mod builder { pub struct OrganizationList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -30563,12 +31202,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -31136,7 +31774,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -31173,12 +31811,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -31660,7 +32297,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -31708,12 +32345,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -32142,7 +32778,7 @@ pub mod builder { metric_name: Result, end_time: Result>, String>, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, start_time: Result>, String>, } @@ -32224,12 +32860,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -32374,7 +33009,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -32422,12 +33057,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -32853,7 +33487,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -32901,12 +33535,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -33336,7 +33969,7 @@ pub mod builder { project_name: Result, instance_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -33395,12 +34028,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -33999,7 +34631,7 @@ pub mod builder { project_name: Result, instance_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -34058,12 +34690,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -35419,7 +36050,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -35467,12 +36098,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -35901,7 +36531,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -35949,12 +36579,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -36731,7 +37360,7 @@ pub mod builder { project_name: Result, vpc_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -36790,12 +37419,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -37411,7 +38039,7 @@ pub mod builder { vpc_name: Result, router_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -37481,12 +38109,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -38176,7 +38803,7 @@ pub mod builder { project_name: Result, vpc_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -38235,12 +38862,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -38856,7 +39482,7 @@ pub mod builder { vpc_name: Result, subnet_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -38926,12 +39552,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39182,7 +39807,7 @@ pub mod builder { pub struct RoleList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> RoleList<'a> { @@ -39206,12 +39831,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39310,7 +39934,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RoleView<'a> { client: &'a super::Client, - role_name: Result, + role_name: Result<::std::string::String, String>, } impl<'a> RoleView<'a> { @@ -39323,11 +39947,11 @@ pub mod builder { pub fn role_name(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.role_name = value - .try_into() - .map_err(|_| "conversion to `String` for role_name failed".to_string()); + self.role_name = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for role_name failed".to_string() + }); self } @@ -39412,7 +40036,7 @@ pub mod builder { pub struct SessionMeGroups<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -39438,12 +40062,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39560,7 +40183,7 @@ pub mod builder { pub struct SessionSshkeyList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -39586,12 +40209,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40083,7 +40705,7 @@ pub mod builder { pub struct CertificateList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40109,12 +40731,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40428,7 +41049,7 @@ pub mod builder { pub struct PhysicalDiskList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40454,12 +41075,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40576,7 +41196,7 @@ pub mod builder { pub struct RackList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40602,12 +41222,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40784,7 +41403,7 @@ pub mod builder { pub struct SledList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40810,12 +41429,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40993,7 +41611,7 @@ pub mod builder { client: &'a super::Client, sled_id: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -41030,12 +41648,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -41158,7 +41775,7 @@ pub mod builder { pub struct SystemImageList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -41184,12 +41801,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -41497,7 +42113,7 @@ pub mod builder { pub struct IpPoolList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -41523,12 +42139,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -41925,7 +42540,7 @@ pub mod builder { client: &'a super::Client, pool_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> IpPoolRangeList<'a> { @@ -41960,12 +42575,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42269,7 +42883,7 @@ pub mod builder { pub struct IpPoolServiceRangeList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> IpPoolServiceRangeList<'a> { @@ -42293,12 +42907,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42515,7 +43128,7 @@ pub mod builder { end_time: Result>, String>, id: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, start_time: Result>, String>, } @@ -42575,12 +43188,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42780,7 +43392,7 @@ pub mod builder { pub struct SagaList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -42806,12 +43418,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42988,7 +43599,7 @@ pub mod builder { pub struct SiloList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -43014,12 +43625,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -43326,7 +43936,7 @@ pub mod builder { client: &'a super::Client, silo_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -43363,12 +43973,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44095,7 +44704,7 @@ pub mod builder { client: &'a super::Client, silo_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -44132,12 +44741,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44339,7 +44947,7 @@ pub mod builder { pub struct SystemUserList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -44365,12 +44973,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44547,7 +45154,7 @@ pub mod builder { pub struct TimeseriesSchemaGet<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> TimeseriesSchemaGet<'a> { @@ -44571,12 +45178,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44677,7 +45283,7 @@ pub mod builder { pub struct UserList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -44703,12 +45309,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44826,7 +45431,7 @@ pub mod builder { client: &'a super::Client, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -44866,12 +45471,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -45321,7 +45925,7 @@ pub mod builder { client: &'a super::Client, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -45361,12 +45965,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -45817,7 +46420,7 @@ pub mod builder { instance: Result, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -45868,12 +46471,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -46968,7 +47570,7 @@ pub mod builder { pub struct OrganizationListV1<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -46994,12 +47596,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -47567,7 +48168,7 @@ pub mod builder { client: &'a super::Client, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -47605,12 +48206,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -48297,7 +48897,7 @@ pub mod builder { pub struct SystemComponentVersionList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -48323,12 +48923,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -48447,7 +49046,7 @@ pub mod builder { pub struct UpdateDeploymentsList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -48473,12 +49072,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -48813,7 +49411,7 @@ pub mod builder { pub struct SystemUpdateList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -48839,12 +49437,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/nexus_builder_tagged.rs b/progenitor-impl/tests/output/src/nexus_builder_tagged.rs index dbfef385..20e0f90b 100644 --- a/progenitor-impl/tests/output/src/nexus_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/nexus_builder_tagged.rs @@ -68,9 +68,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Baseboard { - pub part: String, + pub part: ::std::string::String, pub revision: i64, - pub serial: String, + pub serial: ::std::string::String, } impl From<&Baseboard> for Baseboard { @@ -442,9 +442,9 @@ pub mod types { } } - impl std::convert::TryFrom for BlockSize { + impl ::std::convert::TryFrom for BlockSize { type Error = self::error::ConversionError; - fn try_from(value: i64) -> Result { + fn try_from(value: i64) -> ::std::result::Result { if ![512_i64, 2048_i64, 4096_i64].contains(&value) { Err("invalid value".into()) } else { @@ -454,7 +454,7 @@ pub mod types { } impl<'de> ::serde::Deserialize<'de> for BlockSize { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { @@ -516,29 +516,29 @@ pub mod types { } impl std::str::FromStr for ByteCount { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for ByteCount { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for ByteCount { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for ByteCount { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -605,7 +605,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Certificate { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -686,10 +686,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CertificateCreate { ///PEM file containing public certificate chain - pub cert: Vec, - pub description: String, + pub cert: ::std::vec::Vec, + pub description: ::std::string::String, ///PEM file containing private key - pub key: Vec, + pub key: ::std::vec::Vec, pub name: Name, ///The service using this certificate pub service: ServiceUsingCertificate, @@ -741,10 +741,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CertificateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&CertificateResultsPage> for CertificateResultsPage { @@ -861,10 +861,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ComponentUpdateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { @@ -1157,9 +1157,9 @@ pub mod types { #[serde(rename = "f64")] F64(f64), #[serde(rename = "string")] - String(String), + String(::std::string::String), #[serde(rename = "bytes")] - Bytes(Vec), + Bytes(::std::vec::Vec), #[serde(rename = "cumulative_i64")] CumulativeI64(Cumulativeint64), #[serde(rename = "cumulative_f64")] @@ -1194,8 +1194,8 @@ pub mod types { } } - impl From> for Datum { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for Datum { + fn from(value: ::std::vec::Vec) -> Self { Self::Bytes(value) } } @@ -1303,7 +1303,7 @@ pub mod types { impl std::str::FromStr for DatumType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "bool" => Ok(Self::Bool), "i64" => Ok(Self::I64), @@ -1321,21 +1321,25 @@ pub mod types { impl std::convert::TryFrom<&str> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for DatumType { + impl std::convert::TryFrom<&::std::string::String> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for DatumType { + impl std::convert::TryFrom<::std::string::String> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1369,9 +1373,9 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DerEncodedKeyPair { ///request signing private key (base64 encoded der file) - pub private_key: String, + pub private_key: ::std::string::String, ///request signing public certificate (base64 encoded der file) - pub public_cert: String, + pub public_cert: ::std::string::String, } impl From<&DerEncodedKeyPair> for DerEncodedKeyPair { @@ -1416,8 +1420,8 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAccessTokenRequest { pub client_id: uuid::Uuid, - pub device_code: String, - pub grant_type: String, + pub device_code: ::std::string::String, + pub grant_type: ::std::string::String, } impl From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { @@ -1488,7 +1492,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAuthVerify { - pub user_code: String, + pub user_code: ::std::string::String, } impl From<&DeviceAuthVerify> for DeviceAuthVerify { @@ -1536,7 +1540,7 @@ pub mod types { #[serde(tag = "type", content = "value")] pub enum Digest { #[serde(rename = "sha256")] - Sha256(String), + Sha256(::std::string::String), } impl From<&Digest> for Digest { @@ -1633,18 +1637,18 @@ pub mod types { pub struct Disk { pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, - pub device_path: String, + pub description: ::std::string::String, + pub device_path: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub image_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub image_id: ::std::option::Option, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub project_id: uuid::Uuid, pub size: ByteCount, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub snapshot_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub snapshot_id: ::std::option::Option, pub state: DiskState, ///timestamp when this resource was created pub time_created: chrono::DateTime, @@ -1709,7 +1713,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskCreate { - pub description: String, + pub description: ::std::string::String, ///initial source for this disk pub disk_source: DiskSource, pub name: Name, @@ -1835,7 +1839,7 @@ pub mod types { impl std::str::FromStr for DiskMetricName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "activated" => Ok(Self::Activated), "flush" => Ok(Self::Flush), @@ -1850,21 +1854,25 @@ pub mod types { impl std::convert::TryFrom<&str> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for DiskMetricName { + impl std::convert::TryFrom<&::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for DiskMetricName { + impl std::convert::TryFrom<::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1938,10 +1946,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&DiskResultsPage> for DiskResultsPage { @@ -2276,7 +2284,7 @@ pub mod types { ///The name of the distribution (e.g. "alpine" or "ubuntu") pub name: Name, ///The version of the distribution (e.g. "3.10" or "18.04") - pub version: String, + pub version: ::std::string::String, } impl From<&Distribution> for Distribution { @@ -2319,10 +2327,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -2430,8 +2438,8 @@ pub mod types { /// available pools if not specified. #[serde(rename = "ephemeral")] Ephemeral { - #[serde(default, skip_serializing_if = "Option::is_none")] - pool_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pool_name: ::std::option::Option, }, } @@ -2475,10 +2483,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ExternalIpResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ExternalIpResultsPage> for ExternalIpResultsPage { @@ -2523,7 +2531,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct FieldSchema { - pub name: String, + pub name: ::std::string::String, pub source: FieldSource, pub ty: FieldType, } @@ -2592,7 +2600,7 @@ pub mod types { impl std::str::FromStr for FieldSource { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "target" => Ok(Self::Target), "metric" => Ok(Self::Metric), @@ -2603,21 +2611,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FieldSource { + impl std::convert::TryFrom<&::std::string::String> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FieldSource { + impl std::convert::TryFrom<::std::string::String> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2686,7 +2698,7 @@ pub mod types { impl std::str::FromStr for FieldType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "string" => Ok(Self::String), "i64" => Ok(Self::I64), @@ -2700,21 +2712,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FieldType { + impl std::convert::TryFrom<&::std::string::String> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FieldType { + impl std::convert::TryFrom<::std::string::String> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2773,7 +2789,7 @@ pub mod types { impl std::str::FromStr for FleetRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -2785,21 +2801,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FleetRole { + impl std::convert::TryFrom<&::std::string::String> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FleetRole { + impl std::convert::TryFrom<::std::string::String> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2838,7 +2858,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct FleetRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&FleetRolePolicy> for FleetRolePolicy { @@ -3013,12 +3033,12 @@ pub mod types { ///size of blocks in bytes pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///Hash of the image contents, if applicable - #[serde(default, skip_serializing_if = "Option::is_none")] - pub digest: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub digest: ::std::option::Option, ///Image distribution - pub distribution: String, + pub distribution: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -3030,10 +3050,10 @@ pub mod types { ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, ///URL source of this image, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub url: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub url: ::std::option::Option<::std::string::String>, ///Image version - pub version: String, + pub version: ::std::string::String, } impl From<&GlobalImage> for GlobalImage { @@ -3104,7 +3124,7 @@ pub mod types { pub struct GlobalImageCreate { ///block size in bytes pub block_size: BlockSize, - pub description: String, + pub description: ::std::string::String, ///OS image distribution pub distribution: Distribution, pub name: Name, @@ -3158,10 +3178,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GlobalImageResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&GlobalImageResultsPage> for GlobalImageResultsPage { @@ -3210,7 +3230,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Group { ///Human-readable name that can identify the group - pub display_name: String, + pub display_name: ::std::string::String, pub id: uuid::Uuid, ///Uuid of the silo to which this group belongs pub silo_id: uuid::Uuid, @@ -3262,10 +3282,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GroupResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&GroupResultsPage> for GroupResultsPage { @@ -3387,7 +3407,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Histogramdouble { - pub bins: Vec, + pub bins: ::std::vec::Vec, pub n_samples: u64, pub start_time: chrono::DateTime, } @@ -3511,7 +3531,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Histogramint64 { - pub bins: Vec, + pub bins: ::std::vec::Vec, pub n_samples: u64, pub start_time: chrono::DateTime, } @@ -3584,7 +3604,7 @@ pub mod types { impl std::str::FromStr for IdSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "id_ascending" => Ok(Self::IdAscending), _ => Err("invalid value".into()), @@ -3594,21 +3614,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdSortMode { + impl std::convert::TryFrom<&::std::string::String> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdSortMode { + impl std::convert::TryFrom<::std::string::String> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3674,7 +3698,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IdentityProvider { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -3733,10 +3757,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IdentityProviderResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { @@ -3803,7 +3827,7 @@ pub mod types { impl std::str::FromStr for IdentityProviderType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "saml" => Ok(Self::Saml), _ => Err("invalid value".into()), @@ -3813,21 +3837,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdentityProviderType { + impl std::convert::TryFrom<&::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdentityProviderType { + impl std::convert::TryFrom<::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3883,7 +3911,7 @@ pub mod types { impl std::str::FromStr for IdentityType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "silo_user" => Ok(Self::SiloUser), "silo_group" => Ok(Self::SiloGroup), @@ -3894,21 +3922,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdentityType { + impl std::convert::TryFrom<&::std::string::String> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdentityType { + impl std::convert::TryFrom<::std::string::String> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3964,9 +3996,9 @@ pub mod types { #[serde(tag = "type")] pub enum IdpMetadataSource { #[serde(rename = "url")] - Url { url: String }, + Url { url: ::std::string::String }, #[serde(rename = "base64_encoded_xml")] - Base64EncodedXml { data: String }, + Base64EncodedXml { data: ::std::string::String }, } impl From<&IdpMetadataSource> for IdpMetadataSource { @@ -4082,10 +4114,10 @@ pub mod types { ///size of blocks in bytes pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///Hash of the image contents, if applicable - #[serde(default, skip_serializing_if = "Option::is_none")] - pub digest: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub digest: ::std::option::Option, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -4099,11 +4131,11 @@ pub mod types { ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, ///URL source of this image, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub url: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub url: ::std::option::Option<::std::string::String>, ///Version of this, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub version: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub version: ::std::option::Option<::std::string::String>, } impl From<&Image> for Image { @@ -4165,7 +4197,7 @@ pub mod types { pub struct ImageCreate { ///block size in bytes pub block_size: BlockSize, - pub description: String, + pub description: ::std::string::String, pub name: Name, ///The source of the image's contents. pub source: ImageSource, @@ -4217,10 +4249,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ImageResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ImageResultsPage> for ImageResultsPage { @@ -4304,7 +4336,7 @@ pub mod types { #[serde(tag = "type")] pub enum ImageSource { #[serde(rename = "url")] - Url { url: String }, + Url { url: ::std::string::String }, #[serde(rename = "snapshot")] Snapshot { id: uuid::Uuid }, #[serde(rename = "you_can_boot_anything_as_long_as_its_alpine")] @@ -4407,9 +4439,9 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Instance { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///RFC1035-compliant hostname for the Instance. - pub hostname: String, + pub hostname: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///memory allocated for this Instance @@ -4481,29 +4513,29 @@ pub mod types { } impl std::str::FromStr for InstanceCpuCount { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -4602,19 +4634,19 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceCreate { - pub description: String, + pub description: ::std::string::String, ///The disks to be created or attached for this instance. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub disks: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub disks: ::std::vec::Vec, ///The external IP addresses provided to this instance. /// ///By default, all instances have outbound connectivity, but no inbound /// connectivity. These external addresses can be used to provide a /// fixed, known IP address for making inbound connections to the /// instance. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub external_ips: Vec, - pub hostname: String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub external_ips: ::std::vec::Vec, + pub hostname: ::std::string::String, pub memory: ByteCount, pub name: Name, pub ncpus: InstanceCpuCount, @@ -4628,7 +4660,7 @@ pub mod types { /// Must be a Base64-encoded string, as specified in RFC 4648 § 4 (+ and /// / characters with padding). Maximum 32 KiB unencoded data. #[serde(default)] - pub user_data: String, + pub user_data: ::std::string::String, } impl From<&InstanceCreate> for InstanceCreate { @@ -4726,7 +4758,7 @@ pub mod types { ///During instance creation, create and attach disks #[serde(rename = "create")] Create { - description: String, + description: ::std::string::String, ///initial source for this disk disk_source: DiskSource, name: Name, @@ -4866,7 +4898,7 @@ pub mod types { ///If more than one interface is provided, then the first will be /// designated the primary interface for the instance. #[serde(rename = "create")] - Create(Vec), + Create(::std::vec::Vec), #[serde(rename = "default")] Default, #[serde(rename = "none")] @@ -4879,8 +4911,8 @@ pub mod types { } } - impl From> for InstanceNetworkInterfaceAttachment { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for InstanceNetworkInterfaceAttachment { + fn from(value: ::std::vec::Vec) -> Self { Self::Create(value) } } @@ -4919,10 +4951,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&InstanceResultsPage> for InstanceResultsPage { @@ -4978,7 +5010,7 @@ pub mod types { ///The bytes starting from the requested offset up to either the end of /// the buffer or the request's `max_bytes`. Provided as a u8 array /// rather than a string, as it may not be UTF-8. - pub data: Vec, + pub data: ::std::vec::Vec, ///The absolute offset since boot (suitable for use as `byte_offset` in /// a subsequent request) of the last byte returned in `data`. pub last_byte_offset: u64, @@ -5162,7 +5194,7 @@ pub mod types { impl std::str::FromStr for InstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "creating" => Ok(Self::Creating), "starting" => Ok(Self::Starting), @@ -5181,21 +5213,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceState { + impl std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceState { + impl std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5251,7 +5287,7 @@ pub mod types { impl std::str::FromStr for IpKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "ephemeral" => Ok(Self::Ephemeral), "floating" => Ok(Self::Floating), @@ -5262,21 +5298,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IpKind { + impl std::convert::TryFrom<&::std::string::String> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IpKind { + impl std::convert::TryFrom<::std::string::String> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5323,7 +5363,7 @@ pub mod types { impl std::str::FromStr for IpNet { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::V4(v)) } else if let Ok(v) = value.parse() { @@ -5336,21 +5376,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IpNet { + impl std::convert::TryFrom<&::std::string::String> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IpNet { + impl std::convert::TryFrom<::std::string::String> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5430,7 +5474,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPool { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -5481,7 +5525,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -5578,10 +5622,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolRangeResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { @@ -5630,10 +5674,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IpPoolResultsPage> for IpPoolResultsPage { @@ -5683,10 +5727,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&IpPoolUpdate> for IpPoolUpdate { @@ -5773,15 +5817,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Ipv4Net(String); + pub struct Ipv4Net(::std::string::String); impl ::std::ops::Deref for Ipv4Net { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Ipv4Net) -> Self { value.0 } @@ -5795,7 +5839,7 @@ pub mod types { impl ::std::str::FromStr for Ipv4Net { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.\ ){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/\ @@ -5817,31 +5861,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Ipv4Net { + impl ::std::convert::TryFrom<&::std::string::String> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Ipv4Net { + impl ::std::convert::TryFrom<::std::string::String> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Ipv4Net { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -5915,15 +5963,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Ipv6Net(String); + pub struct Ipv6Net(::std::string::String); impl ::std::ops::Deref for Ipv6Net { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Ipv6Net) -> Self { value.0 } @@ -5937,7 +5985,7 @@ pub mod types { impl ::std::str::FromStr for Ipv6Net { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "^([fF][dD])[0-9a-fA-F]{2}:(([0-9a-fA-F]{1,4}:){6}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,\ 4}:){1,6}:)\\/([1-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$", @@ -5958,31 +6006,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Ipv6Net { + impl ::std::convert::TryFrom<&::std::string::String> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Ipv6Net { + impl ::std::convert::TryFrom<::std::string::String> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Ipv6Net { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6058,15 +6110,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct L4PortRange(String); + pub struct L4PortRange(::std::string::String); impl ::std::ops::Deref for L4PortRange { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: L4PortRange) -> Self { value.0 } @@ -6080,7 +6132,7 @@ pub mod types { impl ::std::str::FromStr for L4PortRange { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 11usize { return Err("longer than 11 characters".into()); } @@ -6100,31 +6152,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for L4PortRange { + impl ::std::convert::TryFrom<&::std::string::String> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for L4PortRange { + impl ::std::convert::TryFrom<::std::string::String> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for L4PortRange { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6151,15 +6207,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct MacAddr(String); + pub struct MacAddr(::std::string::String); impl ::std::ops::Deref for MacAddr { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: MacAddr) -> Self { value.0 } @@ -6173,7 +6229,7 @@ pub mod types { impl ::std::str::FromStr for MacAddr { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 17usize { return Err("longer than 17 characters".into()); } @@ -6195,31 +6251,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for MacAddr { + impl ::std::convert::TryFrom<&::std::string::String> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for MacAddr { + impl ::std::convert::TryFrom<::std::string::String> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for MacAddr { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6304,10 +6364,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct MeasurementResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&MeasurementResultsPage> for MeasurementResultsPage { @@ -6344,15 +6404,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Name(String); + pub struct Name(::std::string::String); impl ::std::ops::Deref for Name { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Name) -> Self { value.0 } @@ -6366,7 +6426,7 @@ pub mod types { impl ::std::str::FromStr for Name { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -6377,31 +6437,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Name { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Name { + impl ::std::convert::TryFrom<&::std::string::String> for Name { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Name { + impl ::std::convert::TryFrom<::std::string::String> for Name { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Name { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6452,7 +6516,7 @@ pub mod types { impl std::str::FromStr for NameOrId { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Id(v)) } else if let Ok(v) = value.parse() { @@ -6465,21 +6529,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameOrId { + impl std::convert::TryFrom<&::std::string::String> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameOrId { + impl std::convert::TryFrom<::std::string::String> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6581,7 +6649,7 @@ pub mod types { impl std::str::FromStr for NameOrIdSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "name_ascending" => Ok(Self::NameAscending), "name_descending" => Ok(Self::NameDescending), @@ -6593,21 +6661,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameOrIdSortMode { + impl std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameOrIdSortMode { + impl std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6668,7 +6740,7 @@ pub mod types { impl std::str::FromStr for NameSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "name_ascending" => Ok(Self::NameAscending), _ => Err("invalid value".into()), @@ -6678,21 +6750,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameSortMode { + impl std::convert::TryFrom<&::std::string::String> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameSortMode { + impl std::convert::TryFrom<::std::string::String> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6789,7 +6865,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterface { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///The Instance to which the interface belongs. @@ -6878,11 +6954,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceCreate { - pub description: String, + pub description: ::std::string::String, ///The IP address for the interface. One will be auto-assigned if not /// provided. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ip: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ip: ::std::option::Option, pub name: Name, ///The VPC Subnet in which to create the interface. pub subnet_name: Name, @@ -6936,10 +7012,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { @@ -7008,10 +7084,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, ///Make a secondary interface the instance's primary interface. /// ///If applied to a secondary interface, that interface will become the @@ -7069,15 +7145,15 @@ pub mod types { PartialEq, PartialOrd, )] - pub struct NodeName(pub String); + pub struct NodeName(pub ::std::string::String); impl ::std::ops::Deref for NodeName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: NodeName) -> Self { value.0 } @@ -7089,15 +7165,15 @@ pub mod types { } } - impl From for NodeName { - fn from(value: String) -> Self { + impl From<::std::string::String> for NodeName { + fn from(value: ::std::string::String) -> Self { Self(value) } } - impl std::str::FromStr for NodeName { - type Err = std::convert::Infallible; - fn from_str(value: &str) -> Result { + impl ::std::str::FromStr for NodeName { + type Err = ::std::convert::Infallible; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.to_string())) } } @@ -7160,7 +7236,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Organization { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -7210,7 +7286,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -7260,10 +7336,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&OrganizationResultsPage> for OrganizationResultsPage { @@ -7332,7 +7408,7 @@ pub mod types { impl std::str::FromStr for OrganizationRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -7344,21 +7420,25 @@ pub mod types { impl std::convert::TryFrom<&str> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for OrganizationRole { + impl std::convert::TryFrom<&::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for OrganizationRole { + impl std::convert::TryFrom<::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7397,7 +7477,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&OrganizationRolePolicy> for OrganizationRolePolicy { @@ -7505,10 +7585,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&OrganizationUpdate> for OrganizationUpdate { @@ -7537,15 +7617,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Password(String); + pub struct Password(::std::string::String); impl ::std::ops::Deref for Password { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Password) -> Self { value.0 } @@ -7559,7 +7639,7 @@ pub mod types { impl ::std::str::FromStr for Password { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 512usize { return Err("longer than 512 characters".into()); } @@ -7569,31 +7649,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Password { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Password { + impl ::std::convert::TryFrom<&::std::string::String> for Password { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Password { + impl ::std::convert::TryFrom<::std::string::String> for Password { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Password { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -7664,16 +7748,16 @@ pub mod types { pub disk_type: PhysicalDiskType, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub model: String, - pub serial: String, + pub model: ::std::string::String, + pub serial: ::std::string::String, ///The sled to which this disk is attached, if any. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub sled_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub sled_id: ::std::option::Option, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, - pub vendor: String, + pub vendor: ::std::string::String, } impl From<&PhysicalDisk> for PhysicalDisk { @@ -7722,10 +7806,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct PhysicalDiskResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { @@ -7790,7 +7874,7 @@ pub mod types { impl std::str::FromStr for PhysicalDiskType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "internal" => Ok(Self::Internal), "external" => Ok(Self::External), @@ -7801,21 +7885,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for PhysicalDiskType { + impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for PhysicalDiskType { + impl std::convert::TryFrom<::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7877,7 +7965,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Project { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -7928,7 +8016,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -7978,10 +8066,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ProjectResultsPage> for ProjectResultsPage { @@ -8050,7 +8138,7 @@ pub mod types { impl std::str::FromStr for ProjectRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -8062,21 +8150,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ProjectRole { + impl std::convert::TryFrom<&::std::string::String> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ProjectRole { + impl std::convert::TryFrom<::std::string::String> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -8115,7 +8207,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&ProjectRolePolicy> for ProjectRolePolicy { @@ -8223,10 +8315,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&ProjectUpdate> for ProjectUpdate { @@ -8331,10 +8423,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RackResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RackResultsPage> for RackResultsPage { @@ -8374,7 +8466,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Role { - pub description: String, + pub description: ::std::string::String, pub name: RoleName, } @@ -8406,15 +8498,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct RoleName(String); + pub struct RoleName(::std::string::String); impl ::std::ops::Deref for RoleName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: RoleName) -> Self { value.0 } @@ -8428,7 +8520,7 @@ pub mod types { impl ::std::str::FromStr for RoleName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -8445,31 +8537,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for RoleName { + impl ::std::convert::TryFrom<&::std::string::String> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for RoleName { + impl ::std::convert::TryFrom<::std::string::String> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for RoleName { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -8511,10 +8607,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RoleResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RoleResultsPage> for RoleResultsPage { @@ -8885,7 +8981,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRoute { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, pub destination: RouteDestination, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, @@ -8947,7 +9043,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRouteCreateParams { - pub description: String, + pub description: ::std::string::String, pub destination: RouteDestination, pub name: Name, pub target: RouteTarget, @@ -9069,7 +9165,7 @@ pub mod types { impl std::str::FromStr for RouterRouteKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "default" => Ok(Self::Default), "vpc_subnet" => Ok(Self::VpcSubnet), @@ -9082,21 +9178,25 @@ pub mod types { impl std::convert::TryFrom<&str> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for RouterRouteKind { + impl std::convert::TryFrom<&::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for RouterRouteKind { + impl std::convert::TryFrom<::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9135,10 +9235,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRouteResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RouterRouteResultsPage> for RouterRouteResultsPage { @@ -9198,11 +9298,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRouteUpdateParams { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, pub destination: RouteDestination, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, pub target: RouteTarget, } @@ -9360,13 +9460,13 @@ pub mod types { #[serde(rename = "action_failed")] ActionFailed { source_error: ::serde_json::Value }, #[serde(rename = "deserialize_failed")] - DeserializeFailed { message: String }, + DeserializeFailed { message: ::std::string::String }, #[serde(rename = "injected_error")] InjectedError, #[serde(rename = "serialize_failed")] - SerializeFailed { message: String }, + SerializeFailed { message: ::std::string::String }, #[serde(rename = "subsaga_create_failed")] - SubsagaCreateFailed { message: String }, + SubsagaCreateFailed { message: ::std::string::String }, } impl From<&SagaErrorInfo> for SagaErrorInfo { @@ -9409,10 +9509,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SagaResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SagaResultsPage> for SagaResultsPage { @@ -9598,25 +9698,25 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SamlIdentityProvider { ///service provider endpoint where the response will be sent - pub acs_url: String, + pub acs_url: ::std::string::String, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///idp's entity id - pub idp_entity_id: String, + pub idp_entity_id: ::std::string::String, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///optional request signing public certificate (base64 encoded der /// file) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub public_cert: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub public_cert: ::std::option::Option<::std::string::String>, ///service provider endpoint where the idp should send log out requests - pub slo_url: String, + pub slo_url: ::std::string::String, ///sp's client id - pub sp_client_id: String, + pub sp_client_id: ::std::string::String, ///customer's technical contact for saml configuration - pub technical_contact_email: String, + pub technical_contact_email: ::std::string::String, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -9723,27 +9823,27 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SamlIdentityProviderCreate { ///service provider endpoint where the response will be sent - pub acs_url: String, - pub description: String, + pub acs_url: ::std::string::String, + pub description: ::std::string::String, ///If set, SAML attributes with this name will be considered to denote /// a user's group membership, where the attribute value(s) should be a /// comma-separated list of group names. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub group_attribute_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub group_attribute_name: ::std::option::Option<::std::string::String>, ///idp's entity id - pub idp_entity_id: String, + pub idp_entity_id: ::std::string::String, ///the source of an identity provider metadata descriptor pub idp_metadata_source: IdpMetadataSource, pub name: Name, ///optional request signing key pair - #[serde(default, skip_serializing_if = "Option::is_none")] - pub signing_keypair: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub signing_keypair: ::std::option::Option, ///service provider endpoint where the idp should send log out requests - pub slo_url: String, + pub slo_url: ::std::string::String, ///sp's client id - pub sp_client_id: String, + pub sp_client_id: ::std::string::String, ///customer's technical contact for saml configuration - pub technical_contact_email: String, + pub technical_contact_email: ::std::string::String, } impl From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { @@ -9770,15 +9870,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct SemverVersion(String); + pub struct SemverVersion(::std::string::String); impl ::std::ops::Deref for SemverVersion { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: SemverVersion) -> Self { value.0 } @@ -9792,7 +9892,7 @@ pub mod types { impl ::std::str::FromStr for SemverVersion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new("^\\d+\\.\\d+\\.\\d+([\\-\\+].+)?$") .unwrap() .find(value) @@ -9806,31 +9906,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for SemverVersion { + impl ::std::convert::TryFrom<&::std::string::String> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for SemverVersion { + impl ::std::convert::TryFrom<::std::string::String> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for SemverVersion { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -9892,7 +9996,7 @@ pub mod types { impl std::str::FromStr for ServiceUsingCertificate { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "external_api" => Ok(Self::ExternalApi), _ => Err("invalid value".into()), @@ -9902,21 +10006,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ServiceUsingCertificate { + impl std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ServiceUsingCertificate { + impl std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9987,7 +10095,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Silo { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///A silo where discoverable is false can be retrieved only by its id - /// it will not be part of the "list all silos" output. pub discoverable: bool, @@ -10070,9 +10178,9 @@ pub mod types { ///Note that if configuring a SAML based identity provider, /// group_attribute_name must be set for users to be considered part of /// a group. See [`SamlIdentityProviderCreate`] for more information. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub admin_group_name: Option, - pub description: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub admin_group_name: ::std::option::Option<::std::string::String>, + pub description: ::std::string::String, pub discoverable: bool, pub identity_mode: SiloIdentityMode, pub name: Name, @@ -10165,7 +10273,7 @@ pub mod types { impl std::str::FromStr for SiloIdentityMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "saml_jit" => Ok(Self::SamlJit), "local_only" => Ok(Self::LocalOnly), @@ -10176,21 +10284,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SiloIdentityMode { + impl std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SiloIdentityMode { + impl std::convert::TryFrom<::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10229,10 +10341,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SiloResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SiloResultsPage> for SiloResultsPage { @@ -10301,7 +10413,7 @@ pub mod types { impl std::str::FromStr for SiloRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -10313,21 +10425,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SiloRole { + impl std::convert::TryFrom<&::std::string::String> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SiloRole { + impl std::convert::TryFrom<::std::string::String> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10366,7 +10482,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SiloRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&SiloRolePolicy> for SiloRolePolicy { @@ -10484,7 +10600,7 @@ pub mod types { pub baseboard: Baseboard, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub service_address: String, + pub service_address: ::std::string::String, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -10537,10 +10653,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SledResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SledResultsPage> for SledResultsPage { @@ -10625,7 +10741,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Snapshot { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, pub disk_id: uuid::Uuid, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, @@ -10688,7 +10804,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SnapshotCreate { - pub description: String, + pub description: ::std::string::String, ///The name of the disk to be snapshotted pub disk: Name, pub name: Name, @@ -10740,10 +10856,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SnapshotResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SnapshotResultsPage> for SnapshotResultsPage { @@ -10816,7 +10932,7 @@ pub mod types { impl std::str::FromStr for SnapshotState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "creating" => Ok(Self::Creating), "ready" => Ok(Self::Ready), @@ -10829,21 +10945,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SnapshotState { + impl std::convert::TryFrom<&::std::string::String> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SnapshotState { + impl std::convert::TryFrom<::std::string::String> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10868,7 +10988,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SpoofLoginBody { - pub username: String, + pub username: ::std::string::String, } impl From<&SpoofLoginBody> for SpoofLoginBody { @@ -10947,13 +11067,13 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SshKey { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` - pub public_key: String, + pub public_key: ::std::string::String, ///The user to whom this key belongs pub silo_user_id: uuid::Uuid, ///timestamp when this resource was created @@ -11007,10 +11127,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SshKeyCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` - pub public_key: String, + pub public_key: ::std::string::String, } impl From<&SshKeyCreate> for SshKeyCreate { @@ -11059,10 +11179,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SshKeyResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SshKeyResultsPage> for SshKeyResultsPage { @@ -11131,7 +11251,7 @@ pub mod types { impl std::str::FromStr for SystemMetricName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "virtual_disk_space_provisioned" => Ok(Self::VirtualDiskSpaceProvisioned), "cpus_provisioned" => Ok(Self::CpusProvisioned), @@ -11143,21 +11263,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SystemMetricName { + impl std::convert::TryFrom<&::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SystemMetricName { + impl std::convert::TryFrom<::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11259,10 +11383,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SystemUpdateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { @@ -11371,15 +11495,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct TimeseriesName(String); + pub struct TimeseriesName(::std::string::String); impl ::std::ops::Deref for TimeseriesName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: TimeseriesName) -> Self { value.0 } @@ -11393,7 +11517,7 @@ pub mod types { impl ::std::str::FromStr for TimeseriesName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*):(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*)", ) @@ -11412,31 +11536,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for TimeseriesName { + impl ::std::convert::TryFrom<&::std::string::String> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for TimeseriesName { + impl ::std::convert::TryFrom<::std::string::String> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for TimeseriesName { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -11488,7 +11616,7 @@ pub mod types { pub struct TimeseriesSchema { pub created: chrono::DateTime, pub datum_type: DatumType, - pub field_schema: Vec, + pub field_schema: ::std::vec::Vec, pub timeseries_name: TimeseriesName, } @@ -11538,10 +11666,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TimeseriesSchemaResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { @@ -11658,10 +11786,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateDeploymentResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { @@ -11752,7 +11880,7 @@ pub mod types { impl std::str::FromStr for UpdateStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "updating" => Ok(Self::Updating), "steady" => Ok(Self::Steady), @@ -11763,21 +11891,25 @@ pub mod types { impl std::convert::TryFrom<&str> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for UpdateStatus { + impl std::convert::TryFrom<&::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for UpdateStatus { + impl std::convert::TryFrom<::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11841,7 +11973,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateableComponent { pub component_type: UpdateableComponentType, - pub device_id: String, + pub device_id: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub status: UpdateStatus, @@ -11899,10 +12031,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateableComponentResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { @@ -12007,7 +12139,7 @@ pub mod types { impl std::str::FromStr for UpdateableComponentType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "bootloader_for_rot" => Ok(Self::BootloaderForRot), "bootloader_for_sp" => Ok(Self::BootloaderForSp), @@ -12028,21 +12160,25 @@ pub mod types { impl std::convert::TryFrom<&str> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for UpdateableComponentType { + impl std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for UpdateableComponentType { + impl std::convert::TryFrom<::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12081,7 +12217,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct User { ///Human-readable name that can identify the user - pub display_name: String, + pub display_name: ::std::string::String, pub id: uuid::Uuid, ///Uuid of the silo to which this user belongs pub silo_id: uuid::Uuid, @@ -12151,7 +12287,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserBuiltin { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -12208,10 +12344,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserBuiltinResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { @@ -12302,15 +12438,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct UserId(String); + pub struct UserId(::std::string::String); impl ::std::ops::Deref for UserId { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: UserId) -> Self { value.0 } @@ -12324,7 +12460,7 @@ pub mod types { impl ::std::str::FromStr for UserId { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -12335,31 +12471,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for UserId { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for UserId { + impl ::std::convert::TryFrom<&::std::string::String> for UserId { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for UserId { + impl ::std::convert::TryFrom<::std::string::String> for UserId { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for UserId { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -12470,10 +12610,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UserResultsPage> for UserResultsPage { @@ -12653,7 +12793,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Vpc { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///The name used for the VPC in DNS. pub dns_name: Name, ///unique, immutable, system-controlled identifier for each resource @@ -12732,7 +12872,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcCreate { - pub description: String, + pub description: ::std::string::String, pub dns_name: Name, ///The IPv6 prefix for this VPC. /// @@ -12740,8 +12880,8 @@ pub mod types { /// range, which sould be a Unique Local Address in the range /// `fd00::/48`. The default VPC Subnet will have the first `/64` range /// from this prefix. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ipv6_prefix: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ipv6_prefix: ::std::option::Option, pub name: Name, } @@ -12871,7 +13011,7 @@ pub mod types { ///whether traffic matching the rule should be allowed or dropped pub action: VpcFirewallRuleAction, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///whether this rule is for incoming or outgoing traffic pub direction: VpcFirewallRuleDirection, ///reductions on the scope of the rule @@ -12885,7 +13025,7 @@ pub mod types { ///whether this rule is in effect pub status: VpcFirewallRuleStatus, ///list of sets of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -12956,7 +13096,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "allow" => Ok(Self::Allow), "deny" => Ok(Self::Deny), @@ -12967,21 +13107,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleAction { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleAction { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13036,7 +13180,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleDirection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "inbound" => Ok(Self::Inbound), "outbound" => Ok(Self::Outbound), @@ -13047,21 +13191,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleDirection { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleDirection { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13120,14 +13268,14 @@ pub mod types { pub struct VpcFirewallRuleFilter { ///If present, the sources (if incoming) or destinations (if outgoing) /// this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub hosts: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hosts: ::std::option::Option<::std::vec::Vec>, ///If present, the destination ports this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ports: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ports: ::std::option::Option<::std::vec::Vec>, ///If present, the networking protocols this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub protocols: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub protocols: ::std::option::Option<::std::vec::Vec>, } impl From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { @@ -13351,7 +13499,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleProtocol { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "TCP" => Ok(Self::Tcp), "UDP" => Ok(Self::Udp), @@ -13363,21 +13511,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleProtocol { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleProtocol { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13432,7 +13584,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "disabled" => Ok(Self::Disabled), "enabled" => Ok(Self::Enabled), @@ -13443,21 +13595,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleStatus { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleStatus { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13699,7 +13855,7 @@ pub mod types { ///whether traffic matching the rule should be allowed or dropped pub action: VpcFirewallRuleAction, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///whether this rule is for incoming or outgoing traffic pub direction: VpcFirewallRuleDirection, ///reductions on the scope of the rule @@ -13711,7 +13867,7 @@ pub mod types { ///whether this rule is in effect pub status: VpcFirewallRuleStatus, ///list of sets of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { @@ -13754,7 +13910,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcFirewallRuleUpdateParams { - pub rules: Vec, + pub rules: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { @@ -13793,7 +13949,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcFirewallRules { - pub rules: Vec, + pub rules: ::std::vec::Vec, } impl From<&VpcFirewallRules> for VpcFirewallRules { @@ -13842,10 +13998,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcResultsPage> for VpcResultsPage { @@ -13924,7 +14080,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouter { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub kind: VpcRouterKind, @@ -13977,7 +14133,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouterCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -14043,7 +14199,7 @@ pub mod types { impl std::str::FromStr for VpcRouterKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "system" => Ok(Self::System), "custom" => Ok(Self::Custom), @@ -14054,21 +14210,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcRouterKind { + impl std::convert::TryFrom<&::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcRouterKind { + impl std::convert::TryFrom<::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -14107,10 +14267,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouterResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcRouterResultsPage> for VpcRouterResultsPage { @@ -14162,10 +14322,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouterUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcRouterUpdate> for VpcRouterUpdate { @@ -14260,7 +14420,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnet { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///The IPv4 subnet CIDR block. @@ -14346,7 +14506,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnetCreate { - pub description: String, + pub description: ::std::string::String, ///The IPv4 address range for this subnet. /// ///It must be allocated from an RFC 1918 private address range, and @@ -14358,8 +14518,8 @@ pub mod types { /// with the prefix equal to the parent VPC's prefix. A random `/64` /// block will be assigned if one is not provided. It must not overlap /// with any existing subnet in the VPC. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ipv6_block: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ipv6_block: ::std::option::Option, pub name: Name, } @@ -14409,10 +14569,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnetResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { @@ -14464,10 +14624,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnetUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcSubnetUpdate> for VpcSubnetUpdate { @@ -14532,12 +14692,12 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub dns_name: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub dns_name: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcUpdate> for VpcUpdate { @@ -14556,9 +14716,9 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct Baseboard { - part: Result, - revision: Result, - serial: Result, + part: ::std::result::Result<::std::string::String, ::std::string::String>, + revision: ::std::result::Result, + serial: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Baseboard { @@ -14574,7 +14734,7 @@ pub mod types { impl Baseboard { pub fn part(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.part = value @@ -14594,7 +14754,7 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.serial = value @@ -14604,9 +14764,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Baseboard { + impl ::std::convert::TryFrom for super::Baseboard { type Error = super::error::ConversionError; - fn try_from(value: Baseboard) -> Result { + fn try_from( + value: Baseboard, + ) -> ::std::result::Result { Ok(Self { part: value.part?, revision: value.revision?, @@ -14627,8 +14789,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Bindouble { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Bindouble { @@ -14663,9 +14825,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Bindouble { + impl ::std::convert::TryFrom for super::Bindouble { type Error = super::error::ConversionError; - fn try_from(value: Bindouble) -> Result { + fn try_from( + value: Bindouble, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -14684,8 +14848,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binint64 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binint64 { @@ -14720,9 +14884,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binint64 { + impl ::std::convert::TryFrom for super::Binint64 { type Error = super::error::ConversionError; - fn try_from(value: Binint64) -> Result { + fn try_from( + value: Binint64, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -14741,12 +14907,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Certificate { - description: Result, - id: Result, - name: Result, - service: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + service: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Certificate { @@ -14765,7 +14933,7 @@ pub mod types { impl Certificate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -14825,9 +14993,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Certificate { + impl ::std::convert::TryFrom for super::Certificate { type Error = super::error::ConversionError; - fn try_from(value: Certificate) -> Result { + fn try_from( + value: Certificate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -14854,11 +15024,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct CertificateCreate { - cert: Result, String>, - description: Result, - key: Result, String>, - name: Result, - service: Result, + cert: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + key: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + name: ::std::result::Result, + service: ::std::result::Result, } impl Default for CertificateCreate { @@ -14876,7 +15046,7 @@ pub mod types { impl CertificateCreate { pub fn cert(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.cert = value @@ -14886,7 +15056,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -14896,7 +15066,7 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.key = value @@ -14926,9 +15096,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CertificateCreate { + impl ::std::convert::TryFrom for super::CertificateCreate { type Error = super::error::ConversionError; - fn try_from(value: CertificateCreate) -> Result { + fn try_from( + value: CertificateCreate, + ) -> ::std::result::Result { Ok(Self { cert: value.cert?, description: value.description?, @@ -14953,8 +15125,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct CertificateResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for CertificateResultsPage { @@ -14969,7 +15145,7 @@ pub mod types { impl CertificateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -14979,7 +15155,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -14989,11 +15165,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CertificateResultsPage { + impl ::std::convert::TryFrom for super::CertificateResultsPage { type Error = super::error::ConversionError; fn try_from( value: CertificateResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -15012,11 +15188,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct ComponentUpdate { - component_type: Result, - id: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + component_type: + ::std::result::Result, + id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for ComponentUpdate { @@ -15084,9 +15263,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ComponentUpdate { + impl ::std::convert::TryFrom for super::ComponentUpdate { type Error = super::error::ConversionError; - fn try_from(value: ComponentUpdate) -> Result { + fn try_from( + value: ComponentUpdate, + ) -> ::std::result::Result { Ok(Self { component_type: value.component_type?, id: value.id?, @@ -15111,8 +15292,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct ComponentUpdateResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ComponentUpdateResultsPage { @@ -15127,7 +15314,7 @@ pub mod types { impl ComponentUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -15137,7 +15324,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -15147,11 +15334,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ComponentUpdateResultsPage { + impl ::std::convert::TryFrom for super::ComponentUpdateResultsPage { type Error = super::error::ConversionError; fn try_from( value: ComponentUpdateResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -15170,8 +15357,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativedouble { - start_time: Result, String>, - value: Result, + start_time: + ::std::result::Result, ::std::string::String>, + value: ::std::result::Result, } impl Default for Cumulativedouble { @@ -15206,9 +15394,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Cumulativedouble { + impl ::std::convert::TryFrom for super::Cumulativedouble { type Error = super::error::ConversionError; - fn try_from(value: Cumulativedouble) -> Result { + fn try_from( + value: Cumulativedouble, + ) -> ::std::result::Result { Ok(Self { start_time: value.start_time?, value: value.value?, @@ -15227,8 +15417,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativeint64 { - start_time: Result, String>, - value: Result, + start_time: + ::std::result::Result, ::std::string::String>, + value: ::std::result::Result, } impl Default for Cumulativeint64 { @@ -15263,9 +15454,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Cumulativeint64 { + impl ::std::convert::TryFrom for super::Cumulativeint64 { type Error = super::error::ConversionError; - fn try_from(value: Cumulativeint64) -> Result { + fn try_from( + value: Cumulativeint64, + ) -> ::std::result::Result { Ok(Self { start_time: value.start_time?, value: value.value?, @@ -15284,8 +15477,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct DerEncodedKeyPair { - private_key: Result, - public_cert: Result, + private_key: ::std::result::Result<::std::string::String, ::std::string::String>, + public_cert: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for DerEncodedKeyPair { @@ -15300,7 +15493,7 @@ pub mod types { impl DerEncodedKeyPair { pub fn private_key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.private_key = value @@ -15310,7 +15503,7 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.public_cert = value @@ -15320,9 +15513,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DerEncodedKeyPair { + impl ::std::convert::TryFrom for super::DerEncodedKeyPair { type Error = super::error::ConversionError; - fn try_from(value: DerEncodedKeyPair) -> Result { + fn try_from( + value: DerEncodedKeyPair, + ) -> ::std::result::Result { Ok(Self { private_key: value.private_key?, public_cert: value.public_cert?, @@ -15341,9 +15536,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAccessTokenRequest { - client_id: Result, - device_code: Result, - grant_type: Result, + client_id: ::std::result::Result, + device_code: ::std::result::Result<::std::string::String, ::std::string::String>, + grant_type: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for DeviceAccessTokenRequest { @@ -15369,7 +15564,7 @@ pub mod types { } pub fn device_code(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device_code = value @@ -15379,7 +15574,7 @@ pub mod types { } pub fn grant_type(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.grant_type = value @@ -15389,11 +15584,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DeviceAccessTokenRequest { + impl ::std::convert::TryFrom for super::DeviceAccessTokenRequest { type Error = super::error::ConversionError; fn try_from( value: DeviceAccessTokenRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { client_id: value.client_id?, device_code: value.device_code?, @@ -15414,7 +15609,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthRequest { - client_id: Result, + client_id: ::std::result::Result, } impl Default for DeviceAuthRequest { @@ -15438,9 +15633,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DeviceAuthRequest { + impl ::std::convert::TryFrom for super::DeviceAuthRequest { type Error = super::error::ConversionError; - fn try_from(value: DeviceAuthRequest) -> Result { + fn try_from( + value: DeviceAuthRequest, + ) -> ::std::result::Result { Ok(Self { client_id: value.client_id?, }) @@ -15457,7 +15654,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthVerify { - user_code: Result, + user_code: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for DeviceAuthVerify { @@ -15471,7 +15668,7 @@ pub mod types { impl DeviceAuthVerify { pub fn user_code(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.user_code = value @@ -15481,9 +15678,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DeviceAuthVerify { + impl ::std::convert::TryFrom for super::DeviceAuthVerify { type Error = super::error::ConversionError; - fn try_from(value: DeviceAuthVerify) -> Result { + fn try_from( + value: DeviceAuthVerify, + ) -> ::std::result::Result { Ok(Self { user_code: value.user_code?, }) @@ -15500,18 +15699,22 @@ pub mod types { #[derive(Clone, Debug)] pub struct Disk { - block_size: Result, - description: Result, - device_path: Result, - id: Result, - image_id: Result, String>, - name: Result, - project_id: Result, - size: Result, - snapshot_id: Result, String>, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + device_path: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + image_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, + project_id: ::std::result::Result, + size: ::std::result::Result, + snapshot_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Disk { @@ -15546,7 +15749,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -15556,7 +15759,7 @@ pub mod types { } pub fn device_path(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device_path = value @@ -15576,7 +15779,7 @@ pub mod types { } pub fn image_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.image_id = value @@ -15616,7 +15819,7 @@ pub mod types { } pub fn snapshot_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.snapshot_id = value @@ -15656,9 +15859,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Disk { + impl ::std::convert::TryFrom for super::Disk { type Error = super::error::ConversionError; - fn try_from(value: Disk) -> Result { + fn try_from(value: Disk) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -15697,10 +15900,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskCreate { - description: Result, - disk_source: Result, - name: Result, - size: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disk_source: ::std::result::Result, + name: ::std::result::Result, + size: ::std::result::Result, } impl Default for DiskCreate { @@ -15717,7 +15920,7 @@ pub mod types { impl DiskCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -15757,9 +15960,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskCreate { + impl ::std::convert::TryFrom for super::DiskCreate { type Error = super::error::ConversionError; - fn try_from(value: DiskCreate) -> Result { + fn try_from( + value: DiskCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disk_source: value.disk_source?, @@ -15782,7 +15987,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskIdentifier { - name: Result, + name: ::std::result::Result, } impl Default for DiskIdentifier { @@ -15806,9 +16011,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskIdentifier { + impl ::std::convert::TryFrom for super::DiskIdentifier { type Error = super::error::ConversionError; - fn try_from(value: DiskIdentifier) -> Result { + fn try_from( + value: DiskIdentifier, + ) -> ::std::result::Result { Ok(Self { name: value.name? }) } } @@ -15823,7 +16030,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskPath { - disk: Result, + disk: ::std::result::Result, } impl Default for DiskPath { @@ -15847,9 +16054,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskPath { + impl ::std::convert::TryFrom for super::DiskPath { type Error = super::error::ConversionError; - fn try_from(value: DiskPath) -> Result { + fn try_from( + value: DiskPath, + ) -> ::std::result::Result { Ok(Self { disk: value.disk? }) } } @@ -15864,8 +16073,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for DiskResultsPage { @@ -15880,7 +16092,7 @@ pub mod types { impl DiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -15890,7 +16102,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -15900,9 +16112,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskResultsPage { + impl ::std::convert::TryFrom for super::DiskResultsPage { type Error = super::error::ConversionError; - fn try_from(value: DiskResultsPage) -> Result { + fn try_from( + value: DiskResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -15921,8 +16135,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Distribution { - name: Result, - version: Result, + name: ::std::result::Result, + version: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Distribution { @@ -15947,7 +16161,7 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.version = value @@ -15957,9 +16171,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Distribution { + impl ::std::convert::TryFrom for super::Distribution { type Error = super::error::ConversionError; - fn try_from(value: Distribution) -> Result { + fn try_from( + value: Distribution, + ) -> ::std::result::Result { Ok(Self { name: value.name?, version: value.version?, @@ -15978,9 +16194,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct Error { - error_code: Result, String>, - message: Result, - request_id: Result, + error_code: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + message: ::std::result::Result<::std::string::String, ::std::string::String>, + request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Error { @@ -15996,7 +16215,7 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.error_code = value @@ -16006,7 +16225,7 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.message = value @@ -16016,7 +16235,7 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.request_id = value @@ -16026,9 +16245,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Error { + impl ::std::convert::TryFrom for super::Error { type Error = super::error::ConversionError; - fn try_from(value: Error) -> Result { + fn try_from( + value: Error, + ) -> ::std::result::Result { Ok(Self { error_code: value.error_code?, message: value.message?, @@ -16049,8 +16270,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct ExternalIp { - ip: Result, - kind: Result, + ip: ::std::result::Result, + kind: ::std::result::Result, } impl Default for ExternalIp { @@ -16085,9 +16306,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ExternalIp { + impl ::std::convert::TryFrom for super::ExternalIp { type Error = super::error::ConversionError; - fn try_from(value: ExternalIp) -> Result { + fn try_from( + value: ExternalIp, + ) -> ::std::result::Result { Ok(Self { ip: value.ip?, kind: value.kind?, @@ -16106,8 +16329,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ExternalIpResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ExternalIpResultsPage { @@ -16122,7 +16348,7 @@ pub mod types { impl ExternalIpResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -16132,7 +16358,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -16142,11 +16368,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ExternalIpResultsPage { + impl ::std::convert::TryFrom for super::ExternalIpResultsPage { type Error = super::error::ConversionError; fn try_from( value: ExternalIpResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -16165,9 +16391,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct FieldSchema { - name: Result, - source: Result, - ty: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + source: ::std::result::Result, + ty: ::std::result::Result, } impl Default for FieldSchema { @@ -16183,7 +16409,7 @@ pub mod types { impl FieldSchema { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -16213,9 +16439,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FieldSchema { + impl ::std::convert::TryFrom for super::FieldSchema { type Error = super::error::ConversionError; - fn try_from(value: FieldSchema) -> Result { + fn try_from( + value: FieldSchema, + ) -> ::std::result::Result { Ok(Self { name: value.name?, source: value.source?, @@ -16236,7 +16464,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct FleetRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for FleetRolePolicy { @@ -16250,7 +16481,7 @@ pub mod types { impl FleetRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -16263,9 +16494,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FleetRolePolicy { + impl ::std::convert::TryFrom for super::FleetRolePolicy { type Error = super::error::ConversionError; - fn try_from(value: FleetRolePolicy) -> Result { + fn try_from( + value: FleetRolePolicy, + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -16282,9 +16515,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct FleetRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for FleetRoleRoleAssignment { @@ -16330,11 +16563,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FleetRoleRoleAssignment { + impl ::std::convert::TryFrom for super::FleetRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: FleetRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -16355,17 +16588,23 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalImage { - block_size: Result, - description: Result, - digest: Result, String>, - distribution: Result, - id: Result, - name: Result, - size: Result, - time_created: Result, String>, - time_modified: Result, String>, - url: Result, String>, - version: Result, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + digest: + ::std::result::Result<::std::option::Option, ::std::string::String>, + distribution: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + size: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + url: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + version: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for GlobalImage { @@ -16399,7 +16638,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -16409,7 +16648,7 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.digest = value @@ -16419,7 +16658,7 @@ pub mod types { } pub fn distribution(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.distribution = value.try_into().map_err(|e| { @@ -16479,7 +16718,7 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.url = value @@ -16489,7 +16728,7 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.version = value @@ -16499,9 +16738,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalImage { + impl ::std::convert::TryFrom for super::GlobalImage { type Error = super::error::ConversionError; - fn try_from(value: GlobalImage) -> Result { + fn try_from( + value: GlobalImage, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -16538,11 +16779,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalImageCreate { - block_size: Result, - description: Result, - distribution: Result, - name: Result, - source: Result, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + distribution: ::std::result::Result, + name: ::std::result::Result, + source: ::std::result::Result, } impl Default for GlobalImageCreate { @@ -16570,7 +16811,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -16610,9 +16851,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalImageCreate { + impl ::std::convert::TryFrom for super::GlobalImageCreate { type Error = super::error::ConversionError; - fn try_from(value: GlobalImageCreate) -> Result { + fn try_from( + value: GlobalImageCreate, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -16637,8 +16880,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct GlobalImageResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for GlobalImageResultsPage { @@ -16653,7 +16900,7 @@ pub mod types { impl GlobalImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -16663,7 +16910,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -16673,11 +16920,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GlobalImageResultsPage { + impl ::std::convert::TryFrom for super::GlobalImageResultsPage { type Error = super::error::ConversionError; fn try_from( value: GlobalImageResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -16696,9 +16943,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Group { - display_name: Result, - id: Result, - silo_id: Result, + display_name: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + silo_id: ::std::result::Result, } impl Default for Group { @@ -16714,7 +16961,7 @@ pub mod types { impl Group { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { @@ -16744,9 +16991,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Group { + impl ::std::convert::TryFrom for super::Group { type Error = super::error::ConversionError; - fn try_from(value: Group) -> Result { + fn try_from( + value: Group, + ) -> ::std::result::Result { Ok(Self { display_name: value.display_name?, id: value.id?, @@ -16767,8 +17016,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct GroupResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for GroupResultsPage { @@ -16783,7 +17035,7 @@ pub mod types { impl GroupResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -16793,7 +17045,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -16803,9 +17055,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::GroupResultsPage { + impl ::std::convert::TryFrom for super::GroupResultsPage { type Error = super::error::ConversionError; - fn try_from(value: GroupResultsPage) -> Result { + fn try_from( + value: GroupResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -16824,9 +17078,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramdouble { - bins: Result, String>, - n_samples: Result, - start_time: Result, String>, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + n_samples: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, } impl Default for Histogramdouble { @@ -16842,7 +17097,7 @@ pub mod types { impl Histogramdouble { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.bins = value @@ -16872,9 +17127,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramdouble { + impl ::std::convert::TryFrom for super::Histogramdouble { type Error = super::error::ConversionError; - fn try_from(value: Histogramdouble) -> Result { + fn try_from( + value: Histogramdouble, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, n_samples: value.n_samples?, @@ -16895,9 +17152,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramint64 { - bins: Result, String>, - n_samples: Result, - start_time: Result, String>, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + n_samples: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, } impl Default for Histogramint64 { @@ -16913,7 +17171,7 @@ pub mod types { impl Histogramint64 { pub fn bins(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.bins = value @@ -16943,9 +17201,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramint64 { + impl ::std::convert::TryFrom for super::Histogramint64 { type Error = super::error::ConversionError; - fn try_from(value: Histogramint64) -> Result { + fn try_from( + value: Histogramint64, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, n_samples: value.n_samples?, @@ -16966,12 +17226,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct IdentityProvider { - description: Result, - id: Result, - name: Result, - provider_type: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + provider_type: + ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for IdentityProvider { @@ -16990,7 +17253,7 @@ pub mod types { impl IdentityProvider { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17050,9 +17313,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IdentityProvider { + impl ::std::convert::TryFrom for super::IdentityProvider { type Error = super::error::ConversionError; - fn try_from(value: IdentityProvider) -> Result { + fn try_from( + value: IdentityProvider, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -17079,8 +17344,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct IdentityProviderResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for IdentityProviderResultsPage { @@ -17095,7 +17366,7 @@ pub mod types { impl IdentityProviderResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17105,7 +17376,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17115,11 +17386,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IdentityProviderResultsPage { + impl ::std::convert::TryFrom for super::IdentityProviderResultsPage { type Error = super::error::ConversionError; fn try_from( value: IdentityProviderResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17138,17 +17409,26 @@ pub mod types { #[derive(Clone, Debug)] pub struct Image { - block_size: Result, - description: Result, - digest: Result, String>, - id: Result, - name: Result, - project_id: Result, - size: Result, - time_created: Result, String>, - time_modified: Result, String>, - url: Result, String>, - version: Result, String>, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + digest: + ::std::result::Result<::std::option::Option, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + size: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + url: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + version: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for Image { @@ -17182,7 +17462,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17192,7 +17472,7 @@ pub mod types { } pub fn digest(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.digest = value @@ -17262,7 +17542,7 @@ pub mod types { } pub fn url(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.url = value @@ -17272,7 +17552,7 @@ pub mod types { } pub fn version(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.version = value @@ -17282,9 +17562,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Image { + impl ::std::convert::TryFrom for super::Image { type Error = super::error::ConversionError; - fn try_from(value: Image) -> Result { + fn try_from( + value: Image, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -17321,10 +17603,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ImageCreate { - block_size: Result, - description: Result, - name: Result, - source: Result, + block_size: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + source: ::std::result::Result, } impl Default for ImageCreate { @@ -17351,7 +17633,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17381,9 +17663,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ImageCreate { + impl ::std::convert::TryFrom for super::ImageCreate { type Error = super::error::ConversionError; - fn try_from(value: ImageCreate) -> Result { + fn try_from( + value: ImageCreate, + ) -> ::std::result::Result { Ok(Self { block_size: value.block_size?, description: value.description?, @@ -17406,8 +17690,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ImageResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ImageResultsPage { @@ -17422,7 +17709,7 @@ pub mod types { impl ImageResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17432,7 +17719,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17442,9 +17729,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ImageResultsPage { + impl ::std::convert::TryFrom for super::ImageResultsPage { type Error = super::error::ConversionError; - fn try_from(value: ImageResultsPage) -> Result { + fn try_from( + value: ImageResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17463,17 +17752,20 @@ pub mod types { #[derive(Clone, Debug)] pub struct Instance { - description: Result, - hostname: Result, - id: Result, - memory: Result, - name: Result, - ncpus: Result, - project_id: Result, - run_state: Result, - time_created: Result, String>, - time_modified: Result, String>, - time_run_state_updated: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + hostname: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + memory: ::std::result::Result, + name: ::std::result::Result, + ncpus: ::std::result::Result, + project_id: ::std::result::Result, + run_state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + time_run_state_updated: + ::std::result::Result, ::std::string::String>, } impl Default for Instance { @@ -17499,7 +17791,7 @@ pub mod types { impl Instance { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17509,7 +17801,7 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.hostname = value @@ -17612,9 +17904,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Instance { + impl ::std::convert::TryFrom for super::Instance { type Error = super::error::ConversionError; - fn try_from(value: Instance) -> Result { + fn try_from( + value: Instance, + ) -> ::std::result::Result { Ok(Self { description: value.description?, hostname: value.hostname?, @@ -17651,16 +17945,25 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceCreate { - description: Result, - disks: Result, String>, - external_ips: Result, String>, - hostname: Result, - memory: Result, - name: Result, - ncpus: Result, - network_interfaces: Result, - start: Result, - user_data: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disks: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + external_ips: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + hostname: ::std::result::Result<::std::string::String, ::std::string::String>, + memory: ::std::result::Result, + name: ::std::result::Result, + ncpus: ::std::result::Result, + network_interfaces: ::std::result::Result< + super::InstanceNetworkInterfaceAttachment, + ::std::string::String, + >, + start: ::std::result::Result, + user_data: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for InstanceCreate { @@ -17683,7 +17986,7 @@ pub mod types { impl InstanceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -17693,7 +17996,7 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.disks = value @@ -17703,7 +18006,7 @@ pub mod types { } pub fn external_ips(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.external_ips = value.try_into().map_err(|e| { @@ -17713,7 +18016,7 @@ pub mod types { } pub fn hostname(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.hostname = value @@ -17776,7 +18079,7 @@ pub mod types { } pub fn user_data(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.user_data = value @@ -17786,9 +18089,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceCreate { + impl ::std::convert::TryFrom for super::InstanceCreate { type Error = super::error::ConversionError; - fn try_from(value: InstanceCreate) -> Result { + fn try_from( + value: InstanceCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disks: value.disks?, @@ -17823,7 +18128,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrate { - dst_sled_id: Result, + dst_sled_id: ::std::result::Result, } impl Default for InstanceMigrate { @@ -17847,9 +18152,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceMigrate { + impl ::std::convert::TryFrom for super::InstanceMigrate { type Error = super::error::ConversionError; - fn try_from(value: InstanceMigrate) -> Result { + fn try_from( + value: InstanceMigrate, + ) -> ::std::result::Result { Ok(Self { dst_sled_id: value.dst_sled_id?, }) @@ -17866,8 +18173,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for InstanceResultsPage { @@ -17882,7 +18192,7 @@ pub mod types { impl InstanceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -17892,7 +18202,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -17902,9 +18212,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceResultsPage { + impl ::std::convert::TryFrom for super::InstanceResultsPage { type Error = super::error::ConversionError; - fn try_from(value: InstanceResultsPage) -> Result { + fn try_from( + value: InstanceResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -17923,8 +18235,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceSerialConsoleData { - data: Result, String>, - last_byte_offset: Result, + data: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + last_byte_offset: ::std::result::Result, } impl Default for InstanceSerialConsoleData { @@ -17939,7 +18251,7 @@ pub mod types { impl InstanceSerialConsoleData { pub fn data(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.data = value @@ -17962,11 +18274,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceSerialConsoleData { + impl ::std::convert::TryFrom for super::InstanceSerialConsoleData { type Error = super::error::ConversionError; fn try_from( value: InstanceSerialConsoleData, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { data: value.data?, last_byte_offset: value.last_byte_offset?, @@ -17985,11 +18297,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPool { - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for IpPool { @@ -18007,7 +18321,7 @@ pub mod types { impl IpPool { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18057,9 +18371,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPool { + impl ::std::convert::TryFrom for super::IpPool { type Error = super::error::ConversionError; - fn try_from(value: IpPool) -> Result { + fn try_from( + value: IpPool, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -18084,8 +18400,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for IpPoolCreate { @@ -18100,7 +18416,7 @@ pub mod types { impl IpPoolCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18120,9 +18436,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolCreate { + impl ::std::convert::TryFrom for super::IpPoolCreate { type Error = super::error::ConversionError; - fn try_from(value: IpPoolCreate) -> Result { + fn try_from( + value: IpPoolCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -18141,9 +18459,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRange { - id: Result, - range: Result, - time_created: Result, String>, + id: ::std::result::Result, + range: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, } impl Default for IpPoolRange { @@ -18189,9 +18508,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolRange { + impl ::std::convert::TryFrom for super::IpPoolRange { type Error = super::error::ConversionError; - fn try_from(value: IpPoolRange) -> Result { + fn try_from( + value: IpPoolRange, + ) -> ::std::result::Result { Ok(Self { id: value.id?, range: value.range?, @@ -18212,8 +18533,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRangeResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for IpPoolRangeResultsPage { @@ -18228,7 +18553,7 @@ pub mod types { impl IpPoolRangeResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18238,7 +18563,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18248,11 +18573,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolRangeResultsPage { + impl ::std::convert::TryFrom for super::IpPoolRangeResultsPage { type Error = super::error::ConversionError; fn try_from( value: IpPoolRangeResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18271,8 +18596,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for IpPoolResultsPage { @@ -18287,7 +18615,7 @@ pub mod types { impl IpPoolResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18297,7 +18625,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18307,9 +18635,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolResultsPage { + impl ::std::convert::TryFrom for super::IpPoolResultsPage { type Error = super::error::ConversionError; - fn try_from(value: IpPoolResultsPage) -> Result { + fn try_from( + value: IpPoolResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18328,8 +18658,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for IpPoolUpdate { @@ -18344,7 +18677,7 @@ pub mod types { impl IpPoolUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -18354,7 +18687,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -18364,9 +18697,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolUpdate { + impl ::std::convert::TryFrom for super::IpPoolUpdate { type Error = super::error::ConversionError; - fn try_from(value: IpPoolUpdate) -> Result { + fn try_from( + value: IpPoolUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -18385,8 +18720,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv4Range { - first: Result, - last: Result, + first: ::std::result::Result, + last: ::std::result::Result, } impl Default for Ipv4Range { @@ -18421,9 +18756,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ipv4Range { + impl ::std::convert::TryFrom for super::Ipv4Range { type Error = super::error::ConversionError; - fn try_from(value: Ipv4Range) -> Result { + fn try_from( + value: Ipv4Range, + ) -> ::std::result::Result { Ok(Self { first: value.first?, last: value.last?, @@ -18442,8 +18779,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv6Range { - first: Result, - last: Result, + first: ::std::result::Result, + last: ::std::result::Result, } impl Default for Ipv6Range { @@ -18478,9 +18815,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ipv6Range { + impl ::std::convert::TryFrom for super::Ipv6Range { type Error = super::error::ConversionError; - fn try_from(value: Ipv6Range) -> Result { + fn try_from( + value: Ipv6Range, + ) -> ::std::result::Result { Ok(Self { first: value.first?, last: value.last?, @@ -18499,8 +18838,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Measurement { - datum: Result, - timestamp: Result, String>, + datum: ::std::result::Result, + timestamp: + ::std::result::Result, ::std::string::String>, } impl Default for Measurement { @@ -18535,9 +18875,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Measurement { + impl ::std::convert::TryFrom for super::Measurement { type Error = super::error::ConversionError; - fn try_from(value: Measurement) -> Result { + fn try_from( + value: Measurement, + ) -> ::std::result::Result { Ok(Self { datum: value.datum?, timestamp: value.timestamp?, @@ -18556,8 +18898,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct MeasurementResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for MeasurementResultsPage { @@ -18572,7 +18918,7 @@ pub mod types { impl MeasurementResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18582,7 +18928,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18592,11 +18938,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::MeasurementResultsPage { + impl ::std::convert::TryFrom for super::MeasurementResultsPage { type Error = super::error::ConversionError; fn try_from( value: MeasurementResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18615,17 +18961,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { - description: Result, - id: Result, - instance_id: Result, - ip: Result, - mac: Result, - name: Result, - primary: Result, - subnet_id: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + instance_id: ::std::result::Result, + ip: ::std::result::Result, + mac: ::std::result::Result, + name: ::std::result::Result, + primary: ::std::result::Result, + subnet_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for NetworkInterface { @@ -18649,7 +18997,7 @@ pub mod types { impl NetworkInterface { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18759,9 +19107,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterface { + impl ::std::convert::TryFrom for super::NetworkInterface { type Error = super::error::ConversionError; - fn try_from(value: NetworkInterface) -> Result { + fn try_from( + value: NetworkInterface, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -18798,11 +19148,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceCreate { - description: Result, - ip: Result, String>, - name: Result, - subnet_name: Result, - vpc_name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ip: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + name: ::std::result::Result, + subnet_name: ::std::result::Result, + vpc_name: ::std::result::Result, } impl Default for NetworkInterfaceCreate { @@ -18820,7 +19173,7 @@ pub mod types { impl NetworkInterfaceCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -18830,7 +19183,7 @@ pub mod types { } pub fn ip(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ip = value @@ -18870,11 +19223,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceCreate { + impl ::std::convert::TryFrom for super::NetworkInterfaceCreate { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, ip: value.ip?, @@ -18899,8 +19252,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for NetworkInterfaceResultsPage { @@ -18915,7 +19274,7 @@ pub mod types { impl NetworkInterfaceResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -18925,7 +19284,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -18935,11 +19294,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceResultsPage { + impl ::std::convert::TryFrom for super::NetworkInterfaceResultsPage { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -18958,9 +19317,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceUpdate { - description: Result, String>, - name: Result, String>, - primary: Result, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, + primary: ::std::result::Result, } impl Default for NetworkInterfaceUpdate { @@ -18976,7 +19338,7 @@ pub mod types { impl NetworkInterfaceUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -18986,7 +19348,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -19006,11 +19368,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceUpdate { + impl ::std::convert::TryFrom for super::NetworkInterfaceUpdate { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceUpdate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19031,11 +19393,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct Organization { - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Organization { @@ -19053,7 +19417,7 @@ pub mod types { impl Organization { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19103,9 +19467,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Organization { + impl ::std::convert::TryFrom for super::Organization { type Error = super::error::ConversionError; - fn try_from(value: Organization) -> Result { + fn try_from( + value: Organization, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -19130,8 +19496,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for OrganizationCreate { @@ -19146,7 +19512,7 @@ pub mod types { impl OrganizationCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19166,9 +19532,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationCreate { + impl ::std::convert::TryFrom for super::OrganizationCreate { type Error = super::error::ConversionError; - fn try_from(value: OrganizationCreate) -> Result { + fn try_from( + value: OrganizationCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19187,8 +19555,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for OrganizationResultsPage { @@ -19203,7 +19575,7 @@ pub mod types { impl OrganizationResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -19213,7 +19585,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -19223,11 +19595,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationResultsPage { + impl ::std::convert::TryFrom for super::OrganizationResultsPage { type Error = super::error::ConversionError; fn try_from( value: OrganizationResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -19246,7 +19618,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for OrganizationRolePolicy { @@ -19260,7 +19635,7 @@ pub mod types { impl OrganizationRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -19273,11 +19648,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationRolePolicy { + impl ::std::convert::TryFrom for super::OrganizationRolePolicy { type Error = super::error::ConversionError; fn try_from( value: OrganizationRolePolicy, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -19294,9 +19669,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for OrganizationRoleRoleAssignment { @@ -19342,13 +19717,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::OrganizationRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: OrganizationRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -19369,8 +19744,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct OrganizationUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for OrganizationUpdate { @@ -19385,7 +19763,7 @@ pub mod types { impl OrganizationUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -19395,7 +19773,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -19405,9 +19783,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OrganizationUpdate { + impl ::std::convert::TryFrom for super::OrganizationUpdate { type Error = super::error::ConversionError; - fn try_from(value: OrganizationUpdate) -> Result { + fn try_from( + value: OrganizationUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19426,14 +19806,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDisk { - disk_type: Result, - id: Result, - model: Result, - serial: Result, - sled_id: Result, String>, - time_created: Result, String>, - time_modified: Result, String>, - vendor: Result, + disk_type: ::std::result::Result, + id: ::std::result::Result, + model: ::std::result::Result<::std::string::String, ::std::string::String>, + serial: ::std::result::Result<::std::string::String, ::std::string::String>, + sled_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for PhysicalDisk { @@ -19474,7 +19857,7 @@ pub mod types { } pub fn model(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.model = value @@ -19484,7 +19867,7 @@ pub mod types { } pub fn serial(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.serial = value @@ -19494,7 +19877,7 @@ pub mod types { } pub fn sled_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.sled_id = value @@ -19524,7 +19907,7 @@ pub mod types { } pub fn vendor(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.vendor = value @@ -19534,9 +19917,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::PhysicalDisk { + impl ::std::convert::TryFrom for super::PhysicalDisk { type Error = super::error::ConversionError; - fn try_from(value: PhysicalDisk) -> Result { + fn try_from( + value: PhysicalDisk, + ) -> ::std::result::Result { Ok(Self { disk_type: value.disk_type?, id: value.id?, @@ -19567,8 +19952,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDiskResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for PhysicalDiskResultsPage { @@ -19583,7 +19972,7 @@ pub mod types { impl PhysicalDiskResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -19593,7 +19982,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -19603,11 +19992,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::PhysicalDiskResultsPage { + impl ::std::convert::TryFrom for super::PhysicalDiskResultsPage { type Error = super::error::ConversionError; fn try_from( value: PhysicalDiskResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -19626,12 +20015,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Project { - description: Result, - id: Result, - name: Result, - organization_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + organization_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Project { @@ -19650,7 +20041,7 @@ pub mod types { impl Project { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19710,9 +20101,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Project { + impl ::std::convert::TryFrom for super::Project { type Error = super::error::ConversionError; - fn try_from(value: Project) -> Result { + fn try_from( + value: Project, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -19739,8 +20132,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for ProjectCreate { @@ -19755,7 +20148,7 @@ pub mod types { impl ProjectCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -19775,9 +20168,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectCreate { + impl ::std::convert::TryFrom for super::ProjectCreate { type Error = super::error::ConversionError; - fn try_from(value: ProjectCreate) -> Result { + fn try_from( + value: ProjectCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -19796,8 +20191,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for ProjectResultsPage { @@ -19812,7 +20210,7 @@ pub mod types { impl ProjectResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -19822,7 +20220,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -19832,9 +20230,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectResultsPage { + impl ::std::convert::TryFrom for super::ProjectResultsPage { type Error = super::error::ConversionError; - fn try_from(value: ProjectResultsPage) -> Result { + fn try_from( + value: ProjectResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -19853,7 +20253,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for ProjectRolePolicy { @@ -19867,7 +20270,7 @@ pub mod types { impl ProjectRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -19880,9 +20283,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectRolePolicy { + impl ::std::convert::TryFrom for super::ProjectRolePolicy { type Error = super::error::ConversionError; - fn try_from(value: ProjectRolePolicy) -> Result { + fn try_from( + value: ProjectRolePolicy, + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -19899,9 +20304,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for ProjectRoleRoleAssignment { @@ -19947,11 +20352,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectRoleRoleAssignment { + impl ::std::convert::TryFrom for super::ProjectRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: ProjectRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -19972,8 +20377,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProjectUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for ProjectUpdate { @@ -19988,7 +20396,7 @@ pub mod types { impl ProjectUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -19998,7 +20406,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -20008,9 +20416,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProjectUpdate { + impl ::std::convert::TryFrom for super::ProjectUpdate { type Error = super::error::ConversionError; - fn try_from(value: ProjectUpdate) -> Result { + fn try_from( + value: ProjectUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -20029,9 +20439,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct Rack { - id: Result, - time_created: Result, String>, - time_modified: Result, String>, + id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Rack { @@ -20077,9 +20489,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Rack { + impl ::std::convert::TryFrom for super::Rack { type Error = super::error::ConversionError; - fn try_from(value: Rack) -> Result { + fn try_from(value: Rack) -> ::std::result::Result { Ok(Self { id: value.id?, time_created: value.time_created?, @@ -20100,8 +20512,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct RackResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for RackResultsPage { @@ -20116,7 +20531,7 @@ pub mod types { impl RackResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20126,7 +20541,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20136,9 +20551,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RackResultsPage { + impl ::std::convert::TryFrom for super::RackResultsPage { type Error = super::error::ConversionError; - fn try_from(value: RackResultsPage) -> Result { + fn try_from( + value: RackResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20157,8 +20574,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Role { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for Role { @@ -20173,7 +20590,7 @@ pub mod types { impl Role { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20193,9 +20610,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Role { + impl ::std::convert::TryFrom for super::Role { type Error = super::error::ConversionError; - fn try_from(value: Role) -> Result { + fn try_from(value: Role) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -20214,8 +20631,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct RoleResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for RoleResultsPage { @@ -20230,7 +20650,7 @@ pub mod types { impl RoleResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20240,7 +20660,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20250,9 +20670,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RoleResultsPage { + impl ::std::convert::TryFrom for super::RoleResultsPage { type Error = super::error::ConversionError; - fn try_from(value: RoleResultsPage) -> Result { + fn try_from( + value: RoleResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20271,15 +20693,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRoute { - description: Result, - destination: Result, - id: Result, - kind: Result, - name: Result, - target: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_router_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + destination: ::std::result::Result, + id: ::std::result::Result, + kind: ::std::result::Result, + name: ::std::result::Result, + target: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_router_id: ::std::result::Result, } impl Default for RouterRoute { @@ -20301,7 +20725,7 @@ pub mod types { impl RouterRoute { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20391,9 +20815,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRoute { + impl ::std::convert::TryFrom for super::RouterRoute { type Error = super::error::ConversionError; - fn try_from(value: RouterRoute) -> Result { + fn try_from( + value: RouterRoute, + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -20426,10 +20852,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteCreateParams { - description: Result, - destination: Result, - name: Result, - target: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + destination: ::std::result::Result, + name: ::std::result::Result, + target: ::std::result::Result, } impl Default for RouterRouteCreateParams { @@ -20446,7 +20872,7 @@ pub mod types { impl RouterRouteCreateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20486,11 +20912,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteCreateParams { + impl ::std::convert::TryFrom for super::RouterRouteCreateParams { type Error = super::error::ConversionError; fn try_from( value: RouterRouteCreateParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -20513,8 +20939,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for RouterRouteResultsPage { @@ -20529,7 +20959,7 @@ pub mod types { impl RouterRouteResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20539,7 +20969,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20549,11 +20979,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteResultsPage { + impl ::std::convert::TryFrom for super::RouterRouteResultsPage { type Error = super::error::ConversionError; fn try_from( value: RouterRouteResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20572,10 +21002,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteUpdateParams { - description: Result, String>, - destination: Result, - name: Result, String>, - target: Result, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + destination: ::std::result::Result, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, + target: ::std::result::Result, } impl Default for RouterRouteUpdateParams { @@ -20592,7 +21025,7 @@ pub mod types { impl RouterRouteUpdateParams { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -20612,7 +21045,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -20632,11 +21065,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteUpdateParams { + impl ::std::convert::TryFrom for super::RouterRouteUpdateParams { type Error = super::error::ConversionError; fn try_from( value: RouterRouteUpdateParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -20659,8 +21092,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Saga { - id: Result, - state: Result, + id: ::std::result::Result, + state: ::std::result::Result, } impl Default for Saga { @@ -20695,9 +21128,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Saga { + impl ::std::convert::TryFrom for super::Saga { type Error = super::error::ConversionError; - fn try_from(value: Saga) -> Result { + fn try_from(value: Saga) -> ::std::result::Result { Ok(Self { id: value.id?, state: value.state?, @@ -20716,8 +21149,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SagaResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SagaResultsPage { @@ -20732,7 +21168,7 @@ pub mod types { impl SagaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -20742,7 +21178,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -20752,9 +21188,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SagaResultsPage { + impl ::std::convert::TryFrom for super::SagaResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SagaResultsPage) -> Result { + fn try_from( + value: SagaResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -20773,17 +21211,23 @@ pub mod types { #[derive(Clone, Debug)] pub struct SamlIdentityProvider { - acs_url: Result, - description: Result, - id: Result, - idp_entity_id: Result, - name: Result, - public_cert: Result, String>, - slo_url: Result, - sp_client_id: Result, - technical_contact_email: Result, - time_created: Result, String>, - time_modified: Result, String>, + acs_url: ::std::result::Result<::std::string::String, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + idp_entity_id: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + public_cert: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + slo_url: ::std::result::Result<::std::string::String, ::std::string::String>, + sp_client_id: ::std::result::Result<::std::string::String, ::std::string::String>, + technical_contact_email: + ::std::result::Result<::std::string::String, ::std::string::String>, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for SamlIdentityProvider { @@ -20809,7 +21253,7 @@ pub mod types { impl SamlIdentityProvider { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.acs_url = value @@ -20819,7 +21263,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -20839,7 +21283,7 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { @@ -20859,7 +21303,7 @@ pub mod types { } pub fn public_cert(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.public_cert = value @@ -20869,7 +21313,7 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.slo_url = value @@ -20879,7 +21323,7 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { @@ -20889,7 +21333,7 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { @@ -20922,11 +21366,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SamlIdentityProvider { + impl ::std::convert::TryFrom for super::SamlIdentityProvider { type Error = super::error::ConversionError; fn try_from( value: SamlIdentityProvider, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { acs_url: value.acs_url?, description: value.description?, @@ -20963,16 +21407,24 @@ pub mod types { #[derive(Clone, Debug)] pub struct SamlIdentityProviderCreate { - acs_url: Result, - description: Result, - group_attribute_name: Result, String>, - idp_entity_id: Result, - idp_metadata_source: Result, - name: Result, - signing_keypair: Result, String>, - slo_url: Result, - sp_client_id: Result, - technical_contact_email: Result, + acs_url: ::std::result::Result<::std::string::String, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + group_attribute_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + idp_entity_id: ::std::result::Result<::std::string::String, ::std::string::String>, + idp_metadata_source: + ::std::result::Result, + name: ::std::result::Result, + signing_keypair: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + slo_url: ::std::result::Result<::std::string::String, ::std::string::String>, + sp_client_id: ::std::result::Result<::std::string::String, ::std::string::String>, + technical_contact_email: + ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SamlIdentityProviderCreate { @@ -20999,7 +21451,7 @@ pub mod types { impl SamlIdentityProviderCreate { pub fn acs_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.acs_url = value @@ -21009,7 +21461,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21019,7 +21471,7 @@ pub mod types { } pub fn group_attribute_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -21032,7 +21484,7 @@ pub mod types { } pub fn idp_entity_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.idp_entity_id = value.try_into().map_err(|e| { @@ -21065,7 +21517,7 @@ pub mod types { } pub fn signing_keypair(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.signing_keypair = value.try_into().map_err(|e| { @@ -21075,7 +21527,7 @@ pub mod types { } pub fn slo_url(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.slo_url = value @@ -21085,7 +21537,7 @@ pub mod types { } pub fn sp_client_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.sp_client_id = value.try_into().map_err(|e| { @@ -21095,7 +21547,7 @@ pub mod types { } pub fn technical_contact_email(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.technical_contact_email = value.try_into().map_err(|e| { @@ -21108,11 +21560,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SamlIdentityProviderCreate { + impl ::std::convert::TryFrom for super::SamlIdentityProviderCreate { type Error = super::error::ConversionError; fn try_from( value: SamlIdentityProviderCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { acs_url: value.acs_url?, description: value.description?, @@ -21147,13 +21599,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct Silo { - description: Result, - discoverable: Result, - id: Result, - identity_mode: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + discoverable: ::std::result::Result, + id: ::std::result::Result, + identity_mode: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Silo { @@ -21173,7 +21627,7 @@ pub mod types { impl Silo { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21243,9 +21697,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Silo { + impl ::std::convert::TryFrom for super::Silo { type Error = super::error::ConversionError; - fn try_from(value: Silo) -> Result { + fn try_from(value: Silo) -> ::std::result::Result { Ok(Self { description: value.description?, discoverable: value.discoverable?, @@ -21274,11 +21728,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloCreate { - admin_group_name: Result, String>, - description: Result, - discoverable: Result, - identity_mode: Result, - name: Result, + admin_group_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + discoverable: ::std::result::Result, + identity_mode: ::std::result::Result, + name: ::std::result::Result, } impl Default for SiloCreate { @@ -21296,7 +21753,7 @@ pub mod types { impl SiloCreate { pub fn admin_group_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -21309,7 +21766,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21349,9 +21806,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloCreate { + impl ::std::convert::TryFrom for super::SiloCreate { type Error = super::error::ConversionError; - fn try_from(value: SiloCreate) -> Result { + fn try_from( + value: SiloCreate, + ) -> ::std::result::Result { Ok(Self { admin_group_name: value.admin_group_name?, description: value.description?, @@ -21376,8 +21835,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SiloResultsPage { @@ -21392,7 +21854,7 @@ pub mod types { impl SiloResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -21402,7 +21864,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -21412,9 +21874,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloResultsPage { + impl ::std::convert::TryFrom for super::SiloResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SiloResultsPage) -> Result { + fn try_from( + value: SiloResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -21433,7 +21897,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloRolePolicy { - role_assignments: Result, String>, + role_assignments: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for SiloRolePolicy { @@ -21447,7 +21914,7 @@ pub mod types { impl SiloRolePolicy { pub fn role_assignments(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.role_assignments = value.try_into().map_err(|e| { @@ -21460,9 +21927,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloRolePolicy { + impl ::std::convert::TryFrom for super::SiloRolePolicy { type Error = super::error::ConversionError; - fn try_from(value: SiloRolePolicy) -> Result { + fn try_from( + value: SiloRolePolicy, + ) -> ::std::result::Result { Ok(Self { role_assignments: value.role_assignments?, }) @@ -21479,9 +21948,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloRoleRoleAssignment { - identity_id: Result, - identity_type: Result, - role_name: Result, + identity_id: ::std::result::Result, + identity_type: ::std::result::Result, + role_name: ::std::result::Result, } impl Default for SiloRoleRoleAssignment { @@ -21527,11 +21996,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloRoleRoleAssignment { + impl ::std::convert::TryFrom for super::SiloRoleRoleAssignment { type Error = super::error::ConversionError; fn try_from( value: SiloRoleRoleAssignment, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { identity_id: value.identity_id?, identity_type: value.identity_type?, @@ -21552,11 +22021,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct Sled { - baseboard: Result, - id: Result, - service_address: Result, - time_created: Result, String>, - time_modified: Result, String>, + baseboard: ::std::result::Result, + id: ::std::result::Result, + service_address: ::std::result::Result<::std::string::String, ::std::string::String>, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Sled { @@ -21594,7 +22065,7 @@ pub mod types { } pub fn service_address(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.service_address = value.try_into().map_err(|e| { @@ -21624,9 +22095,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Sled { + impl ::std::convert::TryFrom for super::Sled { type Error = super::error::ConversionError; - fn try_from(value: Sled) -> Result { + fn try_from(value: Sled) -> ::std::result::Result { Ok(Self { baseboard: value.baseboard?, id: value.id?, @@ -21651,8 +22122,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SledResultsPage { @@ -21667,7 +22141,7 @@ pub mod types { impl SledResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -21677,7 +22151,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -21687,9 +22161,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledResultsPage { + impl ::std::convert::TryFrom for super::SledResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SledResultsPage) -> Result { + fn try_from( + value: SledResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -21708,15 +22184,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Snapshot { - description: Result, - disk_id: Result, - id: Result, - name: Result, - project_id: Result, - size: Result, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disk_id: ::std::result::Result, + id: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + size: ::std::result::Result, + state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Snapshot { @@ -21738,7 +22216,7 @@ pub mod types { impl Snapshot { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21828,9 +22306,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Snapshot { + impl ::std::convert::TryFrom for super::Snapshot { type Error = super::error::ConversionError; - fn try_from(value: Snapshot) -> Result { + fn try_from( + value: Snapshot, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disk_id: value.disk_id?, @@ -21863,9 +22343,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SnapshotCreate { - description: Result, - disk: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + disk: ::std::result::Result, + name: ::std::result::Result, } impl Default for SnapshotCreate { @@ -21881,7 +22361,7 @@ pub mod types { impl SnapshotCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -21911,9 +22391,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SnapshotCreate { + impl ::std::convert::TryFrom for super::SnapshotCreate { type Error = super::error::ConversionError; - fn try_from(value: SnapshotCreate) -> Result { + fn try_from( + value: SnapshotCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, disk: value.disk?, @@ -21934,8 +22416,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SnapshotResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SnapshotResultsPage { @@ -21950,7 +22435,7 @@ pub mod types { impl SnapshotResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -21960,7 +22445,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -21970,9 +22455,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SnapshotResultsPage { + impl ::std::convert::TryFrom for super::SnapshotResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SnapshotResultsPage) -> Result { + fn try_from( + value: SnapshotResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -21991,7 +22478,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SpoofLoginBody { - username: Result, + username: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SpoofLoginBody { @@ -22005,7 +22492,7 @@ pub mod types { impl SpoofLoginBody { pub fn username(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.username = value @@ -22015,9 +22502,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SpoofLoginBody { + impl ::std::convert::TryFrom for super::SpoofLoginBody { type Error = super::error::ConversionError; - fn try_from(value: SpoofLoginBody) -> Result { + fn try_from( + value: SpoofLoginBody, + ) -> ::std::result::Result { Ok(Self { username: value.username?, }) @@ -22034,13 +22523,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKey { - description: Result, - id: Result, - name: Result, - public_key: Result, - silo_user_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + public_key: ::std::result::Result<::std::string::String, ::std::string::String>, + silo_user_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for SshKey { @@ -22060,7 +22551,7 @@ pub mod types { impl SshKey { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -22090,7 +22581,7 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.public_key = value @@ -22130,9 +22621,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SshKey { + impl ::std::convert::TryFrom for super::SshKey { type Error = super::error::ConversionError; - fn try_from(value: SshKey) -> Result { + fn try_from( + value: SshKey, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -22161,9 +22654,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKeyCreate { - description: Result, - name: Result, - public_key: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + public_key: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SshKeyCreate { @@ -22179,7 +22672,7 @@ pub mod types { impl SshKeyCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -22199,7 +22692,7 @@ pub mod types { } pub fn public_key(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.public_key = value @@ -22209,9 +22702,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SshKeyCreate { + impl ::std::convert::TryFrom for super::SshKeyCreate { type Error = super::error::ConversionError; - fn try_from(value: SshKeyCreate) -> Result { + fn try_from( + value: SshKeyCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -22232,8 +22727,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SshKeyResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SshKeyResultsPage { @@ -22248,7 +22746,7 @@ pub mod types { impl SshKeyResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22258,7 +22756,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22268,9 +22766,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SshKeyResultsPage { + impl ::std::convert::TryFrom for super::SshKeyResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SshKeyResultsPage) -> Result { + fn try_from( + value: SshKeyResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22289,10 +22789,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdate { - id: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for SystemUpdate { @@ -22349,9 +22851,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemUpdate { + impl ::std::convert::TryFrom for super::SystemUpdate { type Error = super::error::ConversionError; - fn try_from(value: SystemUpdate) -> Result { + fn try_from( + value: SystemUpdate, + ) -> ::std::result::Result { Ok(Self { id: value.id?, time_created: value.time_created?, @@ -22374,8 +22878,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdateResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for SystemUpdateResultsPage { @@ -22390,7 +22898,7 @@ pub mod types { impl SystemUpdateResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22400,7 +22908,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22410,11 +22918,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemUpdateResultsPage { + impl ::std::convert::TryFrom for super::SystemUpdateResultsPage { type Error = super::error::ConversionError; fn try_from( value: SystemUpdateResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22433,7 +22941,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemUpdateStart { - version: Result, + version: ::std::result::Result, } impl Default for SystemUpdateStart { @@ -22457,9 +22965,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemUpdateStart { + impl ::std::convert::TryFrom for super::SystemUpdateStart { type Error = super::error::ConversionError; - fn try_from(value: SystemUpdateStart) -> Result { + fn try_from( + value: SystemUpdateStart, + ) -> ::std::result::Result { Ok(Self { version: value.version?, }) @@ -22476,8 +22986,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SystemVersion { - status: Result, - version_range: Result, + status: ::std::result::Result, + version_range: ::std::result::Result, } impl Default for SystemVersion { @@ -22512,9 +23022,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SystemVersion { + impl ::std::convert::TryFrom for super::SystemVersion { type Error = super::error::ConversionError; - fn try_from(value: SystemVersion) -> Result { + fn try_from( + value: SystemVersion, + ) -> ::std::result::Result { Ok(Self { status: value.status?, version_range: value.version_range?, @@ -22533,10 +23045,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchema { - created: Result, String>, - datum_type: Result, - field_schema: Result, String>, - timeseries_name: Result, + created: + ::std::result::Result, ::std::string::String>, + datum_type: ::std::result::Result, + field_schema: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + timeseries_name: ::std::result::Result, } impl Default for TimeseriesSchema { @@ -22573,7 +23087,7 @@ pub mod types { } pub fn field_schema(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.field_schema = value.try_into().map_err(|e| { @@ -22593,9 +23107,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TimeseriesSchema { + impl ::std::convert::TryFrom for super::TimeseriesSchema { type Error = super::error::ConversionError; - fn try_from(value: TimeseriesSchema) -> Result { + fn try_from( + value: TimeseriesSchema, + ) -> ::std::result::Result { Ok(Self { created: value.created?, datum_type: value.datum_type?, @@ -22618,8 +23134,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchemaResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for TimeseriesSchemaResultsPage { @@ -22634,7 +23156,7 @@ pub mod types { impl TimeseriesSchemaResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22644,7 +23166,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22654,11 +23176,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TimeseriesSchemaResultsPage { + impl ::std::convert::TryFrom for super::TimeseriesSchemaResultsPage { type Error = super::error::ConversionError; fn try_from( value: TimeseriesSchemaResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22677,11 +23199,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateDeployment { - id: Result, - status: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + id: ::std::result::Result, + status: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for UpdateDeployment { @@ -22749,9 +23273,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UpdateDeployment { + impl ::std::convert::TryFrom for super::UpdateDeployment { type Error = super::error::ConversionError; - fn try_from(value: UpdateDeployment) -> Result { + fn try_from( + value: UpdateDeployment, + ) -> ::std::result::Result { Ok(Self { id: value.id?, status: value.status?, @@ -22776,8 +23302,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateDeploymentResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UpdateDeploymentResultsPage { @@ -22792,7 +23324,7 @@ pub mod types { impl UpdateDeploymentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -22802,7 +23334,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -22812,11 +23344,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UpdateDeploymentResultsPage { + impl ::std::convert::TryFrom for super::UpdateDeploymentResultsPage { type Error = super::error::ConversionError; fn try_from( value: UpdateDeploymentResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -22835,14 +23367,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateableComponent { - component_type: Result, - device_id: Result, - id: Result, - status: Result, - system_version: Result, - time_created: Result, String>, - time_modified: Result, String>, - version: Result, + component_type: + ::std::result::Result, + device_id: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + status: ::std::result::Result, + system_version: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result, } impl Default for UpdateableComponent { @@ -22873,7 +23408,7 @@ pub mod types { } pub fn device_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device_id = value @@ -22943,9 +23478,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UpdateableComponent { + impl ::std::convert::TryFrom for super::UpdateableComponent { type Error = super::error::ConversionError; - fn try_from(value: UpdateableComponent) -> Result { + fn try_from( + value: UpdateableComponent, + ) -> ::std::result::Result { Ok(Self { component_type: value.component_type?, device_id: value.device_id?, @@ -22976,8 +23513,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct UpdateableComponentResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UpdateableComponentResultsPage { @@ -22992,7 +23535,7 @@ pub mod types { impl UpdateableComponentResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23002,7 +23545,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23012,13 +23555,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::UpdateableComponentResultsPage { type Error = super::error::ConversionError; fn try_from( value: UpdateableComponentResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23037,9 +23580,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct User { - display_name: Result, - id: Result, - silo_id: Result, + display_name: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + silo_id: ::std::result::Result, } impl Default for User { @@ -23055,7 +23598,7 @@ pub mod types { impl User { pub fn display_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.display_name = value.try_into().map_err(|e| { @@ -23085,9 +23628,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::User { + impl ::std::convert::TryFrom for super::User { type Error = super::error::ConversionError; - fn try_from(value: User) -> Result { + fn try_from(value: User) -> ::std::result::Result { Ok(Self { display_name: value.display_name?, id: value.id?, @@ -23108,11 +23651,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserBuiltin { - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for UserBuiltin { @@ -23130,7 +23675,7 @@ pub mod types { impl UserBuiltin { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -23180,9 +23725,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserBuiltin { + impl ::std::convert::TryFrom for super::UserBuiltin { type Error = super::error::ConversionError; - fn try_from(value: UserBuiltin) -> Result { + fn try_from( + value: UserBuiltin, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -23207,8 +23754,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserBuiltinResultsPage { - items: Result, String>, - next_page: Result, String>, + items: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UserBuiltinResultsPage { @@ -23223,7 +23774,7 @@ pub mod types { impl UserBuiltinResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23233,7 +23784,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23243,11 +23794,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserBuiltinResultsPage { + impl ::std::convert::TryFrom for super::UserBuiltinResultsPage { type Error = super::error::ConversionError; fn try_from( value: UserBuiltinResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23266,8 +23817,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserCreate { - external_id: Result, - password: Result, + external_id: ::std::result::Result, + password: ::std::result::Result, } impl Default for UserCreate { @@ -23302,9 +23853,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserCreate { + impl ::std::convert::TryFrom for super::UserCreate { type Error = super::error::ConversionError; - fn try_from(value: UserCreate) -> Result { + fn try_from( + value: UserCreate, + ) -> ::std::result::Result { Ok(Self { external_id: value.external_id?, password: value.password?, @@ -23323,8 +23876,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct UserResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for UserResultsPage { @@ -23339,7 +23895,7 @@ pub mod types { impl UserResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -23349,7 +23905,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -23359,9 +23915,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UserResultsPage { + impl ::std::convert::TryFrom for super::UserResultsPage { type Error = super::error::ConversionError; - fn try_from(value: UserResultsPage) -> Result { + fn try_from( + value: UserResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -23380,8 +23938,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct UsernamePasswordCredentials { - password: Result, - username: Result, + password: ::std::result::Result, + username: ::std::result::Result, } impl Default for UsernamePasswordCredentials { @@ -23416,11 +23974,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UsernamePasswordCredentials { + impl ::std::convert::TryFrom for super::UsernamePasswordCredentials { type Error = super::error::ConversionError; fn try_from( value: UsernamePasswordCredentials, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { password: value.password?, username: value.username?, @@ -23439,8 +23997,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct VersionRange { - high: Result, - low: Result, + high: ::std::result::Result, + low: ::std::result::Result, } impl Default for VersionRange { @@ -23475,9 +24033,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VersionRange { + impl ::std::convert::TryFrom for super::VersionRange { type Error = super::error::ConversionError; - fn try_from(value: VersionRange) -> Result { + fn try_from( + value: VersionRange, + ) -> ::std::result::Result { Ok(Self { high: value.high?, low: value.low?, @@ -23496,15 +24056,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Vpc { - description: Result, - dns_name: Result, - id: Result, - ipv6_prefix: Result, - name: Result, - project_id: Result, - system_router_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + dns_name: ::std::result::Result, + id: ::std::result::Result, + ipv6_prefix: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + system_router_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Vpc { @@ -23526,7 +24088,7 @@ pub mod types { impl Vpc { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -23619,9 +24181,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Vpc { + impl ::std::convert::TryFrom for super::Vpc { type Error = super::error::ConversionError; - fn try_from(value: Vpc) -> Result { + fn try_from(value: Vpc) -> ::std::result::Result { Ok(Self { description: value.description?, dns_name: value.dns_name?, @@ -23654,10 +24216,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcCreate { - description: Result, - dns_name: Result, - ipv6_prefix: Result, String>, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + dns_name: ::std::result::Result, + ipv6_prefix: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, } impl Default for VpcCreate { @@ -23674,7 +24237,7 @@ pub mod types { impl VpcCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -23694,7 +24257,7 @@ pub mod types { } pub fn ipv6_prefix(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ipv6_prefix = value @@ -23714,9 +24277,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcCreate { + impl ::std::convert::TryFrom for super::VpcCreate { type Error = super::error::ConversionError; - fn try_from(value: VpcCreate) -> Result { + fn try_from( + value: VpcCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, dns_name: value.dns_name?, @@ -23739,18 +24304,24 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRule { - action: Result, - description: Result, - direction: Result, - filters: Result, - id: Result, - name: Result, - priority: Result, - status: Result, - targets: Result, String>, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + action: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + direction: + ::std::result::Result, + filters: ::std::result::Result, + id: ::std::result::Result, + name: ::std::result::Result, + priority: ::std::result::Result, + status: ::std::result::Result, + targets: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for VpcFirewallRule { @@ -23785,7 +24356,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -23855,7 +24426,7 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.targets = value @@ -23895,9 +24466,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRule { + impl ::std::convert::TryFrom for super::VpcFirewallRule { type Error = super::error::ConversionError; - fn try_from(value: VpcFirewallRule) -> Result { + fn try_from( + value: VpcFirewallRule, + ) -> ::std::result::Result { Ok(Self { action: value.action?, description: value.description?, @@ -23936,9 +24509,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRuleFilter { - hosts: Result>, String>, - ports: Result>, String>, - protocols: Result>, String>, + hosts: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + ports: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + protocols: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, } impl Default for VpcFirewallRuleFilter { @@ -23954,7 +24536,9 @@ 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, { self.hosts = value @@ -23964,7 +24548,9 @@ 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, { self.ports = value @@ -23974,7 +24560,9 @@ 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, { self.protocols = value @@ -23984,11 +24572,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRuleFilter { + impl ::std::convert::TryFrom for super::VpcFirewallRuleFilter { type Error = super::error::ConversionError; fn try_from( value: VpcFirewallRuleFilter, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { hosts: value.hosts?, ports: value.ports?, @@ -24009,14 +24597,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRuleUpdate { - action: Result, - description: Result, - direction: Result, - filters: Result, - name: Result, - priority: Result, - status: Result, - targets: Result, String>, + action: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + direction: + ::std::result::Result, + filters: ::std::result::Result, + name: ::std::result::Result, + priority: ::std::result::Result, + status: ::std::result::Result, + targets: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for VpcFirewallRuleUpdate { @@ -24047,7 +24639,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24107,7 +24699,7 @@ pub mod types { } pub fn targets(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.targets = value @@ -24117,11 +24709,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRuleUpdate { + impl ::std::convert::TryFrom for super::VpcFirewallRuleUpdate { type Error = super::error::ConversionError; fn try_from( value: VpcFirewallRuleUpdate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { action: value.action?, description: value.description?, @@ -24152,7 +24744,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRuleUpdateParams { - rules: Result, String>, + rules: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for VpcFirewallRuleUpdateParams { @@ -24166,7 +24761,7 @@ pub mod types { impl VpcFirewallRuleUpdateParams { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.rules = value @@ -24176,11 +24771,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRuleUpdateParams { + impl ::std::convert::TryFrom for super::VpcFirewallRuleUpdateParams { type Error = super::error::ConversionError; fn try_from( value: VpcFirewallRuleUpdateParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { rules: value.rules?, }) @@ -24197,7 +24792,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcFirewallRules { - rules: Result, String>, + rules: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for VpcFirewallRules { @@ -24211,7 +24809,7 @@ pub mod types { impl VpcFirewallRules { pub fn rules(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.rules = value @@ -24221,9 +24819,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcFirewallRules { + impl ::std::convert::TryFrom for super::VpcFirewallRules { type Error = super::error::ConversionError; - fn try_from(value: VpcFirewallRules) -> Result { + fn try_from( + value: VpcFirewallRules, + ) -> ::std::result::Result { Ok(Self { rules: value.rules?, }) @@ -24240,8 +24840,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for VpcResultsPage { @@ -24256,7 +24859,7 @@ pub mod types { impl VpcResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -24266,7 +24869,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -24276,9 +24879,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcResultsPage { + impl ::std::convert::TryFrom for super::VpcResultsPage { type Error = super::error::ConversionError; - fn try_from(value: VpcResultsPage) -> Result { + fn try_from( + value: VpcResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -24297,13 +24902,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouter { - description: Result, - id: Result, - kind: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + kind: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for VpcRouter { @@ -24323,7 +24930,7 @@ pub mod types { impl VpcRouter { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24393,9 +25000,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouter { + impl ::std::convert::TryFrom for super::VpcRouter { type Error = super::error::ConversionError; - fn try_from(value: VpcRouter) -> Result { + fn try_from( + value: VpcRouter, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -24424,8 +25033,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouterCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for VpcRouterCreate { @@ -24440,7 +25049,7 @@ pub mod types { impl VpcRouterCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24460,9 +25069,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouterCreate { + impl ::std::convert::TryFrom for super::VpcRouterCreate { type Error = super::error::ConversionError; - fn try_from(value: VpcRouterCreate) -> Result { + fn try_from( + value: VpcRouterCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -24481,8 +25092,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouterResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for VpcRouterResultsPage { @@ -24497,7 +25111,7 @@ pub mod types { impl VpcRouterResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -24507,7 +25121,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -24517,11 +25131,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouterResultsPage { + impl ::std::convert::TryFrom for super::VpcRouterResultsPage { type Error = super::error::ConversionError; fn try_from( value: VpcRouterResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -24540,8 +25154,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcRouterUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for VpcRouterUpdate { @@ -24556,7 +25173,7 @@ pub mod types { impl VpcRouterUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -24566,7 +25183,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -24576,9 +25193,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcRouterUpdate { + impl ::std::convert::TryFrom for super::VpcRouterUpdate { type Error = super::error::ConversionError; - fn try_from(value: VpcRouterUpdate) -> Result { + fn try_from( + value: VpcRouterUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -24597,14 +25216,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnet { - description: Result, - id: Result, - ipv4_block: Result, - ipv6_block: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + ipv4_block: ::std::result::Result, + ipv6_block: ::std::result::Result, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for VpcSubnet { @@ -24625,7 +25246,7 @@ pub mod types { impl VpcSubnet { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24705,9 +25326,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnet { + impl ::std::convert::TryFrom for super::VpcSubnet { type Error = super::error::ConversionError; - fn try_from(value: VpcSubnet) -> Result { + fn try_from( + value: VpcSubnet, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -24738,10 +25361,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetCreate { - description: Result, - ipv4_block: Result, - ipv6_block: Result, String>, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ipv4_block: ::std::result::Result, + ipv6_block: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, } impl Default for VpcSubnetCreate { @@ -24758,7 +25382,7 @@ pub mod types { impl VpcSubnetCreate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -24778,7 +25402,7 @@ pub mod types { } pub fn ipv6_block(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ipv6_block = value @@ -24798,9 +25422,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnetCreate { + impl ::std::convert::TryFrom for super::VpcSubnetCreate { type Error = super::error::ConversionError; - fn try_from(value: VpcSubnetCreate) -> Result { + fn try_from( + value: VpcSubnetCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, ipv4_block: value.ipv4_block?, @@ -24823,8 +25449,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for VpcSubnetResultsPage { @@ -24839,7 +25468,7 @@ pub mod types { impl VpcSubnetResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -24849,7 +25478,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -24859,11 +25488,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnetResultsPage { + impl ::std::convert::TryFrom for super::VpcSubnetResultsPage { type Error = super::error::ConversionError; fn try_from( value: VpcSubnetResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -24882,8 +25511,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetUpdate { - description: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for VpcSubnetUpdate { @@ -24898,7 +25530,7 @@ pub mod types { impl VpcSubnetUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -24908,7 +25540,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -24918,9 +25550,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcSubnetUpdate { + impl ::std::convert::TryFrom for super::VpcSubnetUpdate { type Error = super::error::ConversionError; - fn try_from(value: VpcSubnetUpdate) -> Result { + fn try_from( + value: VpcSubnetUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -24939,9 +25573,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcUpdate { - description: Result, String>, - dns_name: Result, String>, - name: Result, String>, + description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + dns_name: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for VpcUpdate { @@ -24957,7 +25595,7 @@ pub mod types { impl VpcUpdate { pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.description = value @@ -24967,7 +25605,7 @@ pub mod types { } pub fn dns_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.dns_name = value @@ -24977,7 +25615,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.name = value @@ -24987,9 +25625,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VpcUpdate { + impl ::std::convert::TryFrom for super::VpcUpdate { type Error = super::error::ConversionError; - fn try_from(value: VpcUpdate) -> Result { + fn try_from( + value: VpcUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, dns_name: value.dns_name?, @@ -29876,7 +30516,7 @@ pub mod builder { pub struct GroupList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -29902,12 +30542,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -30387,7 +31026,7 @@ pub mod builder { pub struct OrganizationList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -30413,12 +31052,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -30986,7 +31624,7 @@ pub mod builder { client: &'a super::Client, organization_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -31023,12 +31661,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -31510,7 +32147,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -31558,12 +32195,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -31992,7 +32628,7 @@ pub mod builder { metric_name: Result, end_time: Result>, String>, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, start_time: Result>, String>, } @@ -32074,12 +32710,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -32224,7 +32859,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -32272,12 +32907,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -32703,7 +33337,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -32751,12 +33385,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -33186,7 +33819,7 @@ pub mod builder { project_name: Result, instance_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -33245,12 +33878,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -33849,7 +34481,7 @@ pub mod builder { project_name: Result, instance_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -33908,12 +34540,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -35269,7 +35900,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -35317,12 +35948,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -35751,7 +36381,7 @@ pub mod builder { organization_name: Result, project_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -35799,12 +36429,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -36581,7 +37210,7 @@ pub mod builder { project_name: Result, vpc_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -36640,12 +37269,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -37261,7 +37889,7 @@ pub mod builder { vpc_name: Result, router_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -37331,12 +37959,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -38026,7 +38653,7 @@ pub mod builder { project_name: Result, vpc_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -38085,12 +38712,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -38706,7 +39332,7 @@ pub mod builder { vpc_name: Result, subnet_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -38776,12 +39402,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39032,7 +39657,7 @@ pub mod builder { pub struct RoleList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> RoleList<'a> { @@ -39056,12 +39681,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39160,7 +39784,7 @@ pub mod builder { #[derive(Debug, Clone)] pub struct RoleView<'a> { client: &'a super::Client, - role_name: Result, + role_name: Result<::std::string::String, String>, } impl<'a> RoleView<'a> { @@ -39173,11 +39797,11 @@ pub mod builder { pub fn role_name(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.role_name = value - .try_into() - .map_err(|_| "conversion to `String` for role_name failed".to_string()); + self.role_name = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for role_name failed".to_string() + }); self } @@ -39262,7 +39886,7 @@ pub mod builder { pub struct SessionMeGroups<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -39288,12 +39912,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39410,7 +40033,7 @@ pub mod builder { pub struct SessionSshkeyList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -39436,12 +40059,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -39933,7 +40555,7 @@ pub mod builder { pub struct CertificateList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -39959,12 +40581,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40278,7 +40899,7 @@ pub mod builder { pub struct PhysicalDiskList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40304,12 +40925,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40426,7 +41046,7 @@ pub mod builder { pub struct RackList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40452,12 +41072,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40634,7 +41253,7 @@ pub mod builder { pub struct SledList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40660,12 +41279,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -40843,7 +41461,7 @@ pub mod builder { client: &'a super::Client, sled_id: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -40880,12 +41498,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -41008,7 +41625,7 @@ pub mod builder { pub struct SystemImageList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -41034,12 +41651,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -41347,7 +41963,7 @@ pub mod builder { pub struct IpPoolList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -41373,12 +41989,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -41775,7 +42390,7 @@ pub mod builder { client: &'a super::Client, pool_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> IpPoolRangeList<'a> { @@ -41810,12 +42425,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42119,7 +42733,7 @@ pub mod builder { pub struct IpPoolServiceRangeList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> IpPoolServiceRangeList<'a> { @@ -42143,12 +42757,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42365,7 +42978,7 @@ pub mod builder { end_time: Result>, String>, id: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, start_time: Result>, String>, } @@ -42425,12 +43038,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42630,7 +43242,7 @@ pub mod builder { pub struct SagaList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -42656,12 +43268,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -42838,7 +43449,7 @@ pub mod builder { pub struct SiloList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -42864,12 +43475,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -43176,7 +43786,7 @@ pub mod builder { client: &'a super::Client, silo_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -43213,12 +43823,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -43945,7 +44554,7 @@ pub mod builder { client: &'a super::Client, silo_name: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -43982,12 +44591,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44189,7 +44797,7 @@ pub mod builder { pub struct SystemUserList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -44215,12 +44823,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44397,7 +45004,7 @@ pub mod builder { pub struct TimeseriesSchemaGet<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> TimeseriesSchemaGet<'a> { @@ -44421,12 +45028,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44527,7 +45133,7 @@ pub mod builder { pub struct UserList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -44553,12 +45159,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -44676,7 +45281,7 @@ pub mod builder { client: &'a super::Client, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -44716,12 +45321,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -45171,7 +45775,7 @@ pub mod builder { client: &'a super::Client, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -45211,12 +45815,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -45667,7 +46270,7 @@ pub mod builder { instance: Result, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -45718,12 +46321,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -46818,7 +47420,7 @@ pub mod builder { pub struct OrganizationListV1<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -46844,12 +47446,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -47417,7 +48018,7 @@ pub mod builder { client: &'a super::Client, limit: Result, String>, organization: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -47455,12 +48056,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -48147,7 +48747,7 @@ pub mod builder { pub struct SystemComponentVersionList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -48173,12 +48773,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -48297,7 +48896,7 @@ pub mod builder { pub struct UpdateDeploymentsList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -48323,12 +48922,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } @@ -48663,7 +49261,7 @@ pub mod builder { pub struct SystemUpdateList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -48689,12 +49287,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/nexus_cli.rs b/progenitor-impl/tests/output/src/nexus_cli.rs index 802631f1..23d8f6fe 100644 --- a/progenitor-impl/tests/output/src/nexus_cli.rs +++ b/progenitor-impl/tests/output/src/nexus_cli.rs @@ -377,7 +377,7 @@ impl Cli { .arg( ::clap::Arg::new("user-code") .long("user-code") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -413,13 +413,13 @@ impl Cli { .arg( ::clap::Arg::new("device-code") .long("device-code") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("grant-type") .long("grant-type") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -471,7 +471,7 @@ impl Cli { .arg( ::clap::Arg::new("username") .long("username") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -600,7 +600,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -645,7 +645,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -770,7 +770,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -829,7 +829,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -933,7 +933,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -1133,7 +1133,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -1268,13 +1268,13 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("hostname") .long("hostname") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -1319,7 +1319,7 @@ impl Cli { .arg( ::clap::Arg::new("user-data") .long("user-data") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false) .help( "User data for instance initialization systems (such as cloud-init). Must \ @@ -1635,7 +1635,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -1737,7 +1737,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -2086,7 +2086,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -2222,7 +2222,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -2308,7 +2308,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -2487,7 +2487,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -2565,7 +2565,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -2697,7 +2697,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -2787,7 +2787,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -2924,7 +2924,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -3025,7 +3025,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -3191,7 +3191,7 @@ impl Cli { .arg( ::clap::Arg::new("role-name") .long("role-name") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(true) .help("The built-in role's unique name."), ) @@ -3254,7 +3254,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -3266,7 +3266,7 @@ impl Cli { .arg( ::clap::Arg::new("public-key") .long("public-key") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("SSH public key, e.g., `\"ssh-ed25519 AAAAC3NzaC...\"`"), ) @@ -3380,7 +3380,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -3601,7 +3601,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -3689,7 +3689,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -3731,7 +3731,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -3937,7 +3937,7 @@ impl Cli { .arg( ::clap::Arg::new("page-token") .long("page-token") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false) .help("Token returned by previous call to retrieve the subsequent page"), ) @@ -4039,7 +4039,7 @@ impl Cli { .arg( ::clap::Arg::new("admin-group-name") .long("admin-group-name") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false) .help( "If set, this group will be created during Silo creation and granted the \ @@ -4053,7 +4053,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -4251,20 +4251,20 @@ impl Cli { .arg( ::clap::Arg::new("acs-url") .long("acs-url") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("service provider endpoint where the response will be sent"), ) .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("group-attribute-name") .long("group-attribute-name") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false) .help( "If set, SAML attributes with this name will be considered to denote a \ @@ -4275,7 +4275,7 @@ impl Cli { .arg( ::clap::Arg::new("idp-entity-id") .long("idp-entity-id") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("idp's entity id"), ) @@ -4295,21 +4295,21 @@ impl Cli { .arg( ::clap::Arg::new("slo-url") .long("slo-url") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("service provider endpoint where the idp should send log out requests"), ) .arg( ::clap::Arg::new("sp-client-id") .long("sp-client-id") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("sp's client id"), ) .arg( ::clap::Arg::new("technical-contact-email") .long("technical-contact-email") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("customer's technical contact for saml configuration"), ) @@ -4548,7 +4548,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -4681,13 +4681,13 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( ::clap::Arg::new("hostname") .long("hostname") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -4730,7 +4730,7 @@ impl Cli { .arg( ::clap::Arg::new("user-data") .long("user-data") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false) .help( "User data for instance initialization systems (such as cloud-init). Must \ @@ -5152,7 +5152,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -5194,7 +5194,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -5309,7 +5309,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -5363,7 +5363,7 @@ impl Cli { .arg( ::clap::Arg::new("description") .long("description") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -6164,7 +6164,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.device_auth_confirm(); - if let Some(value) = matches.get_one::("user-code") { + if let Some(value) = matches.get_one::<::std::string::String>("user-code") { request = request.body_map(|body| body.user_code(value.clone())) } @@ -6198,11 +6198,11 @@ impl Cli { request = request.body_map(|body| body.client_id(value.clone())) } - if let Some(value) = matches.get_one::("device-code") { + if let Some(value) = matches.get_one::<::std::string::String>("device-code") { request = request.body_map(|body| body.device_code(value.clone())) } - if let Some(value) = matches.get_one::("grant-type") { + if let Some(value) = matches.get_one::<::std::string::String>("grant-type") { request = request.body_map(|body| body.grant_type(value.clone())) } @@ -6263,7 +6263,7 @@ impl Cli { pub async fn execute_login_spoof(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.login_spoof(); - if let Some(value) = matches.get_one::("username") { + if let Some(value) = matches.get_one::<::std::string::String>("username") { request = request.body_map(|body| body.username(value.clone())) } @@ -6432,7 +6432,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -6490,7 +6490,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -6643,7 +6643,7 @@ impl Cli { pub async fn execute_project_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.project_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -6701,7 +6701,7 @@ impl Cli { pub async fn execute_project_update(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.project_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -6806,7 +6806,7 @@ impl Cli { pub async fn execute_disk_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.disk_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -7008,7 +7008,7 @@ impl Cli { pub async fn execute_image_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.image_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -7148,11 +7148,11 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } - if let Some(value) = matches.get_one::("hostname") { + if let Some(value) = matches.get_one::<::std::string::String>("hostname") { request = request.body_map(|body| body.hostname(value.clone())) } @@ -7180,7 +7180,7 @@ impl Cli { request = request.body_map(|body| body.start(value.clone())) } - if let Some(value) = matches.get_one::("user-data") { + if let Some(value) = matches.get_one::<::std::string::String>("user-data") { request = request.body_map(|body| body.user_data(value.clone())) } @@ -7530,7 +7530,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_network_interface_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -7625,7 +7625,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_network_interface_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -7982,7 +7982,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.snapshot_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8126,7 +8126,7 @@ impl Cli { pub async fn execute_vpc_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.vpc_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8200,7 +8200,7 @@ impl Cli { pub async fn execute_vpc_update(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.vpc_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8399,7 +8399,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8480,7 +8480,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8622,7 +8622,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_route_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8713,7 +8713,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_router_route_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8859,7 +8859,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_subnet_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -8948,7 +8948,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.vpc_subnet_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -9157,7 +9157,7 @@ impl Cli { pub async fn execute_role_view(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.role_view(); - if let Some(value) = matches.get_one::("role-name") { + if let Some(value) = matches.get_one::<::std::string::String>("role-name") { request = request.role_name(value.clone()); } @@ -9274,7 +9274,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.session_sshkey_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -9282,7 +9282,7 @@ impl Cli { request = request.body_map(|body| body.name(value.clone())) } - if let Some(value) = matches.get_one::("public-key") { + if let Some(value) = matches.get_one::<::std::string::String>("public-key") { request = request.body_map(|body| body.public_key(value.clone())) } @@ -9471,7 +9471,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.certificate_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -9791,7 +9791,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_image_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -9905,7 +9905,7 @@ impl Cli { pub async fn execute_ip_pool_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.ip_pool_create(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -9955,7 +9955,7 @@ impl Cli { pub async fn execute_ip_pool_update(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.ip_pool_update(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -10233,7 +10233,7 @@ impl Cli { request = request.metric_name(value.clone()); } - if let Some(value) = matches.get_one::("page-token") { + if let Some(value) = matches.get_one::<::std::string::String>("page-token") { request = request.page_token(value.clone()); } @@ -10394,11 +10394,11 @@ impl Cli { pub async fn execute_silo_create(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.silo_create(); - if let Some(value) = matches.get_one::("admin-group-name") { + if let Some(value) = matches.get_one::<::std::string::String>("admin-group-name") { request = request.body_map(|body| body.admin_group_name(value.clone())) } - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -10620,19 +10620,19 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.saml_identity_provider_create(); - if let Some(value) = matches.get_one::("acs-url") { + if let Some(value) = matches.get_one::<::std::string::String>("acs-url") { request = request.body_map(|body| body.acs_url(value.clone())) } - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } - if let Some(value) = matches.get_one::("group-attribute-name") { + if let Some(value) = matches.get_one::<::std::string::String>("group-attribute-name") { request = request.body_map(|body| body.group_attribute_name(value.clone())) } - if let Some(value) = matches.get_one::("idp-entity-id") { + if let Some(value) = matches.get_one::<::std::string::String>("idp-entity-id") { request = request.body_map(|body| body.idp_entity_id(value.clone())) } @@ -10644,15 +10644,15 @@ impl Cli { request = request.silo_name(value.clone()); } - if let Some(value) = matches.get_one::("slo-url") { + if let Some(value) = matches.get_one::<::std::string::String>("slo-url") { request = request.body_map(|body| body.slo_url(value.clone())) } - if let Some(value) = matches.get_one::("sp-client-id") { + if let Some(value) = matches.get_one::<::std::string::String>("sp-client-id") { request = request.body_map(|body| body.sp_client_id(value.clone())) } - if let Some(value) = matches.get_one::("technical-contact-email") { + if let Some(value) = matches.get_one::<::std::string::String>("technical-contact-email") { request = request.body_map(|body| body.technical_contact_email(value.clone())) } @@ -11007,7 +11007,7 @@ impl Cli { pub async fn execute_disk_create_v1(&self, matches: &::clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.disk_create_v1(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -11155,11 +11155,11 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_create_v1(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } - if let Some(value) = matches.get_one::("hostname") { + if let Some(value) = matches.get_one::<::std::string::String>("hostname") { request = request.body_map(|body| body.hostname(value.clone())) } @@ -11187,7 +11187,7 @@ impl Cli { request = request.body_map(|body| body.start(value.clone())) } - if let Some(value) = matches.get_one::("user-data") { + if let Some(value) = matches.get_one::<::std::string::String>("user-data") { request = request.body_map(|body| body.user_data(value.clone())) } @@ -11668,7 +11668,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_create_v1(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -11726,7 +11726,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.organization_update_v1(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -11885,7 +11885,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.project_create_v1(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } @@ -11950,7 +11950,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.project_update_v1(); - if let Some(value) = matches.get_one::("description") { + if let Some(value) = matches.get_one::<::std::string::String>("description") { request = request.body_map(|body| body.description(value.clone())) } diff --git a/progenitor-impl/tests/output/src/nexus_positional.rs b/progenitor-impl/tests/output/src/nexus_positional.rs index 72705c0b..1d79e967 100644 --- a/progenitor-impl/tests/output/src/nexus_positional.rs +++ b/progenitor-impl/tests/output/src/nexus_positional.rs @@ -68,9 +68,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Baseboard { - pub part: String, + pub part: ::std::string::String, pub revision: i64, - pub serial: String, + pub serial: ::std::string::String, } impl From<&Baseboard> for Baseboard { @@ -424,9 +424,9 @@ pub mod types { } } - impl std::convert::TryFrom for BlockSize { + impl ::std::convert::TryFrom for BlockSize { type Error = self::error::ConversionError; - fn try_from(value: i64) -> Result { + fn try_from(value: i64) -> ::std::result::Result { if ![512_i64, 2048_i64, 4096_i64].contains(&value) { Err("invalid value".into()) } else { @@ -436,7 +436,7 @@ pub mod types { } impl<'de> ::serde::Deserialize<'de> for BlockSize { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { @@ -498,29 +498,29 @@ pub mod types { } impl std::str::FromStr for ByteCount { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for ByteCount { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for ByteCount { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for ByteCount { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -587,7 +587,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Certificate { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -662,10 +662,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CertificateCreate { ///PEM file containing public certificate chain - pub cert: Vec, - pub description: String, + pub cert: ::std::vec::Vec, + pub description: ::std::string::String, ///PEM file containing private key - pub key: Vec, + pub key: ::std::vec::Vec, pub name: Name, ///The service using this certificate pub service: ServiceUsingCertificate, @@ -711,10 +711,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CertificateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&CertificateResultsPage> for CertificateResultsPage { @@ -819,10 +819,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ComponentUpdateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ComponentUpdateResultsPage> for ComponentUpdateResultsPage { @@ -1097,9 +1097,9 @@ pub mod types { #[serde(rename = "f64")] F64(f64), #[serde(rename = "string")] - String(String), + String(::std::string::String), #[serde(rename = "bytes")] - Bytes(Vec), + Bytes(::std::vec::Vec), #[serde(rename = "cumulative_i64")] CumulativeI64(Cumulativeint64), #[serde(rename = "cumulative_f64")] @@ -1134,8 +1134,8 @@ pub mod types { } } - impl From> for Datum { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for Datum { + fn from(value: ::std::vec::Vec) -> Self { Self::Bytes(value) } } @@ -1243,7 +1243,7 @@ pub mod types { impl std::str::FromStr for DatumType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "bool" => Ok(Self::Bool), "i64" => Ok(Self::I64), @@ -1261,21 +1261,25 @@ pub mod types { impl std::convert::TryFrom<&str> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for DatumType { + impl std::convert::TryFrom<&::std::string::String> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for DatumType { + impl std::convert::TryFrom<::std::string::String> for DatumType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1309,9 +1313,9 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DerEncodedKeyPair { ///request signing private key (base64 encoded der file) - pub private_key: String, + pub private_key: ::std::string::String, ///request signing public certificate (base64 encoded der file) - pub public_cert: String, + pub public_cert: ::std::string::String, } impl From<&DerEncodedKeyPair> for DerEncodedKeyPair { @@ -1350,8 +1354,8 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAccessTokenRequest { pub client_id: uuid::Uuid, - pub device_code: String, - pub grant_type: String, + pub device_code: ::std::string::String, + pub grant_type: ::std::string::String, } impl From<&DeviceAccessTokenRequest> for DeviceAccessTokenRequest { @@ -1410,7 +1414,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DeviceAuthVerify { - pub user_code: String, + pub user_code: ::std::string::String, } impl From<&DeviceAuthVerify> for DeviceAuthVerify { @@ -1452,7 +1456,7 @@ pub mod types { #[serde(tag = "type", content = "value")] pub enum Digest { #[serde(rename = "sha256")] - Sha256(String), + Sha256(::std::string::String), } impl From<&Digest> for Digest { @@ -1549,18 +1553,18 @@ pub mod types { pub struct Disk { pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, - pub device_path: String, + pub description: ::std::string::String, + pub device_path: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub image_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub image_id: ::std::option::Option, ///unique, mutable, user-controlled identifier for each resource pub name: Name, pub project_id: uuid::Uuid, pub size: ByteCount, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub snapshot_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub snapshot_id: ::std::option::Option, pub state: DiskState, ///timestamp when this resource was created pub time_created: chrono::DateTime, @@ -1619,7 +1623,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskCreate { - pub description: String, + pub description: ::std::string::String, ///initial source for this disk pub disk_source: DiskSource, pub name: Name, @@ -1733,7 +1737,7 @@ pub mod types { impl std::str::FromStr for DiskMetricName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "activated" => Ok(Self::Activated), "flush" => Ok(Self::Flush), @@ -1748,21 +1752,25 @@ pub mod types { impl std::convert::TryFrom<&str> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for DiskMetricName { + impl std::convert::TryFrom<&::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for DiskMetricName { + impl std::convert::TryFrom<::std::string::String> for DiskMetricName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1830,10 +1838,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&DiskResultsPage> for DiskResultsPage { @@ -2162,7 +2170,7 @@ pub mod types { ///The name of the distribution (e.g. "alpine" or "ubuntu") pub name: Name, ///The version of the distribution (e.g. "3.10" or "18.04") - pub version: String, + pub version: ::std::string::String, } impl From<&Distribution> for Distribution { @@ -2199,10 +2207,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -2298,8 +2306,8 @@ pub mod types { /// available pools if not specified. #[serde(rename = "ephemeral")] Ephemeral { - #[serde(default, skip_serializing_if = "Option::is_none")] - pool_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pool_name: ::std::option::Option, }, } @@ -2343,10 +2351,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ExternalIpResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ExternalIpResultsPage> for ExternalIpResultsPage { @@ -2385,7 +2393,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct FieldSchema { - pub name: String, + pub name: ::std::string::String, pub source: FieldSource, pub ty: FieldType, } @@ -2448,7 +2456,7 @@ pub mod types { impl std::str::FromStr for FieldSource { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "target" => Ok(Self::Target), "metric" => Ok(Self::Metric), @@ -2459,21 +2467,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FieldSource { + impl std::convert::TryFrom<&::std::string::String> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FieldSource { + impl std::convert::TryFrom<::std::string::String> for FieldSource { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2542,7 +2554,7 @@ pub mod types { impl std::str::FromStr for FieldType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "string" => Ok(Self::String), "i64" => Ok(Self::I64), @@ -2556,21 +2568,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FieldType { + impl std::convert::TryFrom<&::std::string::String> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FieldType { + impl std::convert::TryFrom<::std::string::String> for FieldType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2629,7 +2645,7 @@ pub mod types { impl std::str::FromStr for FleetRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -2641,21 +2657,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for FleetRole { + impl std::convert::TryFrom<&::std::string::String> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for FleetRole { + impl std::convert::TryFrom<::std::string::String> for FleetRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -2694,7 +2714,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct FleetRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&FleetRolePolicy> for FleetRolePolicy { @@ -2857,12 +2877,12 @@ pub mod types { ///size of blocks in bytes pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///Hash of the image contents, if applicable - #[serde(default, skip_serializing_if = "Option::is_none")] - pub digest: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub digest: ::std::option::Option, ///Image distribution - pub distribution: String, + pub distribution: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -2874,10 +2894,10 @@ pub mod types { ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, ///URL source of this image, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub url: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub url: ::std::option::Option<::std::string::String>, ///Image version - pub version: String, + pub version: ::std::string::String, } impl From<&GlobalImage> for GlobalImage { @@ -2942,7 +2962,7 @@ pub mod types { pub struct GlobalImageCreate { ///block size in bytes pub block_size: BlockSize, - pub description: String, + pub description: ::std::string::String, ///OS image distribution pub distribution: Distribution, pub name: Name, @@ -2990,10 +3010,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GlobalImageResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&GlobalImageResultsPage> for GlobalImageResultsPage { @@ -3036,7 +3056,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Group { ///Human-readable name that can identify the group - pub display_name: String, + pub display_name: ::std::string::String, pub id: uuid::Uuid, ///Uuid of the silo to which this group belongs pub silo_id: uuid::Uuid, @@ -3082,10 +3102,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct GroupResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&GroupResultsPage> for GroupResultsPage { @@ -3201,7 +3221,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Histogramdouble { - pub bins: Vec, + pub bins: ::std::vec::Vec, pub n_samples: u64, pub start_time: chrono::DateTime, } @@ -3319,7 +3339,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Histogramint64 { - pub bins: Vec, + pub bins: ::std::vec::Vec, pub n_samples: u64, pub start_time: chrono::DateTime, } @@ -3386,7 +3406,7 @@ pub mod types { impl std::str::FromStr for IdSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "id_ascending" => Ok(Self::IdAscending), _ => Err("invalid value".into()), @@ -3396,21 +3416,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdSortMode { + impl std::convert::TryFrom<&::std::string::String> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdSortMode { + impl std::convert::TryFrom<::std::string::String> for IdSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3476,7 +3500,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IdentityProvider { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -3529,10 +3553,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IdentityProviderResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IdentityProviderResultsPage> for IdentityProviderResultsPage { @@ -3593,7 +3617,7 @@ pub mod types { impl std::str::FromStr for IdentityProviderType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "saml" => Ok(Self::Saml), _ => Err("invalid value".into()), @@ -3603,21 +3627,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdentityProviderType { + impl std::convert::TryFrom<&::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdentityProviderType { + impl std::convert::TryFrom<::std::string::String> for IdentityProviderType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3673,7 +3701,7 @@ pub mod types { impl std::str::FromStr for IdentityType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "silo_user" => Ok(Self::SiloUser), "silo_group" => Ok(Self::SiloGroup), @@ -3684,21 +3712,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IdentityType { + impl std::convert::TryFrom<&::std::string::String> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IdentityType { + impl std::convert::TryFrom<::std::string::String> for IdentityType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -3754,9 +3786,9 @@ pub mod types { #[serde(tag = "type")] pub enum IdpMetadataSource { #[serde(rename = "url")] - Url { url: String }, + Url { url: ::std::string::String }, #[serde(rename = "base64_encoded_xml")] - Base64EncodedXml { data: String }, + Base64EncodedXml { data: ::std::string::String }, } impl From<&IdpMetadataSource> for IdpMetadataSource { @@ -3872,10 +3904,10 @@ pub mod types { ///size of blocks in bytes pub block_size: ByteCount, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///Hash of the image contents, if applicable - #[serde(default, skip_serializing_if = "Option::is_none")] - pub digest: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub digest: ::std::option::Option, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -3889,11 +3921,11 @@ pub mod types { ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, ///URL source of this image, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub url: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub url: ::std::option::Option<::std::string::String>, ///Version of this, if any - #[serde(default, skip_serializing_if = "Option::is_none")] - pub version: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub version: ::std::option::Option<::std::string::String>, } impl From<&Image> for Image { @@ -3949,7 +3981,7 @@ pub mod types { pub struct ImageCreate { ///block size in bytes pub block_size: BlockSize, - pub description: String, + pub description: ::std::string::String, pub name: Name, ///The source of the image's contents. pub source: ImageSource, @@ -3995,10 +4027,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ImageResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ImageResultsPage> for ImageResultsPage { @@ -4076,7 +4108,7 @@ pub mod types { #[serde(tag = "type")] pub enum ImageSource { #[serde(rename = "url")] - Url { url: String }, + Url { url: ::std::string::String }, #[serde(rename = "snapshot")] Snapshot { id: uuid::Uuid }, #[serde(rename = "you_can_boot_anything_as_long_as_its_alpine")] @@ -4179,9 +4211,9 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Instance { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///RFC1035-compliant hostname for the Instance. - pub hostname: String, + pub hostname: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///memory allocated for this Instance @@ -4247,29 +4279,29 @@ pub mod types { } impl std::str::FromStr for InstanceCpuCount { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for InstanceCpuCount { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -4368,19 +4400,19 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceCreate { - pub description: String, + pub description: ::std::string::String, ///The disks to be created or attached for this instance. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub disks: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub disks: ::std::vec::Vec, ///The external IP addresses provided to this instance. /// ///By default, all instances have outbound connectivity, but no inbound /// connectivity. These external addresses can be used to provide a /// fixed, known IP address for making inbound connections to the /// instance. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub external_ips: Vec, - pub hostname: String, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub external_ips: ::std::vec::Vec, + pub hostname: ::std::string::String, pub memory: ByteCount, pub name: Name, pub ncpus: InstanceCpuCount, @@ -4394,7 +4426,7 @@ pub mod types { /// Must be a Base64-encoded string, as specified in RFC 4648 § 4 (+ and /// / characters with padding). Maximum 32 KiB unencoded data. #[serde(default)] - pub user_data: String, + pub user_data: ::std::string::String, } impl From<&InstanceCreate> for InstanceCreate { @@ -4486,7 +4518,7 @@ pub mod types { ///During instance creation, create and attach disks #[serde(rename = "create")] Create { - description: String, + description: ::std::string::String, ///initial source for this disk disk_source: DiskSource, name: Name, @@ -4620,7 +4652,7 @@ pub mod types { ///If more than one interface is provided, then the first will be /// designated the primary interface for the instance. #[serde(rename = "create")] - Create(Vec), + Create(::std::vec::Vec), #[serde(rename = "default")] Default, #[serde(rename = "none")] @@ -4633,8 +4665,8 @@ pub mod types { } } - impl From> for InstanceNetworkInterfaceAttachment { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for InstanceNetworkInterfaceAttachment { + fn from(value: ::std::vec::Vec) -> Self { Self::Create(value) } } @@ -4673,10 +4705,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&InstanceResultsPage> for InstanceResultsPage { @@ -4726,7 +4758,7 @@ pub mod types { ///The bytes starting from the requested offset up to either the end of /// the buffer or the request's `max_bytes`. Provided as a u8 array /// rather than a string, as it may not be UTF-8. - pub data: Vec, + pub data: ::std::vec::Vec, ///The absolute offset since boot (suitable for use as `byte_offset` in /// a subsequent request) of the last byte returned in `data`. pub last_byte_offset: u64, @@ -4904,7 +4936,7 @@ pub mod types { impl std::str::FromStr for InstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "creating" => Ok(Self::Creating), "starting" => Ok(Self::Starting), @@ -4923,21 +4955,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceState { + impl std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceState { + impl std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4993,7 +5029,7 @@ pub mod types { impl std::str::FromStr for IpKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "ephemeral" => Ok(Self::Ephemeral), "floating" => Ok(Self::Floating), @@ -5004,21 +5040,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IpKind { + impl std::convert::TryFrom<&::std::string::String> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IpKind { + impl std::convert::TryFrom<::std::string::String> for IpKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5065,7 +5105,7 @@ pub mod types { impl std::str::FromStr for IpNet { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::V4(v)) } else if let Ok(v) = value.parse() { @@ -5078,21 +5118,25 @@ pub mod types { impl std::convert::TryFrom<&str> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for IpNet { + impl std::convert::TryFrom<&::std::string::String> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for IpNet { + impl std::convert::TryFrom<::std::string::String> for IpNet { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -5172,7 +5216,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPool { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -5217,7 +5261,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -5302,10 +5346,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolRangeResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IpPoolRangeResultsPage> for IpPoolRangeResultsPage { @@ -5348,10 +5392,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&IpPoolResultsPage> for IpPoolResultsPage { @@ -5395,10 +5439,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct IpPoolUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&IpPoolUpdate> for IpPoolUpdate { @@ -5479,15 +5523,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Ipv4Net(String); + pub struct Ipv4Net(::std::string::String); impl ::std::ops::Deref for Ipv4Net { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Ipv4Net) -> Self { value.0 } @@ -5501,7 +5545,7 @@ pub mod types { impl ::std::str::FromStr for Ipv4Net { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.\ ){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/\ @@ -5523,31 +5567,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Ipv4Net { + impl ::std::convert::TryFrom<&::std::string::String> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Ipv4Net { + impl ::std::convert::TryFrom<::std::string::String> for Ipv4Net { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Ipv4Net { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -5615,15 +5663,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Ipv6Net(String); + pub struct Ipv6Net(::std::string::String); impl ::std::ops::Deref for Ipv6Net { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Ipv6Net) -> Self { value.0 } @@ -5637,7 +5685,7 @@ pub mod types { impl ::std::str::FromStr for Ipv6Net { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "^([fF][dD])[0-9a-fA-F]{2}:(([0-9a-fA-F]{1,4}:){6}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,\ 4}:){1,6}:)\\/([1-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$", @@ -5658,31 +5706,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Ipv6Net { + impl ::std::convert::TryFrom<&::std::string::String> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Ipv6Net { + impl ::std::convert::TryFrom<::std::string::String> for Ipv6Net { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Ipv6Net { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -5752,15 +5804,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct L4PortRange(String); + pub struct L4PortRange(::std::string::String); impl ::std::ops::Deref for L4PortRange { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: L4PortRange) -> Self { value.0 } @@ -5774,7 +5826,7 @@ pub mod types { impl ::std::str::FromStr for L4PortRange { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 11usize { return Err("longer than 11 characters".into()); } @@ -5794,31 +5846,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for L4PortRange { + impl ::std::convert::TryFrom<&::std::string::String> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for L4PortRange { + impl ::std::convert::TryFrom<::std::string::String> for L4PortRange { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for L4PortRange { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -5845,15 +5901,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct MacAddr(String); + pub struct MacAddr(::std::string::String); impl ::std::ops::Deref for MacAddr { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: MacAddr) -> Self { value.0 } @@ -5867,7 +5923,7 @@ pub mod types { impl ::std::str::FromStr for MacAddr { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 17usize { return Err("longer than 17 characters".into()); } @@ -5889,31 +5945,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for MacAddr { + impl ::std::convert::TryFrom<&::std::string::String> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for MacAddr { + impl ::std::convert::TryFrom<::std::string::String> for MacAddr { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for MacAddr { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -5992,10 +6052,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct MeasurementResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&MeasurementResultsPage> for MeasurementResultsPage { @@ -6026,15 +6086,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Name(String); + pub struct Name(::std::string::String); impl ::std::ops::Deref for Name { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Name) -> Self { value.0 } @@ -6048,7 +6108,7 @@ pub mod types { impl ::std::str::FromStr for Name { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -6059,31 +6119,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Name { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Name { + impl ::std::convert::TryFrom<&::std::string::String> for Name { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Name { + impl ::std::convert::TryFrom<::std::string::String> for Name { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Name { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -6134,7 +6198,7 @@ pub mod types { impl std::str::FromStr for NameOrId { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if let Ok(v) = value.parse() { Ok(Self::Id(v)) } else if let Ok(v) = value.parse() { @@ -6147,21 +6211,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameOrId { + impl std::convert::TryFrom<&::std::string::String> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameOrId { + impl std::convert::TryFrom<::std::string::String> for NameOrId { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6263,7 +6331,7 @@ pub mod types { impl std::str::FromStr for NameOrIdSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "name_ascending" => Ok(Self::NameAscending), "name_descending" => Ok(Self::NameDescending), @@ -6275,21 +6343,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameOrIdSortMode { + impl std::convert::TryFrom<&::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameOrIdSortMode { + impl std::convert::TryFrom<::std::string::String> for NameOrIdSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6350,7 +6422,7 @@ pub mod types { impl std::str::FromStr for NameSortMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "name_ascending" => Ok(Self::NameAscending), _ => Err("invalid value".into()), @@ -6360,21 +6432,25 @@ pub mod types { impl std::convert::TryFrom<&str> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for NameSortMode { + impl std::convert::TryFrom<&::std::string::String> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for NameSortMode { + impl std::convert::TryFrom<::std::string::String> for NameSortMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -6471,7 +6547,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterface { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///The Instance to which the interface belongs. @@ -6554,11 +6630,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceCreate { - pub description: String, + pub description: ::std::string::String, ///The IP address for the interface. One will be auto-assigned if not /// provided. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ip: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ip: ::std::option::Option, pub name: Name, ///The VPC Subnet in which to create the interface. pub subnet_name: Name, @@ -6606,10 +6682,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&NetworkInterfaceResultsPage> for NetworkInterfaceResultsPage { @@ -6672,10 +6748,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, ///Make a secondary interface the instance's primary interface. /// ///If applied to a secondary interface, that interface will become the @@ -6727,15 +6803,15 @@ pub mod types { PartialEq, PartialOrd, )] - pub struct NodeName(pub String); + pub struct NodeName(pub ::std::string::String); impl ::std::ops::Deref for NodeName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: NodeName) -> Self { value.0 } @@ -6747,15 +6823,15 @@ pub mod types { } } - impl From for NodeName { - fn from(value: String) -> Self { + impl From<::std::string::String> for NodeName { + fn from(value: ::std::string::String) -> Self { Self(value) } } - impl std::str::FromStr for NodeName { - type Err = std::convert::Infallible; - fn from_str(value: &str) -> Result { + impl ::std::str::FromStr for NodeName { + type Err = ::std::convert::Infallible; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.to_string())) } } @@ -6818,7 +6894,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Organization { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -6862,7 +6938,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -6906,10 +6982,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&OrganizationResultsPage> for OrganizationResultsPage { @@ -6972,7 +7048,7 @@ pub mod types { impl std::str::FromStr for OrganizationRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -6984,21 +7060,25 @@ pub mod types { impl std::convert::TryFrom<&str> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for OrganizationRole { + impl std::convert::TryFrom<&::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for OrganizationRole { + impl std::convert::TryFrom<::std::string::String> for OrganizationRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7037,7 +7117,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&OrganizationRolePolicy> for OrganizationRolePolicy { @@ -7133,10 +7213,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct OrganizationUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&OrganizationUpdate> for OrganizationUpdate { @@ -7159,15 +7239,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct Password(String); + pub struct Password(::std::string::String); impl ::std::ops::Deref for Password { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: Password) -> Self { value.0 } @@ -7181,7 +7261,7 @@ pub mod types { impl ::std::str::FromStr for Password { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 512usize { return Err("longer than 512 characters".into()); } @@ -7191,31 +7271,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Password { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for Password { + impl ::std::convert::TryFrom<&::std::string::String> for Password { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for Password { + impl ::std::convert::TryFrom<::std::string::String> for Password { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for Password { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -7286,16 +7370,16 @@ pub mod types { pub disk_type: PhysicalDiskType, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub model: String, - pub serial: String, + pub model: ::std::string::String, + pub serial: ::std::string::String, ///The sled to which this disk is attached, if any. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub sled_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub sled_id: ::std::option::Option, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified pub time_modified: chrono::DateTime, - pub vendor: String, + pub vendor: ::std::string::String, } impl From<&PhysicalDisk> for PhysicalDisk { @@ -7338,10 +7422,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct PhysicalDiskResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&PhysicalDiskResultsPage> for PhysicalDiskResultsPage { @@ -7400,7 +7484,7 @@ pub mod types { impl std::str::FromStr for PhysicalDiskType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "internal" => Ok(Self::Internal), "external" => Ok(Self::External), @@ -7411,21 +7495,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for PhysicalDiskType { + impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for PhysicalDiskType { + impl std::convert::TryFrom<::std::string::String> for PhysicalDiskType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7487,7 +7575,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Project { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -7532,7 +7620,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -7576,10 +7664,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&ProjectResultsPage> for ProjectResultsPage { @@ -7642,7 +7730,7 @@ pub mod types { impl std::str::FromStr for ProjectRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -7654,21 +7742,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ProjectRole { + impl std::convert::TryFrom<&::std::string::String> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ProjectRole { + impl std::convert::TryFrom<::std::string::String> for ProjectRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -7707,7 +7799,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&ProjectRolePolicy> for ProjectRolePolicy { @@ -7803,10 +7895,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct ProjectUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&ProjectUpdate> for ProjectUpdate { @@ -7899,10 +7991,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RackResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RackResultsPage> for RackResultsPage { @@ -7936,7 +8028,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Role { - pub description: String, + pub description: ::std::string::String, pub name: RoleName, } @@ -7962,15 +8054,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct RoleName(String); + pub struct RoleName(::std::string::String); impl ::std::ops::Deref for RoleName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: RoleName) -> Self { value.0 } @@ -7984,7 +8076,7 @@ pub mod types { impl ::std::str::FromStr for RoleName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -8001,31 +8093,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for RoleName { + impl ::std::convert::TryFrom<&::std::string::String> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for RoleName { + impl ::std::convert::TryFrom<::std::string::String> for RoleName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for RoleName { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -8067,10 +8163,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RoleResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RoleResultsPage> for RoleResultsPage { @@ -8435,7 +8531,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRoute { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, pub destination: RouteDestination, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, @@ -8491,7 +8587,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRouteCreateParams { - pub description: String, + pub description: ::std::string::String, pub destination: RouteDestination, pub name: Name, pub target: RouteTarget, @@ -8607,7 +8703,7 @@ pub mod types { impl std::str::FromStr for RouterRouteKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "default" => Ok(Self::Default), "vpc_subnet" => Ok(Self::VpcSubnet), @@ -8620,21 +8716,25 @@ pub mod types { impl std::convert::TryFrom<&str> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for RouterRouteKind { + impl std::convert::TryFrom<&::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for RouterRouteKind { + impl std::convert::TryFrom<::std::string::String> for RouterRouteKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -8673,10 +8773,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRouteResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&RouterRouteResultsPage> for RouterRouteResultsPage { @@ -8730,11 +8830,11 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct RouterRouteUpdateParams { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, pub destination: RouteDestination, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, pub target: RouteTarget, } @@ -8880,13 +8980,13 @@ pub mod types { #[serde(rename = "action_failed")] ActionFailed { source_error: ::serde_json::Value }, #[serde(rename = "deserialize_failed")] - DeserializeFailed { message: String }, + DeserializeFailed { message: ::std::string::String }, #[serde(rename = "injected_error")] InjectedError, #[serde(rename = "serialize_failed")] - SerializeFailed { message: String }, + SerializeFailed { message: ::std::string::String }, #[serde(rename = "subsaga_create_failed")] - SubsagaCreateFailed { message: String }, + SubsagaCreateFailed { message: ::std::string::String }, } impl From<&SagaErrorInfo> for SagaErrorInfo { @@ -8929,10 +9029,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SagaResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SagaResultsPage> for SagaResultsPage { @@ -9112,25 +9212,25 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SamlIdentityProvider { ///service provider endpoint where the response will be sent - pub acs_url: String, + pub acs_url: ::std::string::String, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///idp's entity id - pub idp_entity_id: String, + pub idp_entity_id: ::std::string::String, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///optional request signing public certificate (base64 encoded der /// file) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub public_cert: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub public_cert: ::std::option::Option<::std::string::String>, ///service provider endpoint where the idp should send log out requests - pub slo_url: String, + pub slo_url: ::std::string::String, ///sp's client id - pub sp_client_id: String, + pub sp_client_id: ::std::string::String, ///customer's technical contact for saml configuration - pub technical_contact_email: String, + pub technical_contact_email: ::std::string::String, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -9231,27 +9331,27 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SamlIdentityProviderCreate { ///service provider endpoint where the response will be sent - pub acs_url: String, - pub description: String, + pub acs_url: ::std::string::String, + pub description: ::std::string::String, ///If set, SAML attributes with this name will be considered to denote /// a user's group membership, where the attribute value(s) should be a /// comma-separated list of group names. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub group_attribute_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub group_attribute_name: ::std::option::Option<::std::string::String>, ///idp's entity id - pub idp_entity_id: String, + pub idp_entity_id: ::std::string::String, ///the source of an identity provider metadata descriptor pub idp_metadata_source: IdpMetadataSource, pub name: Name, ///optional request signing key pair - #[serde(default, skip_serializing_if = "Option::is_none")] - pub signing_keypair: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub signing_keypair: ::std::option::Option, ///service provider endpoint where the idp should send log out requests - pub slo_url: String, + pub slo_url: ::std::string::String, ///sp's client id - pub sp_client_id: String, + pub sp_client_id: ::std::string::String, ///customer's technical contact for saml configuration - pub technical_contact_email: String, + pub technical_contact_email: ::std::string::String, } impl From<&SamlIdentityProviderCreate> for SamlIdentityProviderCreate { @@ -9272,15 +9372,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct SemverVersion(String); + pub struct SemverVersion(::std::string::String); impl ::std::ops::Deref for SemverVersion { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: SemverVersion) -> Self { value.0 } @@ -9294,7 +9394,7 @@ pub mod types { impl ::std::str::FromStr for SemverVersion { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new("^\\d+\\.\\d+\\.\\d+([\\-\\+].+)?$") .unwrap() .find(value) @@ -9308,31 +9408,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for SemverVersion { + impl ::std::convert::TryFrom<&::std::string::String> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for SemverVersion { + impl ::std::convert::TryFrom<::std::string::String> for SemverVersion { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for SemverVersion { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -9394,7 +9498,7 @@ pub mod types { impl std::str::FromStr for ServiceUsingCertificate { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "external_api" => Ok(Self::ExternalApi), _ => Err("invalid value".into()), @@ -9404,21 +9508,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for ServiceUsingCertificate { + impl std::convert::TryFrom<&::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for ServiceUsingCertificate { + impl std::convert::TryFrom<::std::string::String> for ServiceUsingCertificate { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9489,7 +9597,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Silo { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///A silo where discoverable is false can be retrieved only by its id - /// it will not be part of the "list all silos" output. pub discoverable: bool, @@ -9566,9 +9674,9 @@ pub mod types { ///Note that if configuring a SAML based identity provider, /// group_attribute_name must be set for users to be considered part of /// a group. See [`SamlIdentityProviderCreate`] for more information. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub admin_group_name: Option, - pub description: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub admin_group_name: ::std::option::Option<::std::string::String>, + pub description: ::std::string::String, pub discoverable: bool, pub identity_mode: SiloIdentityMode, pub name: Name, @@ -9655,7 +9763,7 @@ pub mod types { impl std::str::FromStr for SiloIdentityMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "saml_jit" => Ok(Self::SamlJit), "local_only" => Ok(Self::LocalOnly), @@ -9666,21 +9774,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SiloIdentityMode { + impl std::convert::TryFrom<&::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SiloIdentityMode { + impl std::convert::TryFrom<::std::string::String> for SiloIdentityMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9719,10 +9831,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SiloResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SiloResultsPage> for SiloResultsPage { @@ -9785,7 +9897,7 @@ pub mod types { impl std::str::FromStr for SiloRole { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin" => Ok(Self::Admin), "collaborator" => Ok(Self::Collaborator), @@ -9797,21 +9909,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SiloRole { + impl std::convert::TryFrom<&::std::string::String> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SiloRole { + impl std::convert::TryFrom<::std::string::String> for SiloRole { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -9850,7 +9966,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SiloRolePolicy { ///Roles directly assigned on this resource - pub role_assignments: Vec, + pub role_assignments: ::std::vec::Vec, } impl From<&SiloRolePolicy> for SiloRolePolicy { @@ -9956,7 +10072,7 @@ pub mod types { pub baseboard: Baseboard, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub service_address: String, + pub service_address: ::std::string::String, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -10003,10 +10119,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SledResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SledResultsPage> for SledResultsPage { @@ -10085,7 +10201,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Snapshot { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, pub disk_id: uuid::Uuid, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, @@ -10142,7 +10258,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SnapshotCreate { - pub description: String, + pub description: ::std::string::String, ///The name of the disk to be snapshotted pub disk: Name, pub name: Name, @@ -10188,10 +10304,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SnapshotResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SnapshotResultsPage> for SnapshotResultsPage { @@ -10258,7 +10374,7 @@ pub mod types { impl std::str::FromStr for SnapshotState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "creating" => Ok(Self::Creating), "ready" => Ok(Self::Ready), @@ -10271,21 +10387,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SnapshotState { + impl std::convert::TryFrom<&::std::string::String> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SnapshotState { + impl std::convert::TryFrom<::std::string::String> for SnapshotState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10310,7 +10430,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SpoofLoginBody { - pub username: String, + pub username: ::std::string::String, } impl From<&SpoofLoginBody> for SpoofLoginBody { @@ -10383,13 +10503,13 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SshKey { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` - pub public_key: String, + pub public_key: ::std::string::String, ///The user to whom this key belongs pub silo_user_id: uuid::Uuid, ///timestamp when this resource was created @@ -10437,10 +10557,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SshKeyCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, ///SSH public key, e.g., `"ssh-ed25519 AAAAC3NzaC..."` - pub public_key: String, + pub public_key: ::std::string::String, } impl From<&SshKeyCreate> for SshKeyCreate { @@ -10483,10 +10603,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SshKeyResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SshKeyResultsPage> for SshKeyResultsPage { @@ -10549,7 +10669,7 @@ pub mod types { impl std::str::FromStr for SystemMetricName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "virtual_disk_space_provisioned" => Ok(Self::VirtualDiskSpaceProvisioned), "cpus_provisioned" => Ok(Self::CpusProvisioned), @@ -10561,21 +10681,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for SystemMetricName { + impl std::convert::TryFrom<&::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for SystemMetricName { + impl std::convert::TryFrom<::std::string::String> for SystemMetricName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -10671,10 +10795,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct SystemUpdateResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&SystemUpdateResultsPage> for SystemUpdateResultsPage { @@ -10765,15 +10889,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct TimeseriesName(String); + pub struct TimeseriesName(::std::string::String); impl ::std::ops::Deref for TimeseriesName { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: TimeseriesName) -> Self { value.0 } @@ -10787,7 +10911,7 @@ pub mod types { impl ::std::str::FromStr for TimeseriesName { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if regress::Regex::new( "(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*):(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*)", ) @@ -10806,31 +10930,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for TimeseriesName { + impl ::std::convert::TryFrom<&::std::string::String> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for TimeseriesName { + impl ::std::convert::TryFrom<::std::string::String> for TimeseriesName { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for TimeseriesName { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -10882,7 +11010,7 @@ pub mod types { pub struct TimeseriesSchema { pub created: chrono::DateTime, pub datum_type: DatumType, - pub field_schema: Vec, + pub field_schema: ::std::vec::Vec, pub timeseries_name: TimeseriesName, } @@ -10926,10 +11054,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct TimeseriesSchemaResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&TimeseriesSchemaResultsPage> for TimeseriesSchemaResultsPage { @@ -11034,10 +11162,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateDeploymentResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UpdateDeploymentResultsPage> for UpdateDeploymentResultsPage { @@ -11122,7 +11250,7 @@ pub mod types { impl std::str::FromStr for UpdateStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "updating" => Ok(Self::Updating), "steady" => Ok(Self::Steady), @@ -11133,21 +11261,25 @@ pub mod types { impl std::convert::TryFrom<&str> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for UpdateStatus { + impl std::convert::TryFrom<&::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for UpdateStatus { + impl std::convert::TryFrom<::std::string::String> for UpdateStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11211,7 +11343,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateableComponent { pub component_type: UpdateableComponentType, - pub device_id: String, + pub device_id: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub status: UpdateStatus, @@ -11263,10 +11395,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UpdateableComponentResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UpdateableComponentResultsPage> for UpdateableComponentResultsPage { @@ -11365,7 +11497,7 @@ pub mod types { impl std::str::FromStr for UpdateableComponentType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "bootloader_for_rot" => Ok(Self::BootloaderForRot), "bootloader_for_sp" => Ok(Self::BootloaderForSp), @@ -11386,21 +11518,25 @@ pub mod types { impl std::convert::TryFrom<&str> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for UpdateableComponentType { + impl std::convert::TryFrom<&::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for UpdateableComponentType { + impl std::convert::TryFrom<::std::string::String> for UpdateableComponentType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11439,7 +11575,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct User { ///Human-readable name that can identify the user - pub display_name: String, + pub display_name: ::std::string::String, pub id: uuid::Uuid, ///Uuid of the silo to which this user belongs pub silo_id: uuid::Uuid, @@ -11503,7 +11639,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserBuiltin { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///unique, mutable, user-controlled identifier for each resource @@ -11554,10 +11690,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserBuiltinResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UserBuiltinResultsPage> for UserBuiltinResultsPage { @@ -11636,15 +11772,15 @@ pub mod types { /// ``` /// #[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] - pub struct UserId(String); + pub struct UserId(::std::string::String); impl ::std::ops::Deref for UserId { - type Target = String; - fn deref(&self) -> &String { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { &self.0 } } - impl From for String { + impl From for ::std::string::String { fn from(value: UserId) -> Self { value.0 } @@ -11658,7 +11794,7 @@ pub mod types { impl ::std::str::FromStr for UserId { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 63usize { return Err("longer than 63 characters".into()); } @@ -11669,31 +11805,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for UserId { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom<&String> for UserId { + impl ::std::convert::TryFrom<&::std::string::String> for UserId { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl ::std::convert::TryFrom for UserId { + impl ::std::convert::TryFrom<::std::string::String> for UserId { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } impl<'de> ::serde::Deserialize<'de> for UserId { - fn deserialize(deserializer: D) -> Result + fn deserialize(deserializer: D) -> ::std::result::Result where D: ::serde::Deserializer<'de>, { - String::deserialize(deserializer)? + ::std::string::String::deserialize(deserializer)? .parse() .map_err(|e: self::error::ConversionError| { ::custom(e.to_string()) @@ -11804,10 +11944,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct UserResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&UserResultsPage> for UserResultsPage { @@ -11969,7 +12109,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Vpc { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///The name used for the VPC in DNS. pub dns_name: Name, ///unique, immutable, system-controlled identifier for each resource @@ -12042,7 +12182,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcCreate { - pub description: String, + pub description: ::std::string::String, pub dns_name: Name, ///The IPv6 prefix for this VPC. /// @@ -12050,8 +12190,8 @@ pub mod types { /// range, which sould be a Unique Local Address in the range /// `fd00::/48`. The default VPC Subnet will have the first `/64` range /// from this prefix. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ipv6_prefix: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ipv6_prefix: ::std::option::Option, pub name: Name, } @@ -12175,7 +12315,7 @@ pub mod types { ///whether traffic matching the rule should be allowed or dropped pub action: VpcFirewallRuleAction, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///whether this rule is for incoming or outgoing traffic pub direction: VpcFirewallRuleDirection, ///reductions on the scope of the rule @@ -12189,7 +12329,7 @@ pub mod types { ///whether this rule is in effect pub status: VpcFirewallRuleStatus, ///list of sets of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, ///timestamp when this resource was created pub time_created: chrono::DateTime, ///timestamp when this resource was last modified @@ -12254,7 +12394,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleAction { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "allow" => Ok(Self::Allow), "deny" => Ok(Self::Deny), @@ -12265,21 +12405,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleAction { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleAction { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleAction { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12334,7 +12478,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleDirection { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "inbound" => Ok(Self::Inbound), "outbound" => Ok(Self::Outbound), @@ -12345,21 +12489,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleDirection { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleDirection { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleDirection { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12418,14 +12566,14 @@ pub mod types { pub struct VpcFirewallRuleFilter { ///If present, the sources (if incoming) or destinations (if outgoing) /// this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub hosts: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub hosts: ::std::option::Option<::std::vec::Vec>, ///If present, the destination ports this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ports: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ports: ::std::option::Option<::std::vec::Vec>, ///If present, the networking protocols this rule applies to. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub protocols: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub protocols: ::std::option::Option<::std::vec::Vec>, } impl From<&VpcFirewallRuleFilter> for VpcFirewallRuleFilter { @@ -12643,7 +12791,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleProtocol { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "TCP" => Ok(Self::Tcp), "UDP" => Ok(Self::Udp), @@ -12655,21 +12803,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleProtocol { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleProtocol { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleProtocol { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12724,7 +12876,7 @@ pub mod types { impl std::str::FromStr for VpcFirewallRuleStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "disabled" => Ok(Self::Disabled), "enabled" => Ok(Self::Enabled), @@ -12735,21 +12887,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcFirewallRuleStatus { + impl std::convert::TryFrom<&::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcFirewallRuleStatus { + impl std::convert::TryFrom<::std::string::String> for VpcFirewallRuleStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -12991,7 +13147,7 @@ pub mod types { ///whether traffic matching the rule should be allowed or dropped pub action: VpcFirewallRuleAction, ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///whether this rule is for incoming or outgoing traffic pub direction: VpcFirewallRuleDirection, ///reductions on the scope of the rule @@ -13003,7 +13159,7 @@ pub mod types { ///whether this rule is in effect pub status: VpcFirewallRuleStatus, ///list of sets of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { @@ -13040,7 +13196,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcFirewallRuleUpdateParams { - pub rules: Vec, + pub rules: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdateParams> for VpcFirewallRuleUpdateParams { @@ -13073,7 +13229,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcFirewallRules { - pub rules: Vec, + pub rules: ::std::vec::Vec, } impl From<&VpcFirewallRules> for VpcFirewallRules { @@ -13116,10 +13272,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcResultsPage> for VpcResultsPage { @@ -13192,7 +13348,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouter { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub kind: VpcRouterKind, @@ -13239,7 +13395,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouterCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -13299,7 +13455,7 @@ pub mod types { impl std::str::FromStr for VpcRouterKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "system" => Ok(Self::System), "custom" => Ok(Self::Custom), @@ -13310,21 +13466,25 @@ pub mod types { impl std::convert::TryFrom<&str> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for VpcRouterKind { + impl std::convert::TryFrom<&::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for VpcRouterKind { + impl std::convert::TryFrom<::std::string::String> for VpcRouterKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -13363,10 +13523,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouterResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcRouterResultsPage> for VpcRouterResultsPage { @@ -13412,10 +13572,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcRouterUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcRouterUpdate> for VpcRouterUpdate { @@ -13504,7 +13664,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnet { ///human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, ///unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, ///The IPv4 subnet CIDR block. @@ -13584,7 +13744,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnetCreate { - pub description: String, + pub description: ::std::string::String, ///The IPv4 address range for this subnet. /// ///It must be allocated from an RFC 1918 private address range, and @@ -13596,8 +13756,8 @@ pub mod types { /// with the prefix equal to the parent VPC's prefix. A random `/64` /// block will be assigned if one is not provided. It must not overlap /// with any existing subnet in the VPC. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ipv6_block: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ipv6_block: ::std::option::Option, pub name: Name, } @@ -13641,10 +13801,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnetResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&VpcSubnetResultsPage> for VpcSubnetResultsPage { @@ -13690,10 +13850,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcSubnetUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcSubnetUpdate> for VpcSubnetUpdate { @@ -13752,12 +13912,12 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct VpcUpdate { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub dns_name: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub description: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub dns_name: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub name: ::std::option::Option, } impl From<&VpcUpdate> for VpcUpdate { diff --git a/progenitor-impl/tests/output/src/param_overrides_builder.rs b/progenitor-impl/tests/output/src/param_overrides_builder.rs index 18986a36..3d6e7742 100644 --- a/progenitor-impl/tests/output/src/param_overrides_builder.rs +++ b/progenitor-impl/tests/output/src/param_overrides_builder.rs @@ -137,7 +137,7 @@ pub mod builder { pub struct KeyGet<'a> { client: &'a super::Client, key: Result, String>, - unique_key: Result, String>, + unique_key: Result, String>, } impl<'a> KeyGet<'a> { @@ -162,12 +162,11 @@ pub mod builder { pub fn unique_key(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.unique_key = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for unique_key failed".to_string()); + self.unique_key = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for unique_key failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/param_overrides_builder_tagged.rs b/progenitor-impl/tests/output/src/param_overrides_builder_tagged.rs index a8c4e2d4..ea7f58f6 100644 --- a/progenitor-impl/tests/output/src/param_overrides_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/param_overrides_builder_tagged.rs @@ -137,7 +137,7 @@ pub mod builder { pub struct KeyGet<'a> { client: &'a super::Client, key: Result, String>, - unique_key: Result, String>, + unique_key: Result, String>, } impl<'a> KeyGet<'a> { @@ -162,12 +162,11 @@ pub mod builder { pub fn unique_key(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.unique_key = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for unique_key failed".to_string()); + self.unique_key = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for unique_key failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/param_overrides_cli.rs b/progenitor-impl/tests/output/src/param_overrides_cli.rs index 9b4dae99..15c7b965 100644 --- a/progenitor-impl/tests/output/src/param_overrides_cli.rs +++ b/progenitor-impl/tests/output/src/param_overrides_cli.rs @@ -27,7 +27,7 @@ impl Cli { .arg( ::clap::Arg::new("unique-key") .long("unique-key") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false) .help("A key parameter that will not be overridden by the path spec"), ) @@ -50,7 +50,7 @@ impl Cli { request = request.key(value.clone()); } - if let Some(value) = matches.get_one::("unique-key") { + if let Some(value) = matches.get_one::<::std::string::String>("unique-key") { request = request.unique_key(value.clone()); } diff --git a/progenitor-impl/tests/output/src/propolis_server_builder.rs b/progenitor-impl/tests/output/src/propolis_server_builder.rs index 29d49667..e0ae0813 100644 --- a/progenitor-impl/tests/output/src/propolis_server_builder.rs +++ b/progenitor-impl/tests/output/src/propolis_server_builder.rs @@ -113,22 +113,22 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct CrucibleOpts { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cert_pem: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub control: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub flush_timeout: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cert_pem: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub control: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub flush_timeout: ::std::option::Option, pub id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub key: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub key_pem: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub key: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub key_pem: ::std::option::Option<::std::string::String>, pub lossy: bool, pub read_only: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub root_cert_pem: Option, - pub target: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub root_cert_pem: ::std::option::Option<::std::string::String>, + pub target: ::std::vec::Vec<::std::string::String>, } impl From<&CrucibleOpts> for CrucibleOpts { @@ -291,9 +291,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DiskRequest { - pub device: String, + pub device: ::std::string::String, pub gen: u64, - pub name: String, + pub name: ::std::string::String, pub read_only: bool, pub slot: Slot, pub volume_construction_request: VolumeConstructionRequest, @@ -341,10 +341,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -399,8 +399,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Instance { - pub disks: Vec, - pub nics: Vec, + pub disks: ::std::vec::Vec, + pub nics: ::std::vec::Vec, pub properties: InstanceProperties, pub state: InstanceState, } @@ -474,14 +474,14 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceEnsureRequest { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cloud_init_bytes: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub disks: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migrate: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub nics: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cloud_init_bytes: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub disks: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migrate: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub nics: ::std::vec::Vec, pub properties: InstanceProperties, } @@ -528,8 +528,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceEnsureResponse { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migrate: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migrate: ::std::option::Option, } impl From<&InstanceEnsureResponse> for InstanceEnsureResponse { @@ -614,7 +614,7 @@ pub mod types { )] pub struct InstanceMigrateInitiateRequest { pub migration_id: uuid::Uuid, - pub src_addr: String, + pub src_addr: ::std::string::String, pub src_uuid: uuid::Uuid, } @@ -807,7 +807,7 @@ pub mod types { ///ID of the bootrom used to initialize this Instance. pub bootrom_id: uuid::Uuid, ///Free-form text description of an Instance. - pub description: String, + pub description: ::std::string::String, ///Unique identifier for this Instance. pub id: uuid::Uuid, ///ID of the image used to initialize this Instance. @@ -815,7 +815,7 @@ pub mod types { ///Size of memory allocated to the Instance, in MiB. pub memory: u64, ///Human-readable name of the Instance. - pub name: String, + pub name: ::std::string::String, ///Number of vCPUs to be allocated to the Instance. pub vcpus: u8, } @@ -906,7 +906,7 @@ pub mod types { impl std::str::FromStr for InstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Creating" => Ok(Self::Creating), "Starting" => Ok(Self::Starting), @@ -925,21 +925,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceState { + impl std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceState { + impl std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1082,7 +1086,7 @@ pub mod types { impl std::str::FromStr for InstanceStateRequested { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Run" => Ok(Self::Run), "Stop" => Ok(Self::Stop), @@ -1095,21 +1099,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceStateRequested { + impl std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceStateRequested { + impl std::convert::TryFrom<::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1187,7 +1195,7 @@ pub mod types { impl std::str::FromStr for MigrationState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Sync" => Ok(Self::Sync), "RamPush" => Ok(Self::RamPush), @@ -1206,21 +1214,25 @@ pub mod types { impl std::convert::TryFrom<&str> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for MigrationState { + impl std::convert::TryFrom<&::std::string::String> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for MigrationState { + impl std::convert::TryFrom<::std::string::String> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1252,7 +1264,7 @@ pub mod types { )] pub struct NetworkInterface { pub attachment: NetworkInterfaceAttachmentState, - pub name: String, + pub name: ::std::string::String, } impl From<&NetworkInterface> for NetworkInterface { @@ -1344,7 +1356,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct NetworkInterfaceRequest { - pub name: String, + pub name: ::std::string::String, pub slot: Slot, } @@ -1405,29 +1417,29 @@ pub mod types { } impl std::str::FromStr for Slot { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for Slot { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for Slot { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for Slot { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -1593,15 +1605,15 @@ pub mod types { Volume { block_size: u64, id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - read_only_parent: Option>, - sub_volumes: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + read_only_parent: ::std::option::Option<::std::boxed::Box>, + sub_volumes: ::std::vec::Vec, }, #[serde(rename = "url")] Url { block_size: u64, id: uuid::Uuid, - url: String, + url: ::std::string::String, }, #[serde(rename = "region")] Region { @@ -1613,7 +1625,7 @@ pub mod types { File { block_size: u64, id: uuid::Uuid, - path: String, + path: ::std::string::String, }, } @@ -1627,16 +1639,34 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct CrucibleOpts { - cert_pem: Result, String>, - control: Result, String>, - flush_timeout: Result, String>, - id: Result, - key: Result, String>, - key_pem: Result, String>, - lossy: Result, - read_only: Result, - root_cert_pem: Result, String>, - target: Result, String>, + cert_pem: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + control: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + flush_timeout: ::std::result::Result<::std::option::Option, ::std::string::String>, + id: ::std::result::Result, + key: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + key_pem: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + lossy: ::std::result::Result, + read_only: ::std::result::Result, + root_cert_pem: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + target: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, } impl Default for CrucibleOpts { @@ -1659,7 +1689,7 @@ pub mod types { impl CrucibleOpts { pub fn cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.cert_pem = value @@ -1669,7 +1699,7 @@ pub mod types { } pub fn control(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.control = value @@ -1679,7 +1709,7 @@ pub mod types { } pub fn flush_timeout(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.flush_timeout = value.try_into().map_err(|e| { @@ -1699,7 +1729,7 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.key = value @@ -1709,7 +1739,7 @@ pub mod types { } pub fn key_pem(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.key_pem = value @@ -1739,7 +1769,7 @@ pub mod types { } pub fn root_cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -1749,7 +1779,7 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.target = value @@ -1759,9 +1789,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CrucibleOpts { + impl ::std::convert::TryFrom for super::CrucibleOpts { type Error = super::error::ConversionError; - fn try_from(value: CrucibleOpts) -> Result { + fn try_from( + value: CrucibleOpts, + ) -> ::std::result::Result { Ok(Self { cert_pem: value.cert_pem?, control: value.control?, @@ -1796,9 +1828,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskAttachment { - disk_id: Result, - generation_id: Result, - state: Result, + disk_id: ::std::result::Result, + generation_id: ::std::result::Result, + state: ::std::result::Result, } impl Default for DiskAttachment { @@ -1844,9 +1876,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskAttachment { + impl ::std::convert::TryFrom for super::DiskAttachment { type Error = super::error::ConversionError; - fn try_from(value: DiskAttachment) -> Result { + fn try_from( + value: DiskAttachment, + ) -> ::std::result::Result { Ok(Self { disk_id: value.disk_id?, generation_id: value.generation_id?, @@ -1867,12 +1901,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskRequest { - device: Result, - gen: Result, - name: Result, - read_only: Result, - slot: Result, - volume_construction_request: Result, + device: ::std::result::Result<::std::string::String, ::std::string::String>, + gen: ::std::result::Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + read_only: ::std::result::Result, + slot: ::std::result::Result, + volume_construction_request: + ::std::result::Result, } impl Default for DiskRequest { @@ -1893,7 +1928,7 @@ pub mod types { impl DiskRequest { pub fn device(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device = value @@ -1913,7 +1948,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1956,9 +1991,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskRequest { + impl ::std::convert::TryFrom for super::DiskRequest { type Error = super::error::ConversionError; - fn try_from(value: DiskRequest) -> Result { + fn try_from( + value: DiskRequest, + ) -> ::std::result::Result { Ok(Self { device: value.device?, gen: value.gen?, @@ -1985,9 +2022,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct Error { - error_code: Result, String>, - message: Result, - request_id: Result, + error_code: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + message: ::std::result::Result<::std::string::String, ::std::string::String>, + request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Error { @@ -2003,7 +2043,7 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.error_code = value @@ -2013,7 +2053,7 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.message = value @@ -2023,7 +2063,7 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.request_id = value @@ -2033,9 +2073,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Error { + impl ::std::convert::TryFrom for super::Error { type Error = super::error::ConversionError; - fn try_from(value: Error) -> Result { + fn try_from( + value: Error, + ) -> ::std::result::Result { Ok(Self { error_code: value.error_code?, message: value.message?, @@ -2056,10 +2098,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct Instance { - disks: Result, String>, - nics: Result, String>, - properties: Result, - state: Result, + disks: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + nics: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + properties: ::std::result::Result, + state: ::std::result::Result, } impl Default for Instance { @@ -2076,7 +2124,7 @@ pub mod types { impl Instance { pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.disks = value @@ -2086,7 +2134,7 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.nics = value @@ -2116,9 +2164,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Instance { + impl ::std::convert::TryFrom for super::Instance { type Error = super::error::ConversionError; - fn try_from(value: Instance) -> Result { + fn try_from( + value: Instance, + ) -> ::std::result::Result { Ok(Self { disks: value.disks?, nics: value.nics?, @@ -2141,11 +2191,21 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceEnsureRequest { - cloud_init_bytes: Result, String>, - disks: Result, String>, - migrate: Result, String>, - nics: Result, String>, - properties: Result, + cloud_init_bytes: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + disks: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + migrate: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + nics: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + properties: ::std::result::Result, } impl Default for InstanceEnsureRequest { @@ -2163,7 +2223,7 @@ pub mod types { impl InstanceEnsureRequest { pub fn cloud_init_bytes(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -2176,7 +2236,7 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.disks = value @@ -2186,7 +2246,9 @@ 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, { self.migrate = value @@ -2196,7 +2258,7 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.nics = value @@ -2216,11 +2278,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceEnsureRequest { + impl ::std::convert::TryFrom for super::InstanceEnsureRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceEnsureRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { cloud_init_bytes: value.cloud_init_bytes?, disks: value.disks?, @@ -2245,7 +2307,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceEnsureResponse { - migrate: Result, String>, + migrate: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for InstanceEnsureResponse { @@ -2259,7 +2324,9 @@ 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, { self.migrate = value @@ -2269,11 +2336,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceEnsureResponse { + impl ::std::convert::TryFrom for super::InstanceEnsureResponse { type Error = super::error::ConversionError; fn try_from( value: InstanceEnsureResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migrate: value.migrate?, }) @@ -2290,7 +2357,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceGetResponse { - instance: Result, + instance: ::std::result::Result, } impl Default for InstanceGetResponse { @@ -2314,9 +2381,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceGetResponse { + impl ::std::convert::TryFrom for super::InstanceGetResponse { type Error = super::error::ConversionError; - fn try_from(value: InstanceGetResponse) -> Result { + fn try_from( + value: InstanceGetResponse, + ) -> ::std::result::Result { Ok(Self { instance: value.instance?, }) @@ -2333,9 +2402,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateRequest { - migration_id: Result, - src_addr: Result, - src_uuid: Result, + migration_id: ::std::result::Result, + src_addr: ::std::result::Result<::std::string::String, ::std::string::String>, + src_uuid: ::std::result::Result, } impl Default for InstanceMigrateInitiateRequest { @@ -2361,7 +2430,7 @@ pub mod types { } pub fn src_addr(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.src_addr = value @@ -2381,13 +2450,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceMigrateInitiateRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateInitiateRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migration_id: value.migration_id?, src_addr: value.src_addr?, @@ -2408,7 +2477,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateResponse { - migration_id: Result, + migration_id: ::std::result::Result, } impl Default for InstanceMigrateInitiateResponse { @@ -2432,13 +2501,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceMigrateInitiateResponse { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateInitiateResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migration_id: value.migration_id?, }) @@ -2455,7 +2524,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateStatusRequest { - migration_id: Result, + migration_id: ::std::result::Result, } impl Default for InstanceMigrateStatusRequest { @@ -2479,11 +2548,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceMigrateStatusRequest { + impl ::std::convert::TryFrom for super::InstanceMigrateStatusRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateStatusRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migration_id: value.migration_id?, }) @@ -2500,7 +2569,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateStatusResponse { - state: Result, + state: ::std::result::Result, } impl Default for InstanceMigrateStatusResponse { @@ -2524,11 +2593,13 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceMigrateStatusResponse { + impl ::std::convert::TryFrom + for super::InstanceMigrateStatusResponse + { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateStatusResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { state: value.state?, }) @@ -2545,13 +2616,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceProperties { - bootrom_id: Result, - description: Result, - id: Result, - image_id: Result, - memory: Result, - name: Result, - vcpus: Result, + bootrom_id: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + image_id: ::std::result::Result, + memory: ::std::result::Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + vcpus: ::std::result::Result, } impl Default for InstanceProperties { @@ -2581,7 +2652,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -2621,7 +2692,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2641,9 +2712,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceProperties { + impl ::std::convert::TryFrom for super::InstanceProperties { type Error = super::error::ConversionError; - fn try_from(value: InstanceProperties) -> Result { + fn try_from( + value: InstanceProperties, + ) -> ::std::result::Result { Ok(Self { bootrom_id: value.bootrom_id?, description: value.description?, @@ -2672,7 +2745,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceStateMonitorRequest { - gen: Result, + gen: ::std::result::Result, } impl Default for InstanceStateMonitorRequest { @@ -2696,11 +2769,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceStateMonitorRequest { + impl ::std::convert::TryFrom for super::InstanceStateMonitorRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceStateMonitorRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { gen: value.gen? }) } } @@ -2713,8 +2786,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceStateMonitorResponse { - gen: Result, - state: Result, + gen: ::std::result::Result, + state: ::std::result::Result, } impl Default for InstanceStateMonitorResponse { @@ -2749,11 +2822,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceStateMonitorResponse { + impl ::std::convert::TryFrom for super::InstanceStateMonitorResponse { type Error = super::error::ConversionError; fn try_from( value: InstanceStateMonitorResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { gen: value.gen?, state: value.state?, @@ -2772,8 +2845,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { - attachment: Result, - name: Result, + attachment: ::std::result::Result< + super::NetworkInterfaceAttachmentState, + ::std::string::String, + >, + name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for NetworkInterface { @@ -2798,7 +2874,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2808,9 +2884,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterface { + impl ::std::convert::TryFrom for super::NetworkInterface { type Error = super::error::ConversionError; - fn try_from(value: NetworkInterface) -> Result { + fn try_from( + value: NetworkInterface, + ) -> ::std::result::Result { Ok(Self { attachment: value.attachment?, name: value.name?, @@ -2829,8 +2907,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceRequest { - name: Result, - slot: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + slot: ::std::result::Result, } impl Default for NetworkInterfaceRequest { @@ -2845,7 +2923,7 @@ pub mod types { impl NetworkInterfaceRequest { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2865,11 +2943,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceRequest { + impl ::std::convert::TryFrom for super::NetworkInterfaceRequest { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { name: value.name?, slot: value.slot?, 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 528744c3..1757ac69 100644 --- a/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs +++ b/progenitor-impl/tests/output/src/propolis_server_builder_tagged.rs @@ -111,22 +111,22 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CrucibleOpts { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cert_pem: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub control: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub flush_timeout: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cert_pem: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub control: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub flush_timeout: ::std::option::Option, pub id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub key: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub key_pem: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub key: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub key_pem: ::std::option::Option<::std::string::String>, pub lossy: bool, pub read_only: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub root_cert_pem: Option, - pub target: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub root_cert_pem: ::std::option::Option<::std::string::String>, + pub target: ::std::vec::Vec<::std::string::String>, } impl From<&CrucibleOpts> for CrucibleOpts { @@ -283,9 +283,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskRequest { - pub device: String, + pub device: ::std::string::String, pub gen: u64, - pub name: String, + pub name: ::std::string::String, pub read_only: bool, pub slot: Slot, pub volume_construction_request: VolumeConstructionRequest, @@ -331,10 +331,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -387,8 +387,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Instance { - pub disks: Vec, - pub nics: Vec, + pub disks: ::std::vec::Vec, + pub nics: ::std::vec::Vec, pub properties: InstanceProperties, pub state: InstanceState, } @@ -460,14 +460,14 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceEnsureRequest { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cloud_init_bytes: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub disks: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migrate: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub nics: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cloud_init_bytes: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub disks: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migrate: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub nics: ::std::vec::Vec, pub properties: InstanceProperties, } @@ -512,8 +512,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceEnsureResponse { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migrate: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migrate: ::std::option::Option, } impl From<&InstanceEnsureResponse> for InstanceEnsureResponse { @@ -594,7 +594,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateInitiateRequest { pub migration_id: uuid::Uuid, - pub src_addr: String, + pub src_addr: ::std::string::String, pub src_uuid: uuid::Uuid, } @@ -779,7 +779,7 @@ pub mod types { ///ID of the bootrom used to initialize this Instance. pub bootrom_id: uuid::Uuid, ///Free-form text description of an Instance. - pub description: String, + pub description: ::std::string::String, ///Unique identifier for this Instance. pub id: uuid::Uuid, ///ID of the image used to initialize this Instance. @@ -787,7 +787,7 @@ pub mod types { ///Size of memory allocated to the Instance, in MiB. pub memory: u64, ///Human-readable name of the Instance. - pub name: String, + pub name: ::std::string::String, ///Number of vCPUs to be allocated to the Instance. pub vcpus: u8, } @@ -877,7 +877,7 @@ pub mod types { impl std::str::FromStr for InstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Creating" => Ok(Self::Creating), "Starting" => Ok(Self::Starting), @@ -896,21 +896,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceState { + impl std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceState { + impl std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1048,7 +1052,7 @@ pub mod types { impl std::str::FromStr for InstanceStateRequested { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Run" => Ok(Self::Run), "Stop" => Ok(Self::Stop), @@ -1061,21 +1065,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceStateRequested { + impl std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceStateRequested { + impl std::convert::TryFrom<::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1152,7 +1160,7 @@ pub mod types { impl std::str::FromStr for MigrationState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Sync" => Ok(Self::Sync), "RamPush" => Ok(Self::RamPush), @@ -1171,21 +1179,25 @@ pub mod types { impl std::convert::TryFrom<&str> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for MigrationState { + impl std::convert::TryFrom<&::std::string::String> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for MigrationState { + impl std::convert::TryFrom<::std::string::String> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1215,7 +1227,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterface { pub attachment: NetworkInterfaceAttachmentState, - pub name: String, + pub name: ::std::string::String, } impl From<&NetworkInterface> for NetworkInterface { @@ -1303,7 +1315,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceRequest { - pub name: String, + pub name: ::std::string::String, pub slot: Slot, } @@ -1362,29 +1374,29 @@ pub mod types { } impl std::str::FromStr for Slot { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for Slot { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for Slot { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for Slot { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -1548,15 +1560,15 @@ pub mod types { Volume { block_size: u64, id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - read_only_parent: Option>, - sub_volumes: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + read_only_parent: ::std::option::Option<::std::boxed::Box>, + sub_volumes: ::std::vec::Vec, }, #[serde(rename = "url")] Url { block_size: u64, id: uuid::Uuid, - url: String, + url: ::std::string::String, }, #[serde(rename = "region")] Region { @@ -1568,7 +1580,7 @@ pub mod types { File { block_size: u64, id: uuid::Uuid, - path: String, + path: ::std::string::String, }, } @@ -1582,16 +1594,34 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct CrucibleOpts { - cert_pem: Result, String>, - control: Result, String>, - flush_timeout: Result, String>, - id: Result, - key: Result, String>, - key_pem: Result, String>, - lossy: Result, - read_only: Result, - root_cert_pem: Result, String>, - target: Result, String>, + cert_pem: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + control: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + flush_timeout: ::std::result::Result<::std::option::Option, ::std::string::String>, + id: ::std::result::Result, + key: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + key_pem: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + lossy: ::std::result::Result, + read_only: ::std::result::Result, + root_cert_pem: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + target: ::std::result::Result< + ::std::vec::Vec<::std::string::String>, + ::std::string::String, + >, } impl Default for CrucibleOpts { @@ -1614,7 +1644,7 @@ pub mod types { impl CrucibleOpts { pub fn cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.cert_pem = value @@ -1624,7 +1654,7 @@ pub mod types { } pub fn control(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.control = value @@ -1634,7 +1664,7 @@ pub mod types { } pub fn flush_timeout(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.flush_timeout = value.try_into().map_err(|e| { @@ -1654,7 +1684,7 @@ pub mod types { } pub fn key(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.key = value @@ -1664,7 +1694,7 @@ pub mod types { } pub fn key_pem(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.key_pem = value @@ -1694,7 +1724,7 @@ pub mod types { } pub fn root_cert_pem(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -1704,7 +1734,7 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec<::std::string::String>>, T::Error: std::fmt::Display, { self.target = value @@ -1714,9 +1744,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CrucibleOpts { + impl ::std::convert::TryFrom for super::CrucibleOpts { type Error = super::error::ConversionError; - fn try_from(value: CrucibleOpts) -> Result { + fn try_from( + value: CrucibleOpts, + ) -> ::std::result::Result { Ok(Self { cert_pem: value.cert_pem?, control: value.control?, @@ -1751,9 +1783,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskAttachment { - disk_id: Result, - generation_id: Result, - state: Result, + disk_id: ::std::result::Result, + generation_id: ::std::result::Result, + state: ::std::result::Result, } impl Default for DiskAttachment { @@ -1799,9 +1831,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskAttachment { + impl ::std::convert::TryFrom for super::DiskAttachment { type Error = super::error::ConversionError; - fn try_from(value: DiskAttachment) -> Result { + fn try_from( + value: DiskAttachment, + ) -> ::std::result::Result { Ok(Self { disk_id: value.disk_id?, generation_id: value.generation_id?, @@ -1822,12 +1856,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskRequest { - device: Result, - gen: Result, - name: Result, - read_only: Result, - slot: Result, - volume_construction_request: Result, + device: ::std::result::Result<::std::string::String, ::std::string::String>, + gen: ::std::result::Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + read_only: ::std::result::Result, + slot: ::std::result::Result, + volume_construction_request: + ::std::result::Result, } impl Default for DiskRequest { @@ -1848,7 +1883,7 @@ pub mod types { impl DiskRequest { pub fn device(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.device = value @@ -1868,7 +1903,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -1911,9 +1946,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::DiskRequest { + impl ::std::convert::TryFrom for super::DiskRequest { type Error = super::error::ConversionError; - fn try_from(value: DiskRequest) -> Result { + fn try_from( + value: DiskRequest, + ) -> ::std::result::Result { Ok(Self { device: value.device?, gen: value.gen?, @@ -1940,9 +1977,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct Error { - error_code: Result, String>, - message: Result, - request_id: Result, + error_code: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + message: ::std::result::Result<::std::string::String, ::std::string::String>, + request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Error { @@ -1958,7 +1998,7 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.error_code = value @@ -1968,7 +2008,7 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.message = value @@ -1978,7 +2018,7 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.request_id = value @@ -1988,9 +2028,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Error { + impl ::std::convert::TryFrom for super::Error { type Error = super::error::ConversionError; - fn try_from(value: Error) -> Result { + fn try_from( + value: Error, + ) -> ::std::result::Result { Ok(Self { error_code: value.error_code?, message: value.message?, @@ -2011,10 +2053,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct Instance { - disks: Result, String>, - nics: Result, String>, - properties: Result, - state: Result, + disks: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + nics: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + properties: ::std::result::Result, + state: ::std::result::Result, } impl Default for Instance { @@ -2031,7 +2079,7 @@ pub mod types { impl Instance { pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.disks = value @@ -2041,7 +2089,7 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.nics = value @@ -2071,9 +2119,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Instance { + impl ::std::convert::TryFrom for super::Instance { type Error = super::error::ConversionError; - fn try_from(value: Instance) -> Result { + fn try_from( + value: Instance, + ) -> ::std::result::Result { Ok(Self { disks: value.disks?, nics: value.nics?, @@ -2096,11 +2146,21 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceEnsureRequest { - cloud_init_bytes: Result, String>, - disks: Result, String>, - migrate: Result, String>, - nics: Result, String>, - properties: Result, + cloud_init_bytes: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + disks: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + migrate: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + nics: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + properties: ::std::result::Result, } impl Default for InstanceEnsureRequest { @@ -2118,7 +2178,7 @@ pub mod types { impl InstanceEnsureRequest { pub fn cloud_init_bytes(mut self, value: T) -> Self where - T: std::convert::TryInto>, + 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| { @@ -2131,7 +2191,7 @@ pub mod types { } pub fn disks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.disks = value @@ -2141,7 +2201,9 @@ 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, { self.migrate = value @@ -2151,7 +2213,7 @@ pub mod types { } pub fn nics(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.nics = value @@ -2171,11 +2233,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceEnsureRequest { + impl ::std::convert::TryFrom for super::InstanceEnsureRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceEnsureRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { cloud_init_bytes: value.cloud_init_bytes?, disks: value.disks?, @@ -2200,7 +2262,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceEnsureResponse { - migrate: Result, String>, + migrate: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for InstanceEnsureResponse { @@ -2214,7 +2279,9 @@ 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, { self.migrate = value @@ -2224,11 +2291,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceEnsureResponse { + impl ::std::convert::TryFrom for super::InstanceEnsureResponse { type Error = super::error::ConversionError; fn try_from( value: InstanceEnsureResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migrate: value.migrate?, }) @@ -2245,7 +2312,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceGetResponse { - instance: Result, + instance: ::std::result::Result, } impl Default for InstanceGetResponse { @@ -2269,9 +2336,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceGetResponse { + impl ::std::convert::TryFrom for super::InstanceGetResponse { type Error = super::error::ConversionError; - fn try_from(value: InstanceGetResponse) -> Result { + fn try_from( + value: InstanceGetResponse, + ) -> ::std::result::Result { Ok(Self { instance: value.instance?, }) @@ -2288,9 +2357,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateRequest { - migration_id: Result, - src_addr: Result, - src_uuid: Result, + migration_id: ::std::result::Result, + src_addr: ::std::result::Result<::std::string::String, ::std::string::String>, + src_uuid: ::std::result::Result, } impl Default for InstanceMigrateInitiateRequest { @@ -2316,7 +2385,7 @@ pub mod types { } pub fn src_addr(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.src_addr = value @@ -2336,13 +2405,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceMigrateInitiateRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateInitiateRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migration_id: value.migration_id?, src_addr: value.src_addr?, @@ -2363,7 +2432,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateInitiateResponse { - migration_id: Result, + migration_id: ::std::result::Result, } impl Default for InstanceMigrateInitiateResponse { @@ -2387,13 +2456,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceMigrateInitiateResponse { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateInitiateResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migration_id: value.migration_id?, }) @@ -2410,7 +2479,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateStatusRequest { - migration_id: Result, + migration_id: ::std::result::Result, } impl Default for InstanceMigrateStatusRequest { @@ -2434,11 +2503,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceMigrateStatusRequest { + impl ::std::convert::TryFrom for super::InstanceMigrateStatusRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateStatusRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { migration_id: value.migration_id?, }) @@ -2455,7 +2524,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceMigrateStatusResponse { - state: Result, + state: ::std::result::Result, } impl Default for InstanceMigrateStatusResponse { @@ -2479,11 +2548,13 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceMigrateStatusResponse { + impl ::std::convert::TryFrom + for super::InstanceMigrateStatusResponse + { type Error = super::error::ConversionError; fn try_from( value: InstanceMigrateStatusResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { state: value.state?, }) @@ -2500,13 +2571,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceProperties { - bootrom_id: Result, - description: Result, - id: Result, - image_id: Result, - memory: Result, - name: Result, - vcpus: Result, + bootrom_id: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + image_id: ::std::result::Result, + memory: ::std::result::Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + vcpus: ::std::result::Result, } impl Default for InstanceProperties { @@ -2536,7 +2607,7 @@ pub mod types { } pub fn description(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.description = value @@ -2576,7 +2647,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2596,9 +2667,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceProperties { + impl ::std::convert::TryFrom for super::InstanceProperties { type Error = super::error::ConversionError; - fn try_from(value: InstanceProperties) -> Result { + fn try_from( + value: InstanceProperties, + ) -> ::std::result::Result { Ok(Self { bootrom_id: value.bootrom_id?, description: value.description?, @@ -2627,7 +2700,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceStateMonitorRequest { - gen: Result, + gen: ::std::result::Result, } impl Default for InstanceStateMonitorRequest { @@ -2651,11 +2724,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceStateMonitorRequest { + impl ::std::convert::TryFrom for super::InstanceStateMonitorRequest { type Error = super::error::ConversionError; fn try_from( value: InstanceStateMonitorRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { gen: value.gen? }) } } @@ -2668,8 +2741,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceStateMonitorResponse { - gen: Result, - state: Result, + gen: ::std::result::Result, + state: ::std::result::Result, } impl Default for InstanceStateMonitorResponse { @@ -2704,11 +2777,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceStateMonitorResponse { + impl ::std::convert::TryFrom for super::InstanceStateMonitorResponse { type Error = super::error::ConversionError; fn try_from( value: InstanceStateMonitorResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { gen: value.gen?, state: value.state?, @@ -2727,8 +2800,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { - attachment: Result, - name: Result, + attachment: ::std::result::Result< + super::NetworkInterfaceAttachmentState, + ::std::string::String, + >, + name: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for NetworkInterface { @@ -2753,7 +2829,7 @@ pub mod types { } pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2763,9 +2839,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterface { + impl ::std::convert::TryFrom for super::NetworkInterface { type Error = super::error::ConversionError; - fn try_from(value: NetworkInterface) -> Result { + fn try_from( + value: NetworkInterface, + ) -> ::std::result::Result { Ok(Self { attachment: value.attachment?, name: value.name?, @@ -2784,8 +2862,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterfaceRequest { - name: Result, - slot: Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + slot: ::std::result::Result, } impl Default for NetworkInterfaceRequest { @@ -2800,7 +2878,7 @@ pub mod types { impl NetworkInterfaceRequest { pub fn name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.name = value @@ -2820,11 +2898,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::NetworkInterfaceRequest { + impl ::std::convert::TryFrom for super::NetworkInterfaceRequest { type Error = super::error::ConversionError; fn try_from( value: NetworkInterfaceRequest, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { name: value.name?, slot: value.slot?, diff --git a/progenitor-impl/tests/output/src/propolis_server_cli.rs b/progenitor-impl/tests/output/src/propolis_server_cli.rs index d53f079f..11e70620 100644 --- a/progenitor-impl/tests/output/src/propolis_server_cli.rs +++ b/progenitor-impl/tests/output/src/propolis_server_cli.rs @@ -32,7 +32,7 @@ impl Cli { .arg( ::clap::Arg::new("cloud-init-bytes") .long("cloud-init-bytes") - .value_parser(::clap::value_parser!(String)) + .value_parser(::clap::value_parser!(::std::string::String)) .required(false), ) .arg( @@ -180,7 +180,7 @@ impl Cli { matches: &::clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.instance_ensure(); - if let Some(value) = matches.get_one::("cloud-init-bytes") { + if let Some(value) = matches.get_one::<::std::string::String>("cloud-init-bytes") { request = request.body_map(|body| body.cloud_init_bytes(value.clone())) } diff --git a/progenitor-impl/tests/output/src/propolis_server_positional.rs b/progenitor-impl/tests/output/src/propolis_server_positional.rs index 80862fa1..7ad3bcab 100644 --- a/progenitor-impl/tests/output/src/propolis_server_positional.rs +++ b/progenitor-impl/tests/output/src/propolis_server_positional.rs @@ -111,22 +111,22 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct CrucibleOpts { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cert_pem: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub control: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub flush_timeout: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cert_pem: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub control: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub flush_timeout: ::std::option::Option, pub id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub key: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub key_pem: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub key: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub key_pem: ::std::option::Option<::std::string::String>, pub lossy: bool, pub read_only: bool, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub root_cert_pem: Option, - pub target: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub root_cert_pem: ::std::option::Option<::std::string::String>, + pub target: ::std::vec::Vec<::std::string::String>, } impl From<&CrucibleOpts> for CrucibleOpts { @@ -271,9 +271,9 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct DiskRequest { - pub device: String, + pub device: ::std::string::String, pub gen: u64, - pub name: String, + pub name: ::std::string::String, pub read_only: bool, pub slot: Slot, pub volume_construction_request: VolumeConstructionRequest, @@ -313,10 +313,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -363,8 +363,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Instance { - pub disks: Vec, - pub nics: Vec, + pub disks: ::std::vec::Vec, + pub nics: ::std::vec::Vec, pub properties: InstanceProperties, pub state: InstanceState, } @@ -430,14 +430,14 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceEnsureRequest { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cloud_init_bytes: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub disks: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migrate: Option, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub nics: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cloud_init_bytes: ::std::option::Option<::std::string::String>, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub disks: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migrate: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub nics: ::std::vec::Vec, pub properties: InstanceProperties, } @@ -476,8 +476,8 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceEnsureResponse { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migrate: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migrate: ::std::option::Option, } impl From<&InstanceEnsureResponse> for InstanceEnsureResponse { @@ -546,7 +546,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct InstanceMigrateInitiateRequest { pub migration_id: uuid::Uuid, - pub src_addr: String, + pub src_addr: ::std::string::String, pub src_uuid: uuid::Uuid, } @@ -707,7 +707,7 @@ pub mod types { ///ID of the bootrom used to initialize this Instance. pub bootrom_id: uuid::Uuid, ///Free-form text description of an Instance. - pub description: String, + pub description: ::std::string::String, ///Unique identifier for this Instance. pub id: uuid::Uuid, ///ID of the image used to initialize this Instance. @@ -715,7 +715,7 @@ pub mod types { ///Size of memory allocated to the Instance, in MiB. pub memory: u64, ///Human-readable name of the Instance. - pub name: String, + pub name: ::std::string::String, ///Number of vCPUs to be allocated to the Instance. pub vcpus: u8, } @@ -799,7 +799,7 @@ pub mod types { impl std::str::FromStr for InstanceState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Creating" => Ok(Self::Creating), "Starting" => Ok(Self::Starting), @@ -818,21 +818,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceState { + impl std::convert::TryFrom<&::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceState { + impl std::convert::TryFrom<::std::string::String> for InstanceState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -958,7 +962,7 @@ pub mod types { impl std::str::FromStr for InstanceStateRequested { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Run" => Ok(Self::Run), "Stop" => Ok(Self::Stop), @@ -971,21 +975,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for InstanceStateRequested { + impl std::convert::TryFrom<&::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for InstanceStateRequested { + impl std::convert::TryFrom<::std::string::String> for InstanceStateRequested { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1062,7 +1070,7 @@ pub mod types { impl std::str::FromStr for MigrationState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "Sync" => Ok(Self::Sync), "RamPush" => Ok(Self::RamPush), @@ -1081,21 +1089,25 @@ pub mod types { impl std::convert::TryFrom<&str> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: &str) -> Result { + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom<&String> for MigrationState { + impl std::convert::TryFrom<&::std::string::String> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: &String) -> Result { + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { value.parse() } } - impl std::convert::TryFrom for MigrationState { + impl std::convert::TryFrom<::std::string::String> for MigrationState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1125,7 +1137,7 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterface { pub attachment: NetworkInterfaceAttachmentState, - pub name: String, + pub name: ::std::string::String, } impl From<&NetworkInterface> for NetworkInterface { @@ -1207,7 +1219,7 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct NetworkInterfaceRequest { - pub name: String, + pub name: ::std::string::String, pub slot: Slot, } @@ -1260,29 +1272,29 @@ pub mod types { } impl std::str::FromStr for Slot { - type Err = ::Err; - fn from_str(value: &str) -> Result { + type Err = ::Err; + fn from_str(value: &str) -> ::std::result::Result { Ok(Self(value.parse()?)) } } impl std::convert::TryFrom<&str> for Slot { - type Error = ::Err; - fn try_from(value: &str) -> Result { + type Error = ::Err; + fn try_from(value: &str) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom<&String> for Slot { - type Error = ::Err; - fn try_from(value: &String) -> Result { + type Error = ::Err; + fn try_from(value: &String) -> ::std::result::Result { value.parse() } } impl std::convert::TryFrom for Slot { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -1446,15 +1458,15 @@ pub mod types { Volume { block_size: u64, id: uuid::Uuid, - #[serde(default, skip_serializing_if = "Option::is_none")] - read_only_parent: Option>, - sub_volumes: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + read_only_parent: ::std::option::Option<::std::boxed::Box>, + sub_volumes: ::std::vec::Vec, }, #[serde(rename = "url")] Url { block_size: u64, id: uuid::Uuid, - url: String, + url: ::std::string::String, }, #[serde(rename = "region")] Region { @@ -1466,7 +1478,7 @@ pub mod types { File { block_size: u64, id: uuid::Uuid, - path: String, + path: ::std::string::String, }, } 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 219695e0..0465e52e 100644 --- a/progenitor-impl/tests/output/src/test_default_params_builder.rs +++ b/progenitor-impl/tests/output/src/test_default_params_builder.rs @@ -76,9 +76,9 @@ pub mod types { pub struct BodyWithDefaults { #[serde(rename = "forty-two", default = "defaults::default_u64::")] pub forty_two: u32, - pub s: String, + pub s: ::std::string::String, #[serde(default = "defaults::body_with_defaults_something")] - pub something: Option, + pub something: ::std::option::Option, #[serde(default)] pub yes: bool, } @@ -123,10 +123,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -145,10 +145,10 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct BodyWithDefaults { - forty_two: Result, - s: Result, - something: Result, String>, - yes: Result, + forty_two: ::std::result::Result, + s: ::std::result::Result<::std::string::String, ::std::string::String>, + something: ::std::result::Result<::std::option::Option, ::std::string::String>, + yes: ::std::result::Result, } impl Default for BodyWithDefaults { @@ -175,7 +175,7 @@ pub mod types { } pub fn s(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.s = value @@ -185,7 +185,7 @@ pub mod types { } pub fn something(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.something = value @@ -205,9 +205,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BodyWithDefaults { + impl ::std::convert::TryFrom for super::BodyWithDefaults { type Error = super::error::ConversionError; - fn try_from(value: BodyWithDefaults) -> Result { + fn try_from( + value: BodyWithDefaults, + ) -> ::std::result::Result { Ok(Self { forty_two: value.forty_two?, s: value.s?, @@ -230,9 +232,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct Error { - error_code: Result, String>, - message: Result, - request_id: Result, + error_code: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + message: ::std::result::Result<::std::string::String, ::std::string::String>, + request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Error { @@ -248,7 +253,7 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.error_code = value @@ -258,7 +263,7 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.message = value @@ -268,7 +273,7 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.request_id = value @@ -278,9 +283,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Error { + impl ::std::convert::TryFrom for super::Error { type Error = super::error::ConversionError; - fn try_from(value: Error) -> Result { + fn try_from( + value: Error, + ) -> ::std::result::Result { Ok(Self { error_code: value.error_code?, message: value.message?, @@ -310,8 +317,8 @@ pub mod types { T::try_from(V).unwrap() } - pub(super) fn body_with_defaults_something() -> Option { - Some(true) + pub(super) fn body_with_defaults_something() -> ::std::option::Option { + ::std::option::Option::Some(true) } } } 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 00d9986a..ee5a5d83 100644 --- a/progenitor-impl/tests/output/src/test_default_params_positional.rs +++ b/progenitor-impl/tests/output/src/test_default_params_positional.rs @@ -76,9 +76,9 @@ pub mod types { pub struct BodyWithDefaults { #[serde(rename = "forty-two", default = "defaults::default_u64::")] pub forty_two: u32, - pub s: String, + pub s: ::std::string::String, #[serde(default = "defaults::body_with_defaults_something")] - pub something: Option, + pub something: ::std::option::Option, #[serde(default)] pub yes: bool, } @@ -117,10 +117,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -139,8 +139,8 @@ pub mod types { T::try_from(V).unwrap() } - pub(super) fn body_with_defaults_something() -> Option { - Some(true) + pub(super) fn body_with_defaults_something() -> ::std::option::Option { + ::std::option::Option::Some(true) } } } diff --git a/progenitor-impl/tests/output/src/test_freeform_response.rs b/progenitor-impl/tests/output/src/test_freeform_response.rs index 7fa85c8f..ded1fe8a 100644 --- a/progenitor-impl/tests/output/src/test_freeform_response.rs +++ b/progenitor-impl/tests/output/src/test_freeform_response.rs @@ -65,10 +65,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { diff --git a/progenitor-impl/tests/output/src/test_renamed_parameters.rs b/progenitor-impl/tests/output/src/test_renamed_parameters.rs index c809245d..0982cd43 100644 --- a/progenitor-impl/tests/output/src/test_renamed_parameters.rs +++ b/progenitor-impl/tests/output/src/test_renamed_parameters.rs @@ -65,10 +65,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { 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 fdcd3078..8912bd33 100644 --- a/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs +++ b/progenitor-impl/tests/output/src/test_stream_pagination_builder.rs @@ -65,10 +65,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -119,10 +119,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Uint32ResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&Uint32ResultsPage> for Uint32ResultsPage { @@ -141,9 +141,12 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct Error { - error_code: Result, String>, - message: Result, - request_id: Result, + error_code: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + message: ::std::result::Result<::std::string::String, ::std::string::String>, + request_id: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Error { @@ -159,7 +162,7 @@ pub mod types { impl Error { pub fn error_code(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.error_code = value @@ -169,7 +172,7 @@ pub mod types { } pub fn message(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.message = value @@ -179,7 +182,7 @@ pub mod types { } pub fn request_id(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.request_id = value @@ -189,9 +192,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Error { + impl ::std::convert::TryFrom for super::Error { type Error = super::error::ConversionError; - fn try_from(value: Error) -> Result { + fn try_from( + value: Error, + ) -> ::std::result::Result { Ok(Self { error_code: value.error_code?, message: value.message?, @@ -212,8 +217,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct Uint32ResultsPage { - items: Result, String>, - next_page: Result, String>, + items: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + next_page: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for Uint32ResultsPage { @@ -228,7 +236,7 @@ pub mod types { impl Uint32ResultsPage { pub fn items(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.items = value @@ -238,7 +246,7 @@ pub mod types { } pub fn next_page(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option<::std::string::String>>, T::Error: std::fmt::Display, { self.next_page = value @@ -248,9 +256,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Uint32ResultsPage { + impl ::std::convert::TryFrom for super::Uint32ResultsPage { type Error = super::error::ConversionError; - fn try_from(value: Uint32ResultsPage) -> Result { + fn try_from( + value: Uint32ResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -363,7 +373,7 @@ pub mod builder { pub struct PaginatedU32s<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> PaginatedU32s<'a> { @@ -387,12 +397,11 @@ pub mod builder { pub fn page_token(mut self, value: V) -> Self where - V: std::convert::TryInto, + V: std::convert::TryInto<::std::string::String>, { - self.page_token = value - .try_into() - .map(Some) - .map_err(|_| "conversion to `String` for page_token failed".to_string()); + self.page_token = value.try_into().map(Some).map_err(|_| { + "conversion to `:: std :: string :: String` for page_token failed".to_string() + }); self } diff --git a/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs b/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs index b144f29c..1e250177 100644 --- a/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs +++ b/progenitor-impl/tests/output/src/test_stream_pagination_positional.rs @@ -65,10 +65,10 @@ pub mod types { /// #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Error { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub error_code: Option, - pub message: String, - pub request_id: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub error_code: ::std::option::Option<::std::string::String>, + pub message: ::std::string::String, + pub request_id: ::std::string::String, } impl From<&Error> for Error { @@ -113,10 +113,10 @@ pub mod types { #[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)] pub struct Uint32ResultsPage { ///list of items on this page of results - pub items: Vec, + pub items: ::std::vec::Vec, ///token used to fetch the next page of results (if any) - #[serde(default, skip_serializing_if = "Option::is_none")] - pub next_page: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub next_page: ::std::option::Option<::std::string::String>, } impl From<&Uint32ResultsPage> for Uint32ResultsPage {