diff --git a/Cargo.lock b/Cargo.lock index b39930da..fdfd19d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -508,9 +508,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "camino" @@ -1514,7 +1514,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.5.7", + "socket2 0.4.10", "tokio", "tower-service", "tracing", @@ -1759,9 +1759,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" dependencies = [ "equivalent", "hashbrown 0.15.0", @@ -2226,7 +2226,7 @@ version = "5.0.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23d385da3c602d29036d2f70beed71c36604df7570be17fed4c5b839616785bf" dependencies = [ - "base64 0.22.1", + "base64 0.21.7", "chrono", "getrandom", "http 1.1.0", @@ -2658,9 +2658,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.89" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -2668,7 +2668,7 @@ dependencies = [ [[package]] name = "progenitor" version = "0.8.0" -source = "git+https://github.com/oxidecomputer/progenitor#69158f7dc1424d2f7d416be5dc2a5d18dfd83bf4" +source = "git+https://github.com/oxidecomputer/progenitor#96e977ac83eac698d9a291a3dc9cc3c4a652012f" dependencies = [ "progenitor-client 0.8.0 (git+https://github.com/oxidecomputer/progenitor)", "progenitor-impl", @@ -2693,7 +2693,7 @@ dependencies = [ [[package]] name = "progenitor-client" version = "0.8.0" -source = "git+https://github.com/oxidecomputer/progenitor#69158f7dc1424d2f7d416be5dc2a5d18dfd83bf4" +source = "git+https://github.com/oxidecomputer/progenitor#96e977ac83eac698d9a291a3dc9cc3c4a652012f" dependencies = [ "bytes", "futures-core", @@ -2707,7 +2707,7 @@ dependencies = [ [[package]] name = "progenitor-impl" version = "0.8.0" -source = "git+https://github.com/oxidecomputer/progenitor#69158f7dc1424d2f7d416be5dc2a5d18dfd83bf4" +source = "git+https://github.com/oxidecomputer/progenitor#96e977ac83eac698d9a291a3dc9cc3c4a652012f" dependencies = [ "heck", "http 1.1.0", @@ -2720,7 +2720,7 @@ dependencies = [ "serde", "serde_json", "syn", - "thiserror 1.0.69", + "thiserror 2.0.3", "typify", "unicode-ident", ] @@ -2728,7 +2728,7 @@ dependencies = [ [[package]] name = "progenitor-macro" version = "0.8.0" -source = "git+https://github.com/oxidecomputer/progenitor#69158f7dc1424d2f7d416be5dc2a5d18dfd83bf4" +source = "git+https://github.com/oxidecomputer/progenitor#96e977ac83eac698d9a291a3dc9cc3c4a652012f" dependencies = [ "openapiv3", "proc-macro2", @@ -3570,9 +3570,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "2.0.87" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", @@ -4053,7 +4053,7 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "typify" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#66dda53814434f544ec6f47b04ea4bc1b8dc37df" +source = "git+https://github.com/oxidecomputer/typify#f3e0cc9d6a5cee617a636136b99db650817bcbde" dependencies = [ "typify-impl", "typify-macro", @@ -4062,7 +4062,7 @@ dependencies = [ [[package]] name = "typify-impl" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#66dda53814434f544ec6f47b04ea4bc1b8dc37df" +source = "git+https://github.com/oxidecomputer/typify#f3e0cc9d6a5cee617a636136b99db650817bcbde" dependencies = [ "heck", "log", @@ -4081,7 +4081,7 @@ dependencies = [ [[package]] name = "typify-macro" version = "0.2.0" -source = "git+https://github.com/oxidecomputer/typify#66dda53814434f544ec6f47b04ea4bc1b8dc37df" +source = "git+https://github.com/oxidecomputer/typify#f3e0cc9d6a5cee617a636136b99db650817bcbde" dependencies = [ "proc-macro2", "quote", @@ -4096,9 +4096,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "unicode-segmentation" @@ -4397,7 +4397,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/cli/docs/cli.json b/cli/docs/cli.json index 61199c3e..bb911b29 100644 --- a/cli/docs/cli.json +++ b/cli/docs/cli.json @@ -909,6 +909,81 @@ } ] }, + { + "name": "system", + "args": [ + { + "long": "profile", + "help": "Configuration profile to use for commands", + "global": true + } + ], + "subcommands": [ + { + "name": "timeseries", + "args": [ + { + "long": "profile", + "help": "Configuration profile to use for commands", + "global": true + } + ], + "subcommands": [ + { + "name": "query", + "about": "Run timeseries query", + "long_about": "Queries are written in OxQL.", + "args": [ + { + "long": "json-body", + "help": "Path to a file that contains the full json body." + }, + { + "long": "json-body-template", + "help": "XXX" + }, + { + "long": "profile", + "help": "Configuration profile to use for commands", + "global": true + }, + { + "long": "query", + "help": "A timeseries query string, written in the Oximeter query language." + } + ] + }, + { + "name": "schema", + "args": [ + { + "long": "profile", + "help": "Configuration profile to use for commands", + "global": true + } + ], + "subcommands": [ + { + "name": "list", + "about": "List timeseries schemas", + "args": [ + { + "long": "limit", + "help": "Maximum number of items returned by a single call" + }, + { + "long": "profile", + "help": "Configuration profile to use for commands", + "global": true + } + ] + } + ] + } + ] + } + ] + }, { "name": "timeseries", "args": [ @@ -941,8 +1016,8 @@ }, { "name": "query", - "about": "Run timeseries query", - "long_about": "Queries are written in OxQL.", + "about": "Run project-scoped timeseries query", + "long_about": "Queries are written in OxQL. Project must be specified by name or ID in URL query parameter. The OxQL query will only return timeseries data from the specified project.", "args": [ { "long": "json-body", @@ -957,38 +1032,15 @@ "help": "Configuration profile to use for commands", "global": true }, + { + "long": "project", + "help": "Name or ID of the project" + }, { "long": "query", "help": "A timeseries query string, written in the Oximeter query language." } ] - }, - { - "name": "schema", - "args": [ - { - "long": "profile", - "help": "Configuration profile to use for commands", - "global": true - } - ], - "subcommands": [ - { - "name": "list", - "about": "List timeseries schemas", - "args": [ - { - "long": "limit", - "help": "Maximum number of items returned by a single call" - }, - { - "long": "profile", - "help": "Configuration profile to use for commands", - "global": true - } - ] - } - ] } ] } diff --git a/cli/src/cli_builder.rs b/cli/src/cli_builder.rs index 9d4beb18..21aca5e4 100644 --- a/cli/src/cli_builder.rs +++ b/cli/src/cli_builder.rs @@ -577,8 +577,11 @@ fn xxx<'a>(command: CliCommand) -> Option<&'a str> { CliCommand::ProbeView => Some("experimental probe view"), // Metrics-related subcommands - CliCommand::SystemTimeseriesQuery => Some("experimental timeseries query"), - CliCommand::SystemTimeseriesSchemaList => Some("experimental timeseries schema list"), + CliCommand::TimeseriesQuery => Some("experimental timeseries query"), + CliCommand::SystemTimeseriesQuery => Some("experimental system timeseries query"), + CliCommand::SystemTimeseriesSchemaList => { + Some("experimental system timeseries schema list") + } // Commands not yet implemented CliCommand::DeviceAccessToken diff --git a/cli/src/generated_cli.rs b/cli/src/generated_cli.rs index b5dcf11a..4142c5c6 100644 --- a/cli/src/generated_cli.rs +++ b/cli/src/generated_cli.rs @@ -238,6 +238,7 @@ impl Cli { CliCommand::UserBuiltinView => Self::cli_user_builtin_view(), CliCommand::SiloUtilizationList => Self::cli_silo_utilization_list(), CliCommand::SiloUtilizationView => Self::cli_silo_utilization_view(), + CliCommand::TimeseriesQuery => Self::cli_timeseries_query(), CliCommand::UserList => Self::cli_user_list(), CliCommand::UtilizationView => Self::cli_utilization_view(), CliCommand::VpcFirewallRulesView => Self::cli_vpc_firewall_rules_view(), @@ -303,7 +304,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( @@ -339,13 +340,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( @@ -406,7 +407,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( @@ -541,20 +542,20 @@ impl Cli { .arg( clap::Arg::new("cert") .long("cert") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("PEM-formatted string containing public certificate chain"), ) .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("key") .long("key") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("PEM-formatted string containing private key"), ) @@ -660,7 +661,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( @@ -743,7 +744,7 @@ impl Cli { .arg( clap::Arg::new("base64-encoded-data") .long("base64-encoded-data") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -973,7 +974,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( @@ -1051,7 +1052,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( @@ -1258,7 +1259,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( @@ -1270,7 +1271,7 @@ impl Cli { .arg( clap::Arg::new("os") .long("os") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("The family of the operating system (e.g. Debian, Ubuntu, etc.)"), ) @@ -1284,7 +1285,7 @@ impl Cli { .arg( clap::Arg::new("version") .long("version") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("The version of the operating system (e.g. 18.04, 20.04, etc.)"), ) @@ -1452,7 +1453,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( @@ -1499,7 +1500,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 \ @@ -2092,7 +2093,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( @@ -2242,7 +2243,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( @@ -2389,7 +2390,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( @@ -2631,7 +2632,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( @@ -2643,7 +2644,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...\"`"), ) @@ -2802,7 +2803,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( @@ -2903,7 +2904,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( @@ -3062,7 +3063,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( @@ -3105,7 +3106,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( @@ -3225,7 +3226,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( @@ -3402,13 +3403,13 @@ impl Cli { .arg( clap::Arg::new("part") .long("part") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( clap::Arg::new("serial") .long("serial") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body"), ) .arg( @@ -3845,20 +3846,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 \ @@ -3869,7 +3870,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"), ) @@ -3889,21 +3890,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"), ) @@ -3973,7 +3974,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( @@ -4016,7 +4017,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( @@ -4440,7 +4441,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( @@ -4701,7 +4702,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( @@ -4761,7 +4762,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"), ) @@ -4786,7 +4787,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( @@ -5041,7 +5042,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( @@ -5131,7 +5132,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."), ) @@ -5192,7 +5193,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 \ @@ -5206,7 +5207,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( @@ -5418,7 +5419,7 @@ impl Cli { .arg( clap::Arg::new("query") .long("query") - .value_parser(clap::value_parser!(String)) + .value_parser(clap::value_parser!(::std::string::String)) .required_unless_present("json-body") .help("A timeseries query string, written in the Oximeter query language."), ) @@ -5572,6 +5573,44 @@ impl Cli { .about("Fetch current utilization for given silo") } + pub fn cli_timeseries_query() -> clap::Command { + clap::Command::new("") + .arg( + clap::Arg::new("project") + .long("project") + .value_parser(clap::value_parser!(types::NameOrId)) + .required(true) + .help("Name or ID of the project"), + ) + .arg( + clap::Arg::new("query") + .long("query") + .value_parser(clap::value_parser!(::std::string::String)) + .required_unless_present("json-body") + .help("A timeseries query string, written in the Oximeter query language."), + ) + .arg( + clap::Arg::new("json-body") + .long("json-body") + .value_name("JSON-FILE") + .required(false) + .value_parser(clap::value_parser!(std::path::PathBuf)) + .help("Path to a file that contains the full json body."), + ) + .arg( + clap::Arg::new("json-body-template") + .long("json-body-template") + .action(clap::ArgAction::SetTrue) + .help("XXX"), + ) + .about("Run project-scoped timeseries query") + .long_about( + "Queries are written in OxQL. Project must be specified by name or ID in URL \ + query parameter. The OxQL query will only return timeseries data from the \ + specified project.", + ) + } + pub fn cli_user_list() -> clap::Command { clap::Command::new("") .arg( @@ -5728,7 +5767,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( @@ -5821,7 +5860,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( @@ -5962,7 +6001,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( @@ -6037,7 +6076,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( @@ -6172,7 +6211,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( @@ -6280,7 +6319,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( @@ -6442,7 +6481,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( @@ -6517,7 +6556,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( @@ -6912,6 +6951,7 @@ impl Cli { CliCommand::UserBuiltinView => self.execute_user_builtin_view(matches).await, CliCommand::SiloUtilizationList => self.execute_silo_utilization_list(matches).await, CliCommand::SiloUtilizationView => self.execute_silo_utilization_view(matches).await, + CliCommand::TimeseriesQuery => self.execute_timeseries_query(matches).await, CliCommand::UserList => self.execute_user_list(matches).await, CliCommand::UtilizationView => self.execute_utilization_view(matches).await, CliCommand::VpcFirewallRulesView => self.execute_vpc_firewall_rules_view(matches).await, @@ -6978,7 +7018,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())) } @@ -7012,11 +7052,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())) } @@ -7082,7 +7122,7 @@ impl Cli { pub async fn execute_probe_create(&self, matches: &clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.probe_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())) } @@ -7235,15 +7275,15 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.certificate_create(); - if let Some(value) = matches.get_one::("cert") { + if let Some(value) = matches.get_one::<::std::string::String>("cert") { request = request.body_map(|body| body.cert(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::("key") { + if let Some(value) = matches.get_one::<::std::string::String>("key") { request = request.body_map(|body| body.key(value.clone())) } @@ -7362,7 +7402,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())) } @@ -7451,7 +7491,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.disk_bulk_write_import(); - if let Some(value) = matches.get_one::("base64-encoded-data") { + if let Some(value) = matches.get_one::<::std::string::String>("base64-encoded-data") { request = request.body_map(|body| body.base64_encoded_data(value.clone())) } @@ -7690,7 +7730,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.floating_ip_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())) } @@ -7761,7 +7801,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.floating_ip_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())) } @@ -7992,7 +8032,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())) } @@ -8000,7 +8040,7 @@ impl Cli { request = request.body_map(|body| body.name(value.clone())) } - if let Some(value) = matches.get_one::("os") { + if let Some(value) = matches.get_one::<::std::string::String>("os") { request = request.body_map(|body| body.os(value.clone())) } @@ -8008,7 +8048,7 @@ impl Cli { request = request.project(value.clone()); } - if let Some(value) = matches.get_one::("version") { + if let Some(value) = matches.get_one::<::std::string::String>("version") { request = request.body_map(|body| body.version(value.clone())) } @@ -8175,7 +8215,7 @@ impl Cli { request = request.body_map(|body| body.auto_restart_policy(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())) } @@ -8203,7 +8243,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())) } @@ -8791,7 +8831,7 @@ impl Cli { request = request.body_map(|body| body.address(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())) } @@ -8931,7 +8971,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.internet_gateway_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())) } @@ -9071,7 +9111,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.internet_gateway_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())) } @@ -9395,7 +9435,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.current_user_ssh_key_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())) } @@ -9403,7 +9443,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())) } @@ -9583,7 +9623,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())) } @@ -9670,7 +9710,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())) } @@ -9839,7 +9879,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())) } @@ -9889,7 +9929,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())) } @@ -10036,7 +10076,7 @@ impl Cli { pub async fn execute_snapshot_create(&self, 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())) } @@ -10276,11 +10316,11 @@ impl Cli { pub async fn execute_sled_add(&self, matches: &clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.sled_add(); - if let Some(value) = matches.get_one::("part") { + if let Some(value) = matches.get_one::<::std::string::String>("part") { request = request.body_map(|body| body.part(value.clone())) } - if let Some(value) = matches.get_one::("serial") { + if let Some(value) = matches.get_one::<::std::string::String>("serial") { request = request.body_map(|body| body.serial(value.clone())) } @@ -10836,19 +10876,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())) } @@ -10860,15 +10900,15 @@ impl Cli { request = request.silo(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())) } @@ -10959,7 +10999,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())) } @@ -11009,7 +11049,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())) } @@ -11539,7 +11579,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.networking_address_lot_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())) } @@ -11844,7 +11884,7 @@ impl Cli { request = request.body_map(|body| body.bgp_announce_set_id(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())) } @@ -11910,7 +11950,7 @@ impl Cli { request = request.limit(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()); } @@ -11938,7 +11978,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.networking_bgp_announce_set_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())) } @@ -12282,7 +12322,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.networking_switch_port_settings_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())) } @@ -12439,7 +12479,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()); } @@ -12534,11 +12574,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())) } @@ -12777,7 +12817,7 @@ impl Cli { matches: &clap::ArgMatches, ) -> anyhow::Result<()> { let mut request = self.client.system_timeseries_query(); - if let Some(value) = matches.get_one::("query") { + if let Some(value) = matches.get_one::<::std::string::String>("query") { request = request.body_map(|body| body.query(value.clone())) } @@ -13031,6 +13071,37 @@ impl Cli { } } + pub async fn execute_timeseries_query(&self, matches: &clap::ArgMatches) -> anyhow::Result<()> { + let mut request = self.client.timeseries_query(); + if let Some(value) = matches.get_one::("project") { + request = request.project(value.clone()); + } + + if let Some(value) = matches.get_one::<::std::string::String>("query") { + request = request.body_map(|body| body.query(value.clone())) + } + + if let Some(value) = matches.get_one::("json-body") { + let body_txt = std::fs::read_to_string(value).unwrap(); + let body_value = serde_json::from_str::(&body_txt).unwrap(); + request = request.body(body_value); + } + + self.config + .execute_timeseries_query(matches, &mut request)?; + let result = request.send().await; + match result { + Ok(r) => { + self.config.success_item(&r); + Ok(()) + } + Err(r) => { + self.config.error(&r); + Err(anyhow::Error::new(r)) + } + } + } + pub async fn execute_user_list(&self, matches: &clap::ArgMatches) -> anyhow::Result<()> { let mut request = self.client.user_list(); if let Some(value) = matches.get_one::("group") { @@ -13207,7 +13278,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())) } @@ -13289,7 +13360,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())) } @@ -13419,7 +13490,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())) } @@ -13489,7 +13560,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())) } @@ -13615,7 +13686,7 @@ impl Cli { request = request.body_map(|body| body.custom_router(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())) } @@ -13697,7 +13768,7 @@ impl Cli { request = request.body_map(|body| body.custom_router(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())) } @@ -13864,7 +13935,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())) } @@ -13930,7 +14001,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())) } @@ -15479,6 +15550,14 @@ pub trait CliConfig { Ok(()) } + fn execute_timeseries_query( + &self, + matches: &clap::ArgMatches, + request: &mut builder::TimeseriesQuery, + ) -> anyhow::Result<()> { + Ok(()) + } + fn execute_user_list( &self, matches: &clap::ArgMatches, @@ -15865,6 +15944,7 @@ pub enum CliCommand { UserBuiltinView, SiloUtilizationList, SiloUtilizationView, + TimeseriesQuery, UserList, UtilizationView, VpcFirewallRulesView, @@ -16078,6 +16158,7 @@ impl CliCommand { CliCommand::UserBuiltinView, CliCommand::SiloUtilizationList, CliCommand::SiloUtilizationView, + CliCommand::TimeseriesQuery, CliCommand::UserList, CliCommand::UtilizationView, CliCommand::VpcFirewallRulesView, diff --git a/oxide.json b/oxide.json index 79186e37..c0b6a96f 100644 --- a/oxide.json +++ b/oxide.json @@ -8890,6 +8890,55 @@ } } }, + "/v1/timeseries/query": { + "post": { + "tags": [ + "hidden" + ], + "summary": "Run project-scoped timeseries query", + "description": "Queries are written in OxQL. Project must be specified by name or ID in URL query parameter. The OxQL query will only return timeseries data from the specified project.", + "operationId": "timeseries_query", + "parameters": [ + { + "in": "query", + "name": "project", + "description": "Name or ID of the project", + "required": true, + "schema": { + "$ref": "#/components/schemas/NameOrId" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeseriesQuery" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OxqlQueryResult" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" + } + } + } + }, "/v1/users": { "get": { "tags": [ diff --git a/sdk-httpmock/src/generated_httpmock.rs b/sdk-httpmock/src/generated_httpmock.rs index 639a57d2..b313b810 100644 --- a/sdk-httpmock/src/generated_httpmock.rs +++ b/sdk-httpmock/src/generated_httpmock.rs @@ -11572,7 +11572,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) @@ -11889,7 +11889,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) @@ -12070,7 +12070,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) @@ -12239,7 +12239,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) @@ -12294,7 +12294,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) @@ -14541,6 +14541,69 @@ pub mod operations { } } + pub struct TimeseriesQueryWhen(httpmock::When); + impl TimeseriesQueryWhen { + pub fn new(inner: httpmock::When) -> Self { + Self( + inner + .method(httpmock::Method::POST) + .path_matches(regex::Regex::new("^/v1/timeseries/query$").unwrap()), + ) + } + + pub fn into_inner(self) -> httpmock::When { + self.0 + } + + pub fn project(self, value: &types::NameOrId) -> Self { + Self(self.0.query_param("project", value.to_string())) + } + + pub fn body(self, value: &types::TimeseriesQuery) -> Self { + Self(self.0.json_body_obj(value)) + } + } + + pub struct TimeseriesQueryThen(httpmock::Then); + impl TimeseriesQueryThen { + pub fn new(inner: httpmock::Then) -> Self { + Self(inner) + } + + pub fn into_inner(self) -> httpmock::Then { + self.0 + } + + pub fn ok(self, value: &types::OxqlQueryResult) -> Self { + Self( + self.0 + .status(200u16) + .header("content-type", "application/json") + .json_body_obj(value), + ) + } + + pub fn client_error(self, status: u16, value: &types::Error) -> Self { + assert_eq!(status / 100u16, 4u16); + Self( + self.0 + .status(status) + .header("content-type", "application/json") + .json_body_obj(value), + ) + } + + pub fn server_error(self, status: u16, value: &types::Error) -> Self { + assert_eq!(status / 100u16, 5u16); + Self( + self.0 + .status(status) + .header("content-type", "application/json") + .json_body_obj(value), + ) + } + } + pub struct UserListWhen(httpmock::When); impl UserListWhen { pub fn new(inner: httpmock::When) -> Self { @@ -17653,6 +17716,9 @@ pub trait MockServerExt { fn silo_utilization_view(&self, config_fn: F) -> httpmock::Mock where F: FnOnce(operations::SiloUtilizationViewWhen, operations::SiloUtilizationViewThen); + fn timeseries_query(&self, config_fn: F) -> httpmock::Mock + where + F: FnOnce(operations::TimeseriesQueryWhen, operations::TimeseriesQueryThen); fn user_list(&self, config_fn: F) -> httpmock::Mock where F: FnOnce(operations::UserListWhen, operations::UserListThen); @@ -20065,6 +20131,18 @@ impl MockServerExt for httpmock::MockServer { }) } + fn timeseries_query(&self, config_fn: F) -> httpmock::Mock + where + F: FnOnce(operations::TimeseriesQueryWhen, operations::TimeseriesQueryThen), + { + self.mock(|when, then| { + config_fn( + operations::TimeseriesQueryWhen::new(when), + operations::TimeseriesQueryThen::new(then), + ) + }) + } + fn user_list(&self, config_fn: F) -> httpmock::Mock where F: FnOnce(operations::UserListWhen, operations::UserListThen), diff --git a/sdk/src/generated_sdk.rs b/sdk/src/generated_sdk.rs index 1e9b09ff..ece8807d 100644 --- a/sdk/src/generated_sdk.rs +++ b/sdk/src/generated_sdk.rs @@ -90,8 +90,8 @@ pub mod types { /// The address lot this address is drawn from. pub address_lot: NameOrId, /// Optional VLAN ID for this address - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vlan_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vlan_id: ::std::option::Option, } impl From<&Address> for Address { @@ -136,7 +136,7 @@ pub mod types { )] pub struct AddressConfig { /// The set of addresses assigned to the port configuration. - pub addresses: Vec
, + pub addresses: ::std::vec::Vec
, } impl From<&AddressConfig> for AddressConfig { @@ -216,7 +216,7 @@ pub mod types { )] pub struct AddressLot { /// 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, /// Desired use of `AddressLot` @@ -387,10 +387,10 @@ pub mod types { )] pub struct AddressLotBlockResultsPage { /// 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<&AddressLotBlockResultsPage> for AddressLotBlockResultsPage { @@ -450,8 +450,8 @@ pub mod types { )] pub struct AddressLotCreate { /// The blocks to add along with the new address lot. - pub blocks: Vec, - pub description: String, + pub blocks: ::std::vec::Vec, + pub description: ::std::string::String, /// The kind of address lot to create. pub kind: AddressLotKind, pub name: Name, @@ -508,7 +508,7 @@ pub mod types { )] pub struct AddressLotCreateResponse { /// The address lot blocks that were created. - pub blocks: Vec, + pub blocks: ::std::vec::Vec, /// The address lot that was created. pub lot: AddressLot, } @@ -592,7 +592,7 @@ pub mod types { impl std::str::FromStr for AddressLotKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "infra" => Ok(Self::Infra), "pool" => Ok(Self::Pool), @@ -603,21 +603,25 @@ pub mod types { impl std::convert::TryFrom<&str> for AddressLotKind { 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 AddressLotKind { + impl std::convert::TryFrom<&::std::string::String> for AddressLotKind { 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 AddressLotKind { + impl std::convert::TryFrom<::std::string::String> for AddressLotKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -658,10 +662,10 @@ pub mod types { )] pub struct AddressLotResultsPage { /// 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<&AddressLotResultsPage> for AddressLotResultsPage { @@ -704,7 +708,7 @@ pub mod types { )] pub struct AggregateBgpMessageHistory { /// BGP history organized by switch. - pub switch_histories: Vec, + pub switch_histories: ::std::vec::Vec, } impl From<&AggregateBgpMessageHistory> for AggregateBgpMessageHistory { @@ -888,7 +892,7 @@ pub mod types { /// /// All others are prevented from reaching rack services. #[serde(rename = "list")] - List(Vec), + List(::std::vec::Vec), } impl From<&AllowedSourceIps> for AllowedSourceIps { @@ -897,8 +901,8 @@ pub mod types { } } - impl From> for AllowedSourceIps { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for AllowedSourceIps { + fn from(value: ::std::vec::Vec) -> Self { Self::List(value) } } @@ -1004,7 +1008,7 @@ pub mod types { impl std::str::FromStr for AuthzScope { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "fleet" => Ok(Self::Fleet), "silo" => Ok(Self::Silo), @@ -1017,21 +1021,25 @@ pub mod types { impl std::convert::TryFrom<&str> for AuthzScope { 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 AuthzScope { + impl std::convert::TryFrom<&::std::string::String> for AuthzScope { 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 AuthzScope { + impl std::convert::TryFrom<::std::string::String> for AuthzScope { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1070,9 +1078,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: u32, - pub serial: String, + pub serial: ::std::string::String, } impl From<&Baseboard> for Baseboard { @@ -1139,7 +1147,7 @@ pub mod types { impl std::str::FromStr for BfdMode { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "single_hop" => Ok(Self::SingleHop), "multi_hop" => Ok(Self::MultiHop), @@ -1150,21 +1158,25 @@ pub mod types { impl std::convert::TryFrom<&str> for BfdMode { 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 BfdMode { + impl std::convert::TryFrom<&::std::string::String> for BfdMode { 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 BfdMode { + impl std::convert::TryFrom<::std::string::String> for BfdMode { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1304,8 +1316,8 @@ pub mod types { pub detection_threshold: u8, /// Address the Oxide switch will listen on for BFD traffic. If `None` /// then the unspecified address (0.0.0.0 or ::) is used. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub local: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub local: ::std::option::Option, /// Select either single-hop (RFC 5881) or multi-hop (RFC 5883) pub mode: BfdMode, /// Address of the remote peer to establish a BFD session with. @@ -1420,7 +1432,7 @@ pub mod types { impl std::str::FromStr for BfdState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "admin_down" => Ok(Self::AdminDown), "down" => Ok(Self::Down), @@ -1433,21 +1445,25 @@ pub mod types { impl std::convert::TryFrom<&str> for BfdState { 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 BfdState { + impl std::convert::TryFrom<&::std::string::String> for BfdState { 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 BfdState { + impl std::convert::TryFrom<::std::string::String> for BfdState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -1507,8 +1523,8 @@ pub mod types { )] pub struct BfdStatus { pub detection_threshold: u8, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub local: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub local: ::std::option::Option, pub mode: BfdMode, pub peer: std::net::IpAddr, pub required_rx: u64, @@ -1584,7 +1600,7 @@ pub mod types { )] pub struct BgpAnnounceSet { /// 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 @@ -1644,8 +1660,8 @@ pub mod types { )] pub struct BgpAnnounceSetCreate { /// The announcements in this set. - pub announcement: Vec, - pub description: String, + pub announcement: ::std::vec::Vec, + pub description: ::std::string::String, pub name: Name, } @@ -1850,7 +1866,7 @@ pub mod types { /// The autonomous system number of this BGP configuration. pub asn: u32, /// 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 @@ -1861,8 +1877,8 @@ pub mod types { pub time_modified: chrono::DateTime, /// Optional virtual routing and forwarding identifier for this BGP /// configuration. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vrf: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vrf: ::std::option::Option<::std::string::String>, } impl From<&BgpConfig> for BgpConfig { @@ -1939,12 +1955,12 @@ pub mod types { /// The autonomous system number of this BGP configuration. pub asn: u32, pub bgp_announce_set_id: NameOrId, - pub description: String, + pub description: ::std::string::String, pub name: Name, /// Optional virtual routing and forwarding identifier for this BGP /// configuration. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vrf: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vrf: ::std::option::Option, } impl From<&BgpConfigCreate> for BgpConfigCreate { @@ -1995,10 +2011,10 @@ pub mod types { )] pub struct BgpConfigResultsPage { /// 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<&BgpConfigResultsPage> for BgpConfigResultsPage { @@ -2044,7 +2060,7 @@ pub mod types { )] pub struct BgpExported { /// Exported routes indexed by peer address. - pub exports: ::std::collections::HashMap>, + pub exports: ::std::collections::HashMap<::std::string::String, ::std::vec::Vec>, } impl From<&BgpExported> for BgpExported { @@ -2359,7 +2375,7 @@ pub mod types { /// this peer. pub bgp_config: NameOrId, /// Include the provided communities in updates sent to the peer. - pub communities: Vec, + pub communities: ::std::vec::Vec, /// How long to to wait between TCP connection retries (seconds). pub connect_retry: u32, /// How long to delay sending an open request after establishing a TCP @@ -2377,28 +2393,28 @@ pub mod types { /// configuration this BGP peer configuration is a part of. For example /// this value could be phy0 to refer to a primary physical interface. /// Or it could be vlan47 to refer to a VLAN interface. - pub interface_name: String, + pub interface_name: ::std::string::String, /// How often to send keepalive requests (seconds). pub keepalive: u32, /// Apply a local preference to routes received from this peer. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub local_pref: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub local_pref: ::std::option::Option, /// Use the given key for TCP-MD5 authentication with the peer. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub md5_auth_key: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub md5_auth_key: ::std::option::Option<::std::string::String>, /// Require messages from a peer have a minimum IP time to live field. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub min_ttl: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub min_ttl: ::std::option::Option, /// Apply the provided multi-exit discriminator (MED) updates sent to /// the peer. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub multi_exit_discriminator: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub multi_exit_discriminator: ::std::option::Option, /// Require that a peer has a specified ASN. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub remote_asn: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub remote_asn: ::std::option::Option, /// Associate a VLAN ID with a peer. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vlan_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vlan_id: ::std::option::Option, } impl From<&BgpPeer> for BgpPeer { @@ -2438,7 +2454,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct BgpPeerConfig { - pub peers: Vec, + pub peers: ::std::vec::Vec, } impl From<&BgpPeerConfig> for BgpPeerConfig { @@ -2579,7 +2595,7 @@ pub mod types { impl std::str::FromStr for BgpPeerState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "idle" => Ok(Self::Idle), "connect" => Ok(Self::Connect), @@ -2595,21 +2611,25 @@ pub mod types { impl std::convert::TryFrom<&str> for BgpPeerState { 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 BgpPeerState { + impl std::convert::TryFrom<&::std::string::String> for BgpPeerState { 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 BgpPeerState { + impl std::convert::TryFrom<::std::string::String> for BgpPeerState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -4397,9 +4417,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 { @@ -4409,7 +4429,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>, { @@ -4461,29 +4481,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() } } @@ -4563,9 +4583,9 @@ pub mod types { )] pub struct Certificate { /// PEM-formatted string containing public certificate chain - pub cert: String, + pub cert: ::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, /// unique, mutable, user-controlled identifier for each resource @@ -4638,10 +4658,10 @@ pub mod types { )] pub struct CertificateCreate { /// PEM-formatted string containing public certificate chain - pub cert: String, - pub description: String, + pub cert: ::std::string::String, + pub description: ::std::string::String, /// PEM-formatted string containing private key - pub key: String, + pub key: ::std::string::String, pub name: Name, /// The service using this certificate pub service: ServiceUsingCertificate, @@ -4695,10 +4715,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 { @@ -4939,7 +4959,7 @@ pub mod types { )] pub struct CurrentUser { /// 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, @@ -5523,9 +5543,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_u64")] @@ -5630,8 +5650,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) } } @@ -5878,7 +5898,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), "i8" => Ok(Self::I8), @@ -5914,21 +5934,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() } } @@ -5965,9 +5989,9 @@ pub mod types { pub struct DerEncodedKeyPair { /// request signing RSA private key in PKCS#1 format (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 { @@ -6014,8 +6038,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 { @@ -6090,7 +6114,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 { @@ -6140,7 +6164,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 { @@ -6242,20 +6266,20 @@ 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, /// ID of image from which disk was created, if any - #[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, /// ID of snapshot from which disk was created, if any - #[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, @@ -6320,7 +6344,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct DiskCreate { - pub description: String, + pub description: ::std::string::String, /// The initial source for this disk pub disk_source: DiskSource, pub name: Name, @@ -6407,7 +6431,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), @@ -6422,21 +6446,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() } } @@ -6520,10 +6548,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 { @@ -7024,18 +7052,18 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Distributiondouble { - pub bins: Vec, - pub counts: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub max: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub min: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub p50: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub p90: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub p99: Option, + pub bins: ::std::vec::Vec, + pub counts: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub max: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub min: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub p50: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub p90: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub p99: ::std::option::Option, pub squared_mean: f64, pub sum_of_samples: f64, } @@ -7163,18 +7191,18 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Distributionint64 { - pub bins: Vec, - pub counts: Vec, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub max: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub min: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub p50: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub p90: Option, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub p99: Option, + pub bins: ::std::vec::Vec, + pub counts: ::std::vec::Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub max: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub min: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub p50: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub p90: ::std::option::Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub p99: ::std::option::Option, pub squared_mean: f64, pub sum_of_samples: i64, } @@ -7226,8 +7254,8 @@ pub mod types { )] pub struct EphemeralIpCreate { /// Name or ID of the IP pool used to allocate an address - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pool: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pool: ::std::option::Option, } impl From<&EphemeralIpCreate> for EphemeralIpCreate { @@ -7272,10 +7300,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 { @@ -7412,14 +7440,14 @@ pub mod types { #[serde(rename = "floating")] Floating { /// human-readable free-form text about a resource - description: String, + description: ::std::string::String, /// unique, immutable, system-controlled identifier for each /// resource id: uuid::Uuid, /// The ID of the instance that this Floating IP is attached to, if /// it is presently in use. - #[serde(default, skip_serializing_if = "Option::is_none")] - instance_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + instance_id: ::std::option::Option, /// The IP address held by this resource. ip: std::net::IpAddr, /// The ID of the IP pool this resource belongs to. @@ -7517,8 +7545,8 @@ pub mod types { /// current silo's default pool if not specified. #[serde(rename = "ephemeral")] Ephemeral { - #[serde(default, skip_serializing_if = "Option::is_none")] - pool: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pool: ::std::option::Option, }, /// An IP address providing both inbound and outbound access. The /// address is an existing floating IP object assigned to the current @@ -7571,10 +7599,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 { @@ -7625,9 +7653,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct FieldSchema { - pub description: String, + pub description: ::std::string::String, pub field_type: FieldType, - pub name: String, + pub name: ::std::string::String, pub source: FieldSource, } @@ -7696,7 +7724,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), @@ -7707,21 +7735,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() } } @@ -7819,7 +7851,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), "i8" => Ok(Self::I8), @@ -7840,21 +7872,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() } } @@ -8108,7 +8144,7 @@ pub mod types { #[serde(tag = "type", content = "value")] pub enum FieldValue { #[serde(rename = "string")] - String(String), + String(::std::string::String), #[serde(rename = "i8")] I8(i8), #[serde(rename = "u8")] @@ -8244,8 +8280,8 @@ pub mod types { /// name during finalization. If not specified, a snapshot for the disk /// will _not_ be created. A snapshot can be manually created once the /// disk transitions into the `Detached` state. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub snapshot_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub snapshot_name: ::std::option::Option, } impl From<&FinalizeDisk> for FinalizeDisk { @@ -8315,7 +8351,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), @@ -8327,21 +8363,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() } } @@ -8381,7 +8421,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 { @@ -8537,13 +8577,13 @@ pub mod types { )] pub struct FloatingIp { /// 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 ID of the instance that this Floating IP is attached to, if it /// is presently in use. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub instance_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub instance_id: ::std::option::Option, /// The IP address held by this resource. pub ip: std::net::IpAddr, /// The ID of the IP pool this resource belongs to. @@ -8683,18 +8723,18 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct FloatingIpCreate { - pub description: String, + pub description: ::std::string::String, /// An IP address to reserve for use as a floating IP. This field is /// optional: when not set, an address will be automatically chosen from /// `pool`. If set, then the IP must be available in the resolved /// `pool`. - #[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 parent IP pool that a floating IP is pulled from. If unset, the /// default pool is selected. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pool: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pool: ::std::option::Option, } impl From<&FloatingIpCreate> for FloatingIpCreate { @@ -8758,7 +8798,7 @@ pub mod types { impl std::str::FromStr for FloatingIpParentKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "instance" => Ok(Self::Instance), _ => Err("invalid value".into()), @@ -8768,21 +8808,25 @@ pub mod types { impl std::convert::TryFrom<&str> for FloatingIpParentKind { 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 FloatingIpParentKind { + impl std::convert::TryFrom<&::std::string::String> for FloatingIpParentKind { 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 FloatingIpParentKind { + impl std::convert::TryFrom<::std::string::String> for FloatingIpParentKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -8823,10 +8867,10 @@ pub mod types { )] pub struct FloatingIpResultsPage { /// 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<&FloatingIpResultsPage> for FloatingIpResultsPage { @@ -8878,10 +8922,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct FloatingIpUpdate { - #[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<&FloatingIpUpdate> for FloatingIpUpdate { @@ -8932,7 +8976,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, @@ -8986,10 +9030,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 { @@ -9113,7 +9157,7 @@ pub mod types { )] pub struct Histogramdouble { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, pub max: f64, pub min: f64, /// The total number of samples in the histogram. @@ -9251,7 +9295,7 @@ pub mod types { )] pub struct Histogramfloat { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, pub max: f32, pub min: f32, /// The total number of samples in the histogram. @@ -9389,7 +9433,7 @@ pub mod types { )] pub struct Histogramint16 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: i16, /// The minimum value of all samples in the histogram. @@ -9530,7 +9574,7 @@ pub mod types { )] pub struct Histogramint32 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: i32, /// The minimum value of all samples in the histogram. @@ -9671,7 +9715,7 @@ pub mod types { )] pub struct Histogramint64 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: i64, /// The minimum value of all samples in the histogram. @@ -9812,7 +9856,7 @@ pub mod types { )] pub struct Histogramint8 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: i8, /// The minimum value of all samples in the histogram. @@ -9955,7 +9999,7 @@ pub mod types { )] pub struct Histogramuint16 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: u16, /// The minimum value of all samples in the histogram. @@ -10098,7 +10142,7 @@ pub mod types { )] pub struct Histogramuint32 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: u32, /// The minimum value of all samples in the histogram. @@ -10241,7 +10285,7 @@ pub mod types { )] pub struct Histogramuint64 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: u64, /// The minimum value of all samples in the histogram. @@ -10384,7 +10428,7 @@ pub mod types { )] pub struct Histogramuint8 { /// The bins of the histogram. - pub bins: Vec, + pub bins: ::std::vec::Vec, /// The maximum value of all samples in the histogram. pub max: u8, /// The minimum value of all samples in the histogram. @@ -10449,15 +10493,15 @@ pub mod types { PartialOrd, schemars :: JsonSchema, )] - pub struct Hostname(String); + pub struct Hostname(::std::string::String); impl ::std::ops::Deref for Hostname { - 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: Hostname) -> Self { value.0 } @@ -10471,7 +10515,7 @@ pub mod types { impl ::std::str::FromStr for Hostname { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { if value.len() > 253usize { return Err("longer than 253 characters".into()); } @@ -10496,31 +10540,35 @@ pub mod types { impl ::std::convert::TryFrom<&str> for Hostname { 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 Hostname { + impl ::std::convert::TryFrom<&::std::string::String> for Hostname { 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 Hostname { + impl ::std::convert::TryFrom<::std::string::String> for Hostname { 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 Hostname { - 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()) @@ -10585,7 +10633,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()), @@ -10595,21 +10643,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() } } @@ -10677,7 +10729,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 @@ -10738,10 +10790,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 { @@ -10809,7 +10861,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()), @@ -10819,21 +10871,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() } } @@ -10890,7 +10946,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), @@ -10901,21 +10957,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() } } @@ -10973,9 +11033,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 { @@ -11099,19 +11159,19 @@ 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 pub name: Name, /// The family of the operating system like Debian, Ubuntu, etc. - pub os: String, + pub os: ::std::string::String, /// ID of the parent project if the image is a project image - #[serde(default, skip_serializing_if = "Option::is_none")] - pub project_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub project_id: ::std::option::Option, /// total size in bytes pub size: ByteCount, /// timestamp when this resource was created @@ -11119,7 +11179,7 @@ pub mod types { /// timestamp when this resource was last modified pub time_modified: chrono::DateTime, /// Version of the operating system - pub version: String, + pub version: ::std::string::String, } impl From<&Image> for Image { @@ -11182,14 +11242,14 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ImageCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, /// The family of the operating system (e.g. Debian, Ubuntu, etc.) - pub os: String, + pub os: ::std::string::String, /// The source of the image's contents. pub source: ImageSource, /// The version of the operating system (e.g. 18.04, 20.04, etc.) - pub version: String, + pub version: ::std::string::String, } impl From<&ImageCreate> for ImageCreate { @@ -11240,10 +11300,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 { @@ -11357,7 +11417,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ImportBlocksBulkWrite { - pub base64_encoded_data: String, + pub base64_encoded_data: ::std::string::String, pub offset: u64, } @@ -11431,7 +11491,7 @@ pub mod types { #[serde(rename = "no_filtering")] NoFiltering, #[serde(rename = "allow")] - Allow(Vec), + Allow(::std::vec::Vec), } impl From<&ImportExportPolicy> for ImportExportPolicy { @@ -11440,8 +11500,8 @@ pub mod types { } } - impl From> for ImportExportPolicy { - fn from(value: Vec) -> Self { + impl From<::std::vec::Vec> for ImportExportPolicy { + fn from(value: ::std::vec::Vec) -> Self { Self::Allow(value) } } @@ -11608,8 +11668,9 @@ pub mod types { /// If this is not present, then either the instance has never been /// automatically restarted, or the cooldown period has already expired, /// allowing the instance to be restarted immediately if it fails. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub auto_restart_cooldown_expiration: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub auto_restart_cooldown_expiration: + ::std::option::Option>, /// `true` if this instance's auto-restart policy will permit the /// control plane to automatically restart it if it enters the `Failed` /// state. @@ -11624,16 +11685,16 @@ pub mod types { /// allow it to be restarted. The value of the `auto_restart_enabled` /// field indicates whether the instance will be auto-restarted, based /// on its current policy or the default if it has no configured policy. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub auto_restart_policy: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub auto_restart_policy: ::std::option::Option, /// the ID of the disk used to boot this Instance, if a specific one is /// assigned. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub boot_disk_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub boot_disk_id: ::std::option::Option, /// 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 @@ -11652,8 +11713,8 @@ pub mod types { /// /// If this is not present, then this instance has not been /// automatically restarted. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time_last_auto_restarted: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub time_last_auto_restarted: ::std::option::Option>, /// timestamp when this resource was last modified pub time_modified: chrono::DateTime, pub time_run_state_updated: chrono::DateTime, @@ -11748,7 +11809,7 @@ pub mod types { impl std::str::FromStr for InstanceAutoRestartPolicy { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "never" => Ok(Self::Never), "best_effort" => Ok(Self::BestEffort), @@ -11759,21 +11820,25 @@ pub mod types { impl std::convert::TryFrom<&str> for InstanceAutoRestartPolicy { 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 InstanceAutoRestartPolicy { + impl std::convert::TryFrom<&::std::string::String> for InstanceAutoRestartPolicy { 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 InstanceAutoRestartPolicy { + impl std::convert::TryFrom<::std::string::String> for InstanceAutoRestartPolicy { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -11821,29 +11886,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() } } @@ -12038,8 +12103,8 @@ pub mod types { /// configurable through other mechanisms, such as on a per-project /// basis. In that case, any configured default policy will be used if /// this is `null`. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub auto_restart_policy: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub auto_restart_policy: ::std::option::Option, /// The disk this instance should boot into. This disk can either be /// attached if it already exists, or created, if it should be a new /// disk. @@ -12055,20 +12120,20 @@ pub mod types { /// may result in an instance that only boots to the EFI shell until the /// desired disk is set as an explicit boot disk and the instance /// rebooted. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub boot_disk: Option, - pub description: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub boot_disk: ::std::option::Option, + 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, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub external_ips: ::std::vec::Vec, /// The hostname to be assigned to the instance pub hostname: Hostname, /// The amount of RAM (in bytes) to be allocated to the instance @@ -12085,8 +12150,8 @@ pub mod types { /// If not provided, all SSH public keys from the user's profile will be /// sent. If an empty list is provided, no public keys will be /// transmitted to the instance. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ssh_public_keys: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ssh_public_keys: ::std::option::Option<::std::vec::Vec>, /// Should this instance be started upon creation; true by default. #[serde(default = "defaults::default_bool::")] pub start: bool, @@ -12094,7 +12159,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 { @@ -12194,7 +12259,7 @@ pub mod types { /// During instance creation, create and attach disks #[serde(rename = "create")] Create { - description: String, + description: ::std::string::String, /// The initial source for this disk disk_source: DiskSource, name: Name, @@ -12319,7 +12384,7 @@ pub mod types { )] pub struct InstanceNetworkInterface { /// 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. @@ -12341,8 +12406,8 @@ pub mod types { pub time_modified: chrono::DateTime, /// A set of additional networks that this interface may send and /// receive traffic on. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub transit_ips: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub transit_ips: ::std::vec::Vec, /// The VPC to which the interface belongs. pub vpc_id: uuid::Uuid, } @@ -12442,7 +12507,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")] @@ -12455,8 +12520,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) } } @@ -12516,11 +12581,11 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceNetworkInterfaceCreate { - 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, @@ -12576,10 +12641,10 @@ pub mod types { )] pub struct InstanceNetworkInterfaceResultsPage { /// 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<&InstanceNetworkInterfaceResultsPage> for InstanceNetworkInterfaceResultsPage { @@ -12658,10 +12723,10 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InstanceNetworkInterfaceUpdate { - #[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 @@ -12677,8 +12742,8 @@ pub mod types { pub primary: bool, /// A set of additional networks that this interface may send and /// receive traffic on. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub transit_ips: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub transit_ips: ::std::vec::Vec, } impl From<&InstanceNetworkInterfaceUpdate> for InstanceNetworkInterfaceUpdate { @@ -12729,10 +12794,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 { @@ -12790,7 +12855,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, @@ -12975,7 +13040,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), @@ -12994,21 +13059,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() } } @@ -13107,14 +13176,14 @@ pub mod types { /// configurable through other mechanisms, such as on a per-project /// basis. In that case, any configured default policy will be used if /// this is `null`. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub auto_restart_policy: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub auto_restart_policy: ::std::option::Option, /// Name or ID of the disk the instance should be instructed to boot /// from. /// /// If not provided, unset the instance's boot disk. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub boot_disk: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub boot_disk: ::std::option::Option, /// The amount of memory to assign to this instance. pub memory: ByteCount, /// The number of CPUs to assign to this instance. @@ -13195,7 +13264,7 @@ pub mod types { )] pub struct InternetGateway { /// 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 @@ -13247,7 +13316,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InternetGatewayCreate { - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -13331,7 +13400,7 @@ pub mod types { /// The associated IP address, pub address: std::net::IpAddr, /// 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 associated internet gateway. @@ -13389,7 +13458,7 @@ pub mod types { )] pub struct InternetGatewayIpAddressCreate { pub address: std::net::IpAddr, - pub description: String, + pub description: ::std::string::String, pub name: Name, } @@ -13441,10 +13510,10 @@ pub mod types { )] pub struct InternetGatewayIpAddressResultsPage { /// 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<&InternetGatewayIpAddressResultsPage> for InternetGatewayIpAddressResultsPage { @@ -13525,7 +13594,7 @@ pub mod types { )] pub struct InternetGatewayIpPool { /// 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 associated internet gateway. @@ -13583,7 +13652,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct InternetGatewayIpPoolCreate { - pub description: String, + pub description: ::std::string::String, pub ip_pool: NameOrId, pub name: Name, } @@ -13636,10 +13705,10 @@ pub mod types { )] pub struct InternetGatewayIpPoolResultsPage { /// 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<&InternetGatewayIpPoolResultsPage> for InternetGatewayIpPoolResultsPage { @@ -13690,10 +13759,10 @@ pub mod types { )] pub struct InternetGatewayResultsPage { /// 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<&InternetGatewayResultsPage> for InternetGatewayResultsPage { @@ -13757,7 +13826,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() { @@ -13770,21 +13839,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() } } @@ -13866,7 +13939,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 @@ -13916,7 +13989,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, } @@ -14071,10 +14144,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 { @@ -14125,10 +14198,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 { @@ -14237,10 +14310,10 @@ pub mod types { )] pub struct IpPoolSiloLinkResultsPage { /// 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<&IpPoolSiloLinkResultsPage> for IpPoolSiloLinkResultsPage { @@ -14339,10 +14412,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 { @@ -14502,15 +14575,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 } @@ -14524,7 +14597,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])/\ @@ -14546,31 +14619,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()) @@ -14723,15 +14800,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 } @@ -14745,7 +14822,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( "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:\ |([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:\ @@ -14783,31 +14860,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()) @@ -14900,12 +14981,12 @@ pub mod types { pub struct Ipv6Utilization { /// The number of IPv6 addresses allocated from this pool. A 128-bit /// integer string to match the capacity field. - pub allocated: String, + pub allocated: ::std::string::String, /// The total number of IPv6 addresses in the pool, i.e., the sum of the /// lengths of the IPv6 ranges. An IPv6 range can contain up to 2^128 /// addresses, so we represent this value in JSON as a numeric string /// with a custom "uint128" format. - pub capacity: String, + pub capacity: ::std::string::String, } impl From<&Ipv6Utilization> for Ipv6Utilization { @@ -14951,15 +15032,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 } @@ -14973,7 +15054,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()); } @@ -14993,31 +15074,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()) @@ -15112,8 +15197,8 @@ pub mod types { /// The requested forward-error correction method. If this is not /// specified, the standard FEC for the underlying media will be applied /// if it can be determined. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub fec: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub fec: ::std::option::Option, /// The link-layer discovery protocol (LLDP) configuration for the link. pub lldp: LldpLinkConfigCreate, /// Maximum transmission unit for the link. @@ -15121,8 +15206,8 @@ pub mod types { /// The speed of the link. pub speed: LinkSpeed, /// Optional tx_eq settings - #[serde(default, skip_serializing_if = "Option::is_none")] - pub tx_eq: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub tx_eq: ::std::option::Option, } impl From<&LinkConfigCreate> for LinkConfigCreate { @@ -15213,7 +15298,7 @@ pub mod types { impl std::str::FromStr for LinkFec { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "firecode" => Ok(Self::Firecode), "none" => Ok(Self::None), @@ -15225,21 +15310,25 @@ pub mod types { impl std::convert::TryFrom<&str> for LinkFec { 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 LinkFec { + impl std::convert::TryFrom<&::std::string::String> for LinkFec { 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 LinkFec { + impl std::convert::TryFrom<::std::string::String> for LinkFec { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -15386,7 +15475,7 @@ pub mod types { impl std::str::FromStr for LinkSpeed { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "speed0_g" => Ok(Self::Speed0G), "speed1_g" => Ok(Self::Speed1G), @@ -15404,21 +15493,25 @@ pub mod types { impl std::convert::TryFrom<&str> for LinkSpeed { 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 LinkSpeed { + impl std::convert::TryFrom<&::std::string::String> for LinkSpeed { 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 LinkSpeed { + impl std::convert::TryFrom<::std::string::String> for LinkSpeed { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -15505,27 +15598,27 @@ pub mod types { )] pub struct LldpLinkConfig { /// The LLDP chassis identifier TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub chassis_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub chassis_id: ::std::option::Option<::std::string::String>, /// Whether or not the LLDP service is enabled. pub enabled: bool, /// The id of this LLDP service instance. pub id: uuid::Uuid, /// The LLDP link description TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub link_description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub link_description: ::std::option::Option<::std::string::String>, /// The LLDP link name TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub link_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub link_name: ::std::option::Option<::std::string::String>, /// The LLDP management IP TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub management_ip: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub management_ip: ::std::option::Option, /// The LLDP system description TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub system_description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub system_description: ::std::option::Option<::std::string::String>, /// The LLDP system name TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub system_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub system_name: ::std::option::Option<::std::string::String>, } impl From<&LldpLinkConfig> for LldpLinkConfig { @@ -15608,25 +15701,25 @@ pub mod types { )] pub struct LldpLinkConfigCreate { /// The LLDP chassis identifier TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub chassis_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub chassis_id: ::std::option::Option<::std::string::String>, /// Whether or not LLDP is enabled. pub enabled: bool, /// The LLDP link description TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub link_description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub link_description: ::std::option::Option<::std::string::String>, /// The LLDP link name TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub link_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub link_name: ::std::option::Option<::std::string::String>, /// The LLDP management IP TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub management_ip: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub management_ip: ::std::option::Option, /// The LLDP system description TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub system_description: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub system_description: ::std::option::Option<::std::string::String>, /// The LLDP system name TLV. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub system_name: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub system_name: ::std::option::Option<::std::string::String>, } impl From<&LldpLinkConfigCreate> for LldpLinkConfigCreate { @@ -15705,7 +15798,7 @@ pub mod types { /// The id of the rack where this loopback address is assigned. pub rack_id: uuid::Uuid, /// Switch location where this loopback address is assigned. - pub switch_location: String, + pub switch_location: ::std::string::String, } impl From<&LoopbackAddress> for LoopbackAddress { @@ -15852,10 +15945,10 @@ pub mod types { )] pub struct LoopbackAddressResultsPage { /// 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<&LoopbackAddressResultsPage> for LoopbackAddressResultsPage { @@ -15899,15 +15992,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 } @@ -15921,7 +16014,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()); } @@ -15943,31 +16036,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()) @@ -16056,10 +16153,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 { @@ -16154,7 +16251,7 @@ pub mod types { impl std::str::FromStr for MetricType { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "gauge" => Ok(Self::Gauge), "delta" => Ok(Self::Delta), @@ -16166,21 +16263,25 @@ pub mod types { impl std::convert::TryFrom<&str> for MetricType { 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 MetricType { + impl std::convert::TryFrom<&::std::string::String> for MetricType { 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 MetricType { + impl std::convert::TryFrom<::std::string::String> for MetricType { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -16215,8 +16316,8 @@ pub mod types { )] pub struct MissingDatum { pub datum_type: DatumType, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_time: Option>, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_time: ::std::option::Option>, } impl From<&MissingDatum> for MissingDatum { @@ -16265,15 +16366,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 } @@ -16287,7 +16388,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()); } @@ -16301,31 +16402,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()) @@ -16378,7 +16483,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() { @@ -16391,21 +16496,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() } } @@ -16508,7 +16617,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), @@ -16520,21 +16629,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() } } @@ -16596,7 +16709,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()), @@ -16606,21 +16719,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() } } @@ -16700,8 +16817,8 @@ pub mod types { pub primary: bool, pub slot: u8, pub subnet: IpNet, - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub transit_ips: Vec, + #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")] + pub transit_ips: ::std::vec::Vec, pub vni: Vni, } @@ -16840,7 +16957,7 @@ pub mod types { )] pub struct OxqlQueryResult { /// Tables resulting from the query, each containing timeseries. - pub tables: Vec, + pub tables: ::std::vec::Vec
, } impl From<&OxqlQueryResult> for OxqlQueryResult { @@ -16909,7 +17026,7 @@ pub mod types { impl std::str::FromStr for PaginationOrder { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "ascending" => Ok(Self::Ascending), "descending" => Ok(Self::Descending), @@ -16920,21 +17037,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PaginationOrder { 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 PaginationOrder { + impl std::convert::TryFrom<&::std::string::String> for PaginationOrder { 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 PaginationOrder { + impl std::convert::TryFrom<::std::string::String> for PaginationOrder { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -16963,15 +17084,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 } @@ -16985,7 +17106,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()); } @@ -16995,31 +17116,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()) @@ -17116,20 +17241,20 @@ pub mod types { pub form_factor: PhysicalDiskKind, /// unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, - pub model: String, + pub model: ::std::string::String, /// The operator-defined policy for a physical disk. pub policy: PhysicalDiskPolicy, - pub serial: 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, /// The current state Nexus believes the disk to be in. pub state: PhysicalDiskState, /// 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 { @@ -17196,7 +17321,7 @@ pub mod types { impl std::str::FromStr for PhysicalDiskKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "m2" => Ok(Self::M2), "u2" => Ok(Self::U2), @@ -17207,21 +17332,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PhysicalDiskKind { 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 PhysicalDiskKind { + impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskKind { 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 PhysicalDiskKind { + impl std::convert::TryFrom<::std::string::String> for PhysicalDiskKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17311,7 +17440,7 @@ pub mod types { impl std::str::FromStr for PhysicalDiskPolicy { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "in_service" => Ok(Self::InService), "expunged" => Ok(Self::Expunged), @@ -17322,21 +17451,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PhysicalDiskPolicy { 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 PhysicalDiskPolicy { + impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskPolicy { 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 PhysicalDiskPolicy { + impl std::convert::TryFrom<::std::string::String> for PhysicalDiskPolicy { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17377,10 +17510,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 { @@ -17469,7 +17602,7 @@ pub mod types { impl std::str::FromStr for PhysicalDiskState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "active" => Ok(Self::Active), "decommissioned" => Ok(Self::Decommissioned), @@ -17480,21 +17613,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PhysicalDiskState { 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 PhysicalDiskState { + impl std::convert::TryFrom<&::std::string::String> for PhysicalDiskState { 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 PhysicalDiskState { + impl std::convert::TryFrom<::std::string::String> for PhysicalDiskState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17591,7 +17728,7 @@ pub mod types { impl std::str::FromStr for PingStatus { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "ok" => Ok(Self::Ok), _ => Err("invalid value".into()), @@ -17601,21 +17738,25 @@ pub mod types { impl std::convert::TryFrom<&str> for PingStatus { 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 PingStatus { + impl std::convert::TryFrom<&::std::string::String> for PingStatus { 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 PingStatus { + impl std::convert::TryFrom<::std::string::String> for PingStatus { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -17664,10 +17805,11 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Points { - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start_times: Option>>, - pub timestamps: Vec>, - pub values: Vec, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub start_times: + ::std::option::Option<::std::vec::Vec>>, + pub timestamps: ::std::vec::Vec>, + pub values: ::std::vec::Vec, } impl From<&Points> for Points { @@ -17743,7 +17885,7 @@ pub mod types { )] pub struct Probe { /// 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 @@ -17813,9 +17955,9 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ProbeCreate { - pub description: String, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub ip_pool: Option, + pub description: ::std::string::String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub ip_pool: ::std::option::Option, pub name: Name, pub sled: uuid::Uuid, } @@ -17944,7 +18086,7 @@ pub mod types { impl std::str::FromStr for ProbeExternalIpKind { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "snat" => Ok(Self::Snat), "floating" => Ok(Self::Floating), @@ -17956,21 +18098,25 @@ pub mod types { impl std::convert::TryFrom<&str> for ProbeExternalIpKind { 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 ProbeExternalIpKind { + impl std::convert::TryFrom<&::std::string::String> for ProbeExternalIpKind { 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 ProbeExternalIpKind { + impl std::convert::TryFrom<::std::string::String> for ProbeExternalIpKind { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -18018,7 +18164,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct ProbeInfo { - pub external_ips: Vec, + pub external_ips: ::std::vec::Vec, pub id: uuid::Uuid, pub interface: NetworkInterface, pub name: Name, @@ -18073,10 +18219,10 @@ pub mod types { )] pub struct ProbeInfoResultsPage { /// 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<&ProbeInfoResultsPage> for ProbeInfoResultsPage { @@ -18145,7 +18291,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 @@ -18195,7 +18341,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, } @@ -18247,10 +18393,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 { @@ -18320,7 +18466,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), @@ -18332,21 +18478,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() } } @@ -18386,7 +18536,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 { @@ -18496,10 +18646,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 { @@ -18707,10 +18857,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 { @@ -18752,7 +18902,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, } @@ -18794,15 +18944,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 } @@ -18816,7 +18966,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()); } @@ -18833,31 +18983,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()) @@ -18901,10 +19055,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 { @@ -18979,11 +19133,11 @@ pub mod types { pub gw: std::net::IpAddr, /// Local preference for route. Higher preference indictes precedence /// within and across protocols. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub rib_priority: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub rib_priority: ::std::option::Option, /// VLAN id the gateway is reachable over. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vid: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vid: ::std::option::Option, } impl From<&Route> for Route { @@ -19027,7 +19181,7 @@ pub mod types { )] pub struct RouteConfig { /// The set of routes assigned to a switch port. - pub routes: Vec, + pub routes: ::std::vec::Vec, } impl From<&RouteConfig> for RouteConfig { @@ -19435,7 +19589,7 @@ pub mod types { )] pub struct RouterRoute { /// human-readable free-form text about a resource - pub description: String, + pub description: ::std::string::String, /// Selects which traffic this routing rule will apply to pub destination: RouteDestination, /// unique, immutable, system-controlled identifier for each resource @@ -19513,7 +19667,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct RouterRouteCreate { - pub description: String, + pub description: ::std::string::String, /// Selects which traffic this routing rule will apply to. pub destination: RouteDestination, pub name: Name, @@ -19639,7 +19793,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), @@ -19652,21 +19806,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() } } @@ -19707,10 +19865,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 { @@ -19784,12 +19942,12 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct RouterRouteUpdate { - #[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>, /// Selects which traffic this routing rule will apply to. 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, /// The location that matched packets should be forwarded to. pub target: RouteTarget, } @@ -19907,29 +20065,29 @@ 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, /// If set, attributes with this name will be considered to denote a /// user's group membership, where the values will be the 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>, /// 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 @@ -20038,27 +20196,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, /// 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 { @@ -20128,7 +20286,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()), @@ -20138,21 +20296,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() } } @@ -20242,7 +20404,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, @@ -20254,7 +20416,7 @@ pub mod types { /// /// The default is that no Fleet roles are conferred by any Silo roles /// unless there's a corresponding entry in this map. - pub mapped_fleet_roles: ::std::collections::HashMap>, + pub mapped_fleet_roles: ::std::collections::HashMap<::std::string::String, Vec>, /// unique, mutable, user-controlled identifier for each resource pub name: Name, /// timestamp when this resource was created @@ -20367,9 +20529,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, /// Mapping of which Fleet roles are conferred by each Silo role @@ -20377,7 +20539,7 @@ pub mod types { /// The default is that no Fleet roles are conferred by any Silo roles /// unless there's a corresponding entry in this map. #[serde(default, skip_serializing_if = "::std::collections::HashMap::is_empty")] - pub mapped_fleet_roles: ::std::collections::HashMap>, + pub mapped_fleet_roles: ::std::collections::HashMap<::std::string::String, Vec>, pub name: Name, /// Limits the amount of provisionable CPU, memory, and storage in the /// Silo. CPU and memory are only consumed by running instances, while @@ -20386,7 +20548,7 @@ pub mod types { pub quotas: SiloQuotasCreate, /// Initial TLS certificates to be used for the new Silo's console and /// API endpoints. These should be valid for the Silo's DNS name(s). - pub tls_certificates: Vec, + pub tls_certificates: ::std::vec::Vec, } impl From<&SiloCreate> for SiloCreate { @@ -20477,7 +20639,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), @@ -20488,21 +20650,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() } } @@ -20568,7 +20734,7 @@ pub mod types { )] pub struct SiloIpPool { /// 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, /// When a pool is the default for a silo, floating IPs and instance @@ -20631,10 +20797,10 @@ pub mod types { )] pub struct SiloIpPoolResultsPage { /// 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<&SiloIpPoolResultsPage> for SiloIpPoolResultsPage { @@ -20824,10 +20990,10 @@ pub mod types { )] pub struct SiloQuotasResultsPage { /// 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<&SiloQuotasResultsPage> for SiloQuotasResultsPage { @@ -20904,15 +21070,15 @@ pub mod types { pub struct SiloQuotasUpdate { /// The amount of virtual CPUs available for running instances in the /// Silo - #[serde(default, skip_serializing_if = "Option::is_none")] - pub cpus: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub cpus: ::std::option::Option, /// The amount of RAM (in bytes) available for running instances in the /// Silo - #[serde(default, skip_serializing_if = "Option::is_none")] - pub memory: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub memory: ::std::option::Option, /// The amount of storage (in bytes) available for disks or snapshots - #[serde(default, skip_serializing_if = "Option::is_none")] - pub storage: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub storage: ::std::option::Option, } impl From<&SiloQuotasUpdate> for SiloQuotasUpdate { @@ -20963,10 +21129,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 { @@ -21036,7 +21202,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), @@ -21048,21 +21214,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() } } @@ -21102,7 +21272,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 { @@ -21285,10 +21455,10 @@ pub mod types { )] pub struct SiloUtilizationResultsPage { /// 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<&SiloUtilizationResultsPage> for SiloUtilizationResultsPage { @@ -21538,8 +21708,8 @@ pub mod types { /// unique, immutable, system-controlled identifier for each resource pub id: uuid::Uuid, pub memory: i64, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub migration_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub migration_id: ::std::option::Option, pub name: Name, pub ncpus: i64, pub project_name: Name, @@ -21599,10 +21769,10 @@ pub mod types { )] pub struct SledInstanceResultsPage { /// 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<&SledInstanceResultsPage> for SledInstanceResultsPage { @@ -21772,7 +21942,7 @@ pub mod types { impl std::str::FromStr for SledProvisionPolicy { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "provisionable" => Ok(Self::Provisionable), "non_provisionable" => Ok(Self::NonProvisionable), @@ -21783,21 +21953,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SledProvisionPolicy { 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 SledProvisionPolicy { + impl std::convert::TryFrom<&::std::string::String> for SledProvisionPolicy { 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 SledProvisionPolicy { + impl std::convert::TryFrom<::std::string::String> for SledProvisionPolicy { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -21937,10 +22111,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 { @@ -22029,7 +22203,7 @@ pub mod types { impl std::str::FromStr for SledState { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "active" => Ok(Self::Active), "decommissioned" => Ok(Self::Decommissioned), @@ -22040,21 +22214,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SledState { 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 SledState { + impl std::convert::TryFrom<&::std::string::String> for SledState { 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 SledState { + impl std::convert::TryFrom<::std::string::String> for SledState { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -22131,7 +22309,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, @@ -22194,7 +22372,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct SnapshotCreate { - pub description: String, + pub description: ::std::string::String, /// The disk to be snapshotted pub disk: NameOrId, pub name: Name, @@ -22248,10 +22426,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 { @@ -22325,7 +22503,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), @@ -22338,21 +22516,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() } } @@ -22423,13 +22605,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 @@ -22483,10 +22665,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 { @@ -22537,10 +22719,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 { @@ -22664,7 +22846,7 @@ pub mod types { )] pub struct SwitchBgpHistory { /// Message history indexed by peer address. - pub history: ::std::collections::HashMap, + pub history: ::std::collections::HashMap<::std::string::String, BgpMessageHistory>, /// Switch this message history is associated with. pub switch: SwitchLocation, } @@ -22736,7 +22918,7 @@ pub mod types { /// A unique identifier for this switch interface. pub id: uuid::Uuid, /// The name of this switch interface. - pub interface_name: String, + pub interface_name: ::std::string::String, /// The switch interface kind. pub kind: SwitchInterfaceKind2, /// The port settings object this switch interface configuration belongs @@ -22995,7 +23177,7 @@ pub mod types { impl std::str::FromStr for SwitchInterfaceKind2 { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "primary" => Ok(Self::Primary), "vlan" => Ok(Self::Vlan), @@ -23007,21 +23189,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SwitchInterfaceKind2 { 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 SwitchInterfaceKind2 { + impl std::convert::TryFrom<&::std::string::String> for SwitchInterfaceKind2 { 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 SwitchInterfaceKind2 { + impl std::convert::TryFrom<::std::string::String> for SwitchInterfaceKind2 { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23128,7 +23314,7 @@ pub mod types { impl std::str::FromStr for SwitchLocation { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "switch0" => Ok(Self::Switch0), "switch1" => Ok(Self::Switch1), @@ -23139,21 +23325,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SwitchLocation { 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 SwitchLocation { + impl std::convert::TryFrom<&::std::string::String> for SwitchLocation { 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 SwitchLocation { + impl std::convert::TryFrom<::std::string::String> for SwitchLocation { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23212,15 +23402,15 @@ pub mod types { /// The id of the switch port. pub id: uuid::Uuid, /// The name of this switch port. - pub port_name: String, + pub port_name: ::std::string::String, /// The primary settings group of this switch port. Will be `None` until /// this switch port is configured. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub port_settings_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub port_settings_id: ::std::option::Option, /// The rack this switch port belongs to. pub rack_id: uuid::Uuid, /// The switch location of this switch port. - pub switch_location: String, + pub switch_location: ::std::string::String, } impl From<&SwitchPort> for SwitchPort { @@ -23297,12 +23487,12 @@ pub mod types { /// The id of the address lot block this address is drawn from. pub address_lot_block_id: uuid::Uuid, /// The interface name this address belongs to. - pub interface_name: String, + pub interface_name: ::std::string::String, /// The port settings object this address configuration belongs to. pub port_settings_id: uuid::Uuid, /// An optional VLAN ID - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vlan_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vlan_id: ::std::option::Option, } impl From<&SwitchPortAddressConfig> for SwitchPortAddressConfig { @@ -23539,7 +23729,7 @@ pub mod types { impl std::str::FromStr for SwitchPortGeometry { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "qsfp28x1" => Ok(Self::Qsfp28x1), "qsfp28x2" => Ok(Self::Qsfp28x2), @@ -23551,21 +23741,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SwitchPortGeometry { 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 SwitchPortGeometry { + impl std::convert::TryFrom<&::std::string::String> for SwitchPortGeometry { 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 SwitchPortGeometry { + impl std::convert::TryFrom<::std::string::String> for SwitchPortGeometry { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23649,7 +23843,7 @@ pub mod types { impl std::str::FromStr for SwitchPortGeometry2 { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "qsfp28x1" => Ok(Self::Qsfp28x1), "qsfp28x2" => Ok(Self::Qsfp28x2), @@ -23661,21 +23855,25 @@ pub mod types { impl std::convert::TryFrom<&str> for SwitchPortGeometry2 { 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 SwitchPortGeometry2 { + impl std::convert::TryFrom<&::std::string::String> for SwitchPortGeometry2 { 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 SwitchPortGeometry2 { + impl std::convert::TryFrom<::std::string::String> for SwitchPortGeometry2 { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -23772,14 +23970,14 @@ pub mod types { /// The requested forward-error correction method. If this is not /// specified, the standard FEC for the underlying media will be applied /// if it can be determined. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub fec: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub fec: ::std::option::Option, /// The name of this link. - pub link_name: String, + pub link_name: ::std::string::String, /// The link-layer discovery protocol service configuration id for this /// link. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub lldp_link_config_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub lldp_link_config_id: ::std::option::Option, /// The maximum transmission unit for this link. pub mtu: u16, /// The port settings this link configuration belongs to. @@ -23787,8 +23985,8 @@ pub mod types { /// The configured speed of the link. pub speed: LinkSpeed, /// The tx_eq configuration id for this link. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub tx_eq_config_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub tx_eq_config_id: ::std::option::Option, } impl From<&SwitchPortLinkConfig> for SwitchPortLinkConfig { @@ -23839,10 +24037,10 @@ pub mod types { )] pub struct SwitchPortResultsPage { /// 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<&SwitchPortResultsPage> for SwitchPortResultsPage { @@ -23932,16 +24130,16 @@ pub mod types { /// The route's gateway address. pub gw: IpNet, /// The interface name this route configuration is assigned to. - pub interface_name: String, + pub interface_name: ::std::string::String, /// The port settings object this route configuration belongs to. pub port_settings_id: uuid::Uuid, /// RIB Priority indicating priority within and across protocols. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub rib_priority: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub rib_priority: ::std::option::Option, /// The VLAN identifier for the route. Use this if the gateway is /// reachable over an 802.1Q tagged L2 segment. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub vlan_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub vlan_id: ::std::option::Option, } impl From<&SwitchPortRouteConfig> for SwitchPortRouteConfig { @@ -24012,7 +24210,7 @@ pub mod types { )] pub struct SwitchPortSettings { /// 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 @@ -24122,21 +24320,22 @@ pub mod types { )] pub struct SwitchPortSettingsCreate { /// Addresses indexed by interface name. - pub addresses: ::std::collections::HashMap, + pub addresses: ::std::collections::HashMap<::std::string::String, AddressConfig>, /// BGP peers indexed by interface name. - pub bgp_peers: ::std::collections::HashMap, - pub description: String, - pub groups: Vec, + pub bgp_peers: ::std::collections::HashMap<::std::string::String, BgpPeerConfig>, + pub description: ::std::string::String, + pub groups: ::std::vec::Vec, /// Interfaces indexed by link name. - pub interfaces: ::std::collections::HashMap, + pub interfaces: + ::std::collections::HashMap<::std::string::String, SwitchInterfaceConfigCreate>, /// Links indexed by phy name. On ports that are not broken out, this is /// always phy0. On a 2x breakout the options are phy0 and phy1, on 4x /// phy0-phy3, etc. - pub links: ::std::collections::HashMap, + pub links: ::std::collections::HashMap<::std::string::String, LinkConfigCreate>, pub name: Name, pub port_config: SwitchPortConfigCreate, /// Routes indexed by interface name. - pub routes: ::std::collections::HashMap, + pub routes: ::std::collections::HashMap<::std::string::String, RouteConfig>, } impl From<&SwitchPortSettingsCreate> for SwitchPortSettingsCreate { @@ -24245,10 +24444,10 @@ pub mod types { )] pub struct SwitchPortSettingsResultsPage { /// 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<&SwitchPortSettingsResultsPage> for SwitchPortSettingsResultsPage { @@ -24390,29 +24589,29 @@ pub mod types { )] pub struct SwitchPortSettingsView { /// Layer 3 IP address settings. - pub addresses: Vec, + pub addresses: ::std::vec::Vec, /// BGP peer settings. - pub bgp_peers: Vec, + pub bgp_peers: ::std::vec::Vec, /// Switch port settings included from other switch port settings /// groups. - pub groups: Vec, + pub groups: ::std::vec::Vec, /// Layer 3 interface settings. - pub interfaces: Vec, + pub interfaces: ::std::vec::Vec, /// Link-layer discovery protocol (LLDP) settings. - pub link_lldp: Vec, + pub link_lldp: ::std::vec::Vec, /// Layer 2 link settings. - pub links: Vec, + pub links: ::std::vec::Vec, /// Layer 1 physical port settings. pub port: SwitchPortConfig, /// IP route settings. - pub routes: Vec, + pub routes: ::std::vec::Vec, /// The primary switch port settings handle. pub settings: SwitchPortSettings, /// TX equalization settings. These are optional, and most links will /// not need them. - pub tx_eq: Vec>, + pub tx_eq: ::std::vec::Vec<::std::option::Option>, /// Vlan interface settings. - pub vlan_interfaces: Vec, + pub vlan_interfaces: ::std::vec::Vec, } impl From<&SwitchPortSettingsView> for SwitchPortSettingsView { @@ -24463,10 +24662,10 @@ pub mod types { )] pub struct SwitchResultsPage { /// 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<&SwitchResultsPage> for SwitchResultsPage { @@ -24593,7 +24792,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), @@ -24605,21 +24804,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() } } @@ -24658,8 +24861,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Table { - pub name: String, - pub timeseries: ::std::collections::HashMap, + pub name: ::std::string::String, + pub timeseries: ::std::collections::HashMap<::std::string::String, Timeseries>, } impl From<&Table> for Table { @@ -24709,7 +24912,7 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct Timeseries { - pub fields: ::std::collections::HashMap, + pub fields: ::std::collections::HashMap<::std::string::String, FieldValue>, pub points: Points, } @@ -24753,8 +24956,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct TimeseriesDescription { - pub metric: String, - pub target: String, + pub metric: ::std::string::String, + pub target: ::std::string::String, } impl From<&TimeseriesDescription> for TimeseriesDescription { @@ -24799,15 +25002,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 } @@ -24821,7 +25024,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]+))*)$", ) @@ -24840,31 +25043,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()) @@ -24899,7 +25106,7 @@ pub mod types { )] pub struct TimeseriesQuery { /// A timeseries query string, written in the Oximeter query language. - pub query: String, + pub query: ::std::string::String, } impl From<&TimeseriesQuery> for TimeseriesQuery { @@ -25035,10 +25242,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 { @@ -25114,20 +25321,20 @@ pub mod types { )] pub struct TxEqConfig { /// Main tap - #[serde(default, skip_serializing_if = "Option::is_none")] - pub main: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub main: ::std::option::Option, /// Post-cursor tap1 - #[serde(default, skip_serializing_if = "Option::is_none")] - pub post1: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub post1: ::std::option::Option, /// Post-cursor tap2 - #[serde(default, skip_serializing_if = "Option::is_none")] - pub post2: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub post2: ::std::option::Option, /// Pre-cursor tap1 - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pre1: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pre1: ::std::option::Option, /// Pre-cursor tap2 - #[serde(default, skip_serializing_if = "Option::is_none")] - pub pre2: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub pre2: ::std::option::Option, } impl From<&TxEqConfig> for TxEqConfig { @@ -25221,8 +25428,8 @@ pub mod types { :: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, schemars :: JsonSchema, )] pub struct UninitializedSledId { - pub part: String, - pub serial: String, + pub part: ::std::string::String, + pub serial: ::std::string::String, } impl From<&UninitializedSledId> for UninitializedSledId { @@ -25273,10 +25480,10 @@ pub mod types { )] pub struct UninitializedSledResultsPage { /// 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<&UninitializedSledResultsPage> for UninitializedSledResultsPage { @@ -25394,7 +25601,7 @@ pub mod types { impl std::str::FromStr for Units { type Err = self::error::ConversionError; - fn from_str(value: &str) -> Result { + fn from_str(value: &str) -> ::std::result::Result { match value { "count" => Ok(Self::Count), "bytes" => Ok(Self::Bytes), @@ -25413,21 +25620,25 @@ pub mod types { impl std::convert::TryFrom<&str> for Units { 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 Units { + impl std::convert::TryFrom<&::std::string::String> for Units { 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 Units { + impl std::convert::TryFrom<::std::string::String> for Units { type Error = self::error::ConversionError; - fn try_from(value: String) -> Result { + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { value.parse() } } @@ -25468,7 +25679,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, @@ -25545,7 +25756,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 @@ -25604,10 +25815,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 { @@ -25711,15 +25922,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 } @@ -25733,7 +25944,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()); } @@ -25747,31 +25958,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()) @@ -25886,10 +26101,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 { @@ -26195,17 +26410,17 @@ pub mod types { #[serde(tag = "type", content = "values")] pub enum ValueArray { #[serde(rename = "integer")] - Integer(Vec>), + Integer(::std::vec::Vec<::std::option::Option>), #[serde(rename = "double")] - Double(Vec>), + Double(::std::vec::Vec<::std::option::Option>), #[serde(rename = "boolean")] - Boolean(Vec>), + Boolean(::std::vec::Vec<::std::option::Option>), #[serde(rename = "string")] - String(Vec>), + String(::std::vec::Vec<::std::option::Option<::std::string::String>>), #[serde(rename = "integer_distribution")] - IntegerDistribution(Vec>), + IntegerDistribution(::std::vec::Vec<::std::option::Option>), #[serde(rename = "double_distribution")] - DoubleDistribution(Vec>), + DoubleDistribution(::std::vec::Vec<::std::option::Option>), } impl From<&ValueArray> for ValueArray { @@ -26214,38 +26429,38 @@ pub mod types { } } - impl From>> for ValueArray { - fn from(value: Vec>) -> Self { + impl From<::std::vec::Vec<::std::option::Option>> for ValueArray { + fn from(value: ::std::vec::Vec<::std::option::Option>) -> Self { Self::Integer(value) } } - impl From>> for ValueArray { - fn from(value: Vec>) -> Self { + impl From<::std::vec::Vec<::std::option::Option>> for ValueArray { + fn from(value: ::std::vec::Vec<::std::option::Option>) -> Self { Self::Double(value) } } - impl From>> for ValueArray { - fn from(value: Vec>) -> Self { + impl From<::std::vec::Vec<::std::option::Option>> for ValueArray { + fn from(value: ::std::vec::Vec<::std::option::Option>) -> Self { Self::Boolean(value) } } - impl From>> for ValueArray { - fn from(value: Vec>) -> Self { + impl From<::std::vec::Vec<::std::option::Option<::std::string::String>>> for ValueArray { + fn from(value: ::std::vec::Vec<::std::option::Option<::std::string::String>>) -> Self { Self::String(value) } } - impl From>> for ValueArray { - fn from(value: Vec>) -> Self { + impl From<::std::vec::Vec<::std::option::Option>> for ValueArray { + fn from(value: ::std::vec::Vec<::std::option::Option>) -> Self { Self::IntegerDistribution(value) } } - impl From>> for ValueArray { - fn from(value: Vec>) -> Self { + impl From<::std::vec::Vec<::std::option::Option>> for ValueArray { + fn from(value: ::std::vec::Vec<::std::option::Option>) -> Self { Self::DoubleDistribution(value) } } @@ -26414,29 +26629,29 @@ pub mod types { } impl std::str::FromStr for Vni { - 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 Vni { - 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 Vni { - 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 Vni { - type Error = ::Err; - fn try_from(value: String) -> Result { + type Error = ::Err; + fn try_from(value: String) -> ::std::result::Result { value.parse() } } @@ -26533,7 +26748,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 @@ -26613,7 +26828,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 /// @@ -26621,8 +26836,8 @@ pub mod types { /// range, which should 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, } @@ -26754,7 +26969,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 @@ -26768,7 +26983,7 @@ pub mod types { /// Whether this rule is in effect pub status: VpcFirewallRuleStatus, /// Determine the set 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 @@ -26840,7 +27055,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), @@ -26851,21 +27066,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() } } @@ -26921,7 +27140,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), @@ -26932,21 +27151,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() } } @@ -27016,15 +27239,15 @@ pub mod types { /// If present, host filters match the "other end" of traffic from the /// target’s perspective: for an inbound rule, they match the source of /// traffic. For an outbound rule, they match the destination. - #[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 or port ranges 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 { @@ -27251,7 +27474,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), @@ -27263,21 +27486,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() } } @@ -27333,7 +27560,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), @@ -27344,21 +27571,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() } } @@ -27611,7 +27842,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 @@ -27623,7 +27854,7 @@ pub mod types { /// Whether this rule is in effect pub status: VpcFirewallRuleStatus, /// Determine the set of instances that the rule applies to - pub targets: Vec, + pub targets: ::std::vec::Vec, } impl From<&VpcFirewallRuleUpdate> for VpcFirewallRuleUpdate { @@ -27666,7 +27897,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 { @@ -27707,7 +27938,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 { @@ -27758,10 +27989,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 { @@ -27842,7 +28073,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, @@ -27895,7 +28126,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, } @@ -27962,7 +28193,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), @@ -27973,21 +28204,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() } } @@ -28028,10 +28263,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 { @@ -28083,10 +28318,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 { @@ -28191,10 +28426,10 @@ pub mod types { )] pub struct VpcSubnet { /// ID for an attached custom router. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub custom_router_id: Option, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub custom_router_id: ::std::option::Option, /// 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. @@ -28305,9 +28540,9 @@ pub mod types { /// Custom routers apply in addition to the VPC-wide *system* router, /// and have higher priority than the system router for an otherwise /// equal-prefix-length match. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub custom_router: Option, - pub description: String, + #[serde(default, skip_serializing_if = "::std::option::Option::is_none")] + pub custom_router: ::std::option::Option, + pub description: ::std::string::String, /// The IPv4 address range for this subnet. /// /// It must be allocated from an RFC 1918 private address range, and @@ -28319,8 +28554,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, } @@ -28372,10 +28607,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 { @@ -28445,12 +28680,12 @@ pub mod types { pub struct VpcSubnetUpdate { /// An optional router, used to direct packets sent from hosts in this /// subnet to any destination address. - #[serde(default, skip_serializing_if = "Option::is_none")] - pub custom_router: Option, - #[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 custom_router: ::std::option::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 { @@ -28516,12 +28751,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 { @@ -28540,9 +28775,9 @@ pub mod types { pub mod builder { #[derive(Clone, Debug)] pub struct Address { - address: Result, - address_lot: Result, - vlan_id: Result, String>, + address: ::std::result::Result, + address_lot: ::std::result::Result, + vlan_id: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for Address { @@ -28578,7 +28813,7 @@ pub mod types { } pub fn vlan_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.vlan_id = value @@ -28588,9 +28823,11 @@ pub mod types { } } - impl std::convert::TryFrom
for super::Address { + impl ::std::convert::TryFrom
for super::Address { type Error = super::error::ConversionError; - fn try_from(value: Address) -> Result { + fn try_from( + value: Address, + ) -> ::std::result::Result { Ok(Self { address: value.address?, address_lot: value.address_lot?, @@ -28611,7 +28848,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressConfig { - addresses: Result, String>, + addresses: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for AddressConfig { @@ -28625,7 +28863,7 @@ pub mod types { impl AddressConfig { pub fn addresses(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.addresses = value @@ -28635,9 +28873,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressConfig { + impl ::std::convert::TryFrom for super::AddressConfig { type Error = super::error::ConversionError; - fn try_from(value: AddressConfig) -> Result { + fn try_from( + value: AddressConfig, + ) -> ::std::result::Result { Ok(Self { addresses: value.addresses?, }) @@ -28654,12 +28894,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLot { - description: Result, - id: Result, - kind: 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, + kind: ::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 AddressLot { @@ -28678,7 +28920,7 @@ pub mod types { impl AddressLot { 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 @@ -28738,9 +28980,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLot { + impl ::std::convert::TryFrom for super::AddressLot { type Error = super::error::ConversionError; - fn try_from(value: AddressLot) -> Result { + fn try_from( + value: AddressLot, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -28767,9 +29011,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLotBlock { - first_address: Result, - id: Result, - last_address: Result, + first_address: ::std::result::Result, + id: ::std::result::Result, + last_address: ::std::result::Result, } impl Default for AddressLotBlock { @@ -28815,9 +29059,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLotBlock { + impl ::std::convert::TryFrom for super::AddressLotBlock { type Error = super::error::ConversionError; - fn try_from(value: AddressLotBlock) -> Result { + fn try_from( + value: AddressLotBlock, + ) -> ::std::result::Result { Ok(Self { first_address: value.first_address?, id: value.id?, @@ -28838,8 +29084,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLotBlockCreate { - first_address: Result, - last_address: Result, + first_address: ::std::result::Result, + last_address: ::std::result::Result, } impl Default for AddressLotBlockCreate { @@ -28874,11 +29120,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLotBlockCreate { + impl ::std::convert::TryFrom for super::AddressLotBlockCreate { type Error = super::error::ConversionError; fn try_from( value: AddressLotBlockCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { first_address: value.first_address?, last_address: value.last_address?, @@ -28897,8 +29143,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLotBlockResultsPage { - 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 AddressLotBlockResultsPage { @@ -28913,7 +29165,7 @@ pub mod types { impl AddressLotBlockResultsPage { 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 @@ -28923,7 +29175,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 @@ -28933,11 +29185,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLotBlockResultsPage { + impl ::std::convert::TryFrom for super::AddressLotBlockResultsPage { type Error = super::error::ConversionError; fn try_from( value: AddressLotBlockResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -28956,10 +29208,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLotCreate { - blocks: Result, String>, - description: Result, - kind: Result, - name: Result, + blocks: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + kind: ::std::result::Result, + name: ::std::result::Result, } impl Default for AddressLotCreate { @@ -28976,7 +29231,7 @@ pub mod types { impl AddressLotCreate { pub fn blocks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.blocks = value @@ -28986,7 +29241,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 @@ -29016,9 +29271,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLotCreate { + impl ::std::convert::TryFrom for super::AddressLotCreate { type Error = super::error::ConversionError; - fn try_from(value: AddressLotCreate) -> Result { + fn try_from( + value: AddressLotCreate, + ) -> ::std::result::Result { Ok(Self { blocks: value.blocks?, description: value.description?, @@ -29041,8 +29298,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLotCreateResponse { - blocks: Result, String>, - lot: Result, + blocks: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + lot: ::std::result::Result, } impl Default for AddressLotCreateResponse { @@ -29057,7 +29317,7 @@ pub mod types { impl AddressLotCreateResponse { pub fn blocks(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.blocks = value @@ -29077,11 +29337,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLotCreateResponse { + impl ::std::convert::TryFrom for super::AddressLotCreateResponse { type Error = super::error::ConversionError; fn try_from( value: AddressLotCreateResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { blocks: value.blocks?, lot: value.lot?, @@ -29100,8 +29360,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct AddressLotResultsPage { - 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 AddressLotResultsPage { @@ -29116,7 +29379,7 @@ pub mod types { impl AddressLotResultsPage { 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 @@ -29126,7 +29389,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 @@ -29136,11 +29399,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AddressLotResultsPage { + impl ::std::convert::TryFrom for super::AddressLotResultsPage { type Error = super::error::ConversionError; fn try_from( value: AddressLotResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -29159,7 +29422,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct AggregateBgpMessageHistory { - switch_histories: Result, String>, + switch_histories: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for AggregateBgpMessageHistory { @@ -29173,7 +29439,7 @@ pub mod types { impl AggregateBgpMessageHistory { pub fn switch_histories(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.switch_histories = value.try_into().map_err(|e| { @@ -29186,11 +29452,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AggregateBgpMessageHistory { + impl ::std::convert::TryFrom for super::AggregateBgpMessageHistory { type Error = super::error::ConversionError; fn try_from( value: AggregateBgpMessageHistory, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { switch_histories: value.switch_histories?, }) @@ -29207,9 +29473,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct AllowList { - allowed_ips: Result, - time_created: Result, String>, - time_modified: Result, String>, + allowed_ips: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for AllowList { @@ -29255,9 +29523,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AllowList { + impl ::std::convert::TryFrom for super::AllowList { type Error = super::error::ConversionError; - fn try_from(value: AllowList) -> Result { + fn try_from( + value: AllowList, + ) -> ::std::result::Result { Ok(Self { allowed_ips: value.allowed_ips?, time_created: value.time_created?, @@ -29278,7 +29548,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct AllowListUpdate { - allowed_ips: Result, + allowed_ips: ::std::result::Result, } impl Default for AllowListUpdate { @@ -29302,9 +29572,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::AllowListUpdate { + impl ::std::convert::TryFrom for super::AllowListUpdate { type Error = super::error::ConversionError; - fn try_from(value: AllowListUpdate) -> Result { + fn try_from( + value: AllowListUpdate, + ) -> ::std::result::Result { Ok(Self { allowed_ips: value.allowed_ips?, }) @@ -29321,9 +29593,9 @@ pub mod types { #[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 { @@ -29339,7 +29611,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 @@ -29359,7 +29631,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 @@ -29369,9 +29641,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?, @@ -29392,8 +29666,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct BfdSessionDisable { - remote: Result, - switch: Result, + remote: ::std::result::Result, + switch: ::std::result::Result, } impl Default for BfdSessionDisable { @@ -29428,9 +29702,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BfdSessionDisable { + impl ::std::convert::TryFrom for super::BfdSessionDisable { type Error = super::error::ConversionError; - fn try_from(value: BfdSessionDisable) -> Result { + fn try_from( + value: BfdSessionDisable, + ) -> ::std::result::Result { Ok(Self { remote: value.remote?, switch: value.switch?, @@ -29449,12 +29725,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct BfdSessionEnable { - detection_threshold: Result, - local: Result, String>, - mode: Result, - remote: Result, - required_rx: Result, - switch: Result, + detection_threshold: ::std::result::Result, + local: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + mode: ::std::result::Result, + remote: ::std::result::Result, + required_rx: ::std::result::Result, + switch: ::std::result::Result, } impl Default for BfdSessionEnable { @@ -29488,7 +29767,7 @@ pub mod types { } pub fn local(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.local = value @@ -29538,9 +29817,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BfdSessionEnable { + impl ::std::convert::TryFrom for super::BfdSessionEnable { type Error = super::error::ConversionError; - fn try_from(value: BfdSessionEnable) -> Result { + fn try_from( + value: BfdSessionEnable, + ) -> ::std::result::Result { Ok(Self { detection_threshold: value.detection_threshold?, local: value.local?, @@ -29567,13 +29848,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct BfdStatus { - detection_threshold: Result, - local: Result, String>, - mode: Result, - peer: Result, - required_rx: Result, - state: Result, - switch: Result, + detection_threshold: ::std::result::Result, + local: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + mode: ::std::result::Result, + peer: ::std::result::Result, + required_rx: ::std::result::Result, + state: ::std::result::Result, + switch: ::std::result::Result, } impl Default for BfdStatus { @@ -29608,7 +29892,7 @@ pub mod types { } pub fn local(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.local = value @@ -29668,9 +29952,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BfdStatus { + impl ::std::convert::TryFrom for super::BfdStatus { type Error = super::error::ConversionError; - fn try_from(value: BfdStatus) -> Result { + fn try_from( + value: BfdStatus, + ) -> ::std::result::Result { Ok(Self { detection_threshold: value.detection_threshold?, local: value.local?, @@ -29699,11 +29985,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpAnnounceSet { - 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 BgpAnnounceSet { @@ -29721,7 +30009,7 @@ pub mod types { impl BgpAnnounceSet { 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 @@ -29771,9 +30059,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpAnnounceSet { + impl ::std::convert::TryFrom for super::BgpAnnounceSet { type Error = super::error::ConversionError; - fn try_from(value: BgpAnnounceSet) -> Result { + fn try_from( + value: BgpAnnounceSet, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -29798,9 +30088,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpAnnounceSetCreate { - announcement: Result, String>, - description: Result, - name: Result, + announcement: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for BgpAnnounceSetCreate { @@ -29816,7 +30109,7 @@ pub mod types { impl BgpAnnounceSetCreate { pub fn announcement(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.announcement = value.try_into().map_err(|e| { @@ -29826,7 +30119,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 @@ -29846,11 +30139,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpAnnounceSetCreate { + impl ::std::convert::TryFrom for super::BgpAnnounceSetCreate { type Error = super::error::ConversionError; fn try_from( value: BgpAnnounceSetCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { announcement: value.announcement?, description: value.description?, @@ -29871,9 +30164,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpAnnouncement { - address_lot_block_id: Result, - announce_set_id: Result, - network: Result, + address_lot_block_id: ::std::result::Result, + announce_set_id: ::std::result::Result, + network: ::std::result::Result, } impl Default for BgpAnnouncement { @@ -29924,9 +30217,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpAnnouncement { + impl ::std::convert::TryFrom for super::BgpAnnouncement { type Error = super::error::ConversionError; - fn try_from(value: BgpAnnouncement) -> Result { + fn try_from( + value: BgpAnnouncement, + ) -> ::std::result::Result { Ok(Self { address_lot_block_id: value.address_lot_block_id?, announce_set_id: value.announce_set_id?, @@ -29947,8 +30242,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpAnnouncementCreate { - address_lot_block: Result, - network: Result, + address_lot_block: ::std::result::Result, + network: ::std::result::Result, } impl Default for BgpAnnouncementCreate { @@ -29986,11 +30281,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpAnnouncementCreate { + impl ::std::convert::TryFrom for super::BgpAnnouncementCreate { type Error = super::error::ConversionError; fn try_from( value: BgpAnnouncementCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { address_lot_block: value.address_lot_block?, network: value.network?, @@ -30009,13 +30304,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpConfig { - asn: Result, - description: Result, - id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, - vrf: Result, String>, + asn: ::std::result::Result, + 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>, + vrf: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for BgpConfig { @@ -30045,7 +30345,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 @@ -30095,7 +30395,7 @@ pub mod types { } pub fn vrf(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.vrf = value @@ -30105,9 +30405,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpConfig { + impl ::std::convert::TryFrom for super::BgpConfig { type Error = super::error::ConversionError; - fn try_from(value: BgpConfig) -> Result { + fn try_from( + value: BgpConfig, + ) -> ::std::result::Result { Ok(Self { asn: value.asn?, description: value.description?, @@ -30136,11 +30438,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpConfigCreate { - asn: Result, - bgp_announce_set_id: Result, - description: Result, - name: Result, - vrf: Result, String>, + asn: ::std::result::Result, + bgp_announce_set_id: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + vrf: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for BgpConfigCreate { @@ -30183,7 +30485,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 @@ -30203,7 +30505,7 @@ pub mod types { } pub fn vrf(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.vrf = value @@ -30213,9 +30515,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpConfigCreate { + impl ::std::convert::TryFrom for super::BgpConfigCreate { type Error = super::error::ConversionError; - fn try_from(value: BgpConfigCreate) -> Result { + fn try_from( + value: BgpConfigCreate, + ) -> ::std::result::Result { Ok(Self { asn: value.asn?, bgp_announce_set_id: value.bgp_announce_set_id?, @@ -30240,8 +30544,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpConfigResultsPage { - 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 BgpConfigResultsPage { @@ -30256,7 +30563,7 @@ pub mod types { impl BgpConfigResultsPage { 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 @@ -30266,7 +30573,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 @@ -30276,11 +30583,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpConfigResultsPage { + impl ::std::convert::TryFrom for super::BgpConfigResultsPage { type Error = super::error::ConversionError; fn try_from( value: BgpConfigResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -30299,7 +30606,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpExported { - exports: Result<::std::collections::HashMap>, String>, + exports: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, ::std::vec::Vec>, + ::std::string::String, + >, } impl Default for BgpExported { @@ -30313,7 +30623,12 @@ pub mod types { impl BgpExported { pub fn exports(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::collections::HashMap>>, + T: std::convert::TryInto< + ::std::collections::HashMap< + ::std::string::String, + ::std::vec::Vec, + >, + >, T::Error: std::fmt::Display, { self.exports = value @@ -30323,9 +30638,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpExported { + impl ::std::convert::TryFrom for super::BgpExported { type Error = super::error::ConversionError; - fn try_from(value: BgpExported) -> Result { + fn try_from( + value: BgpExported, + ) -> ::std::result::Result { Ok(Self { exports: value.exports?, }) @@ -30342,10 +30659,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpImportedRouteIpv4 { - id: Result, - nexthop: Result, - prefix: Result, - switch: Result, + id: ::std::result::Result, + nexthop: ::std::result::Result, + prefix: ::std::result::Result, + switch: ::std::result::Result, } impl Default for BgpImportedRouteIpv4 { @@ -30402,11 +30719,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpImportedRouteIpv4 { + impl ::std::convert::TryFrom for super::BgpImportedRouteIpv4 { type Error = super::error::ConversionError; fn try_from( value: BgpImportedRouteIpv4, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { id: value.id?, nexthop: value.nexthop?, @@ -30429,24 +30746,28 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpPeer { - addr: Result, - allowed_export: Result, - allowed_import: Result, - bgp_config: Result, - communities: Result, String>, - connect_retry: Result, - delay_open: Result, - enforce_first_as: Result, - hold_time: Result, - idle_hold_time: Result, - interface_name: Result, - keepalive: Result, - local_pref: Result, String>, - md5_auth_key: Result, String>, - min_ttl: Result, String>, - multi_exit_discriminator: Result, String>, - remote_asn: Result, String>, - vlan_id: Result, String>, + addr: ::std::result::Result, + allowed_export: ::std::result::Result, + allowed_import: ::std::result::Result, + bgp_config: ::std::result::Result, + communities: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + connect_retry: ::std::result::Result, + delay_open: ::std::result::Result, + enforce_first_as: ::std::result::Result, + hold_time: ::std::result::Result, + idle_hold_time: ::std::result::Result, + interface_name: ::std::result::Result<::std::string::String, ::std::string::String>, + keepalive: ::std::result::Result, + local_pref: ::std::result::Result<::std::option::Option, ::std::string::String>, + md5_auth_key: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + min_ttl: ::std::result::Result<::std::option::Option, ::std::string::String>, + multi_exit_discriminator: + ::std::result::Result<::std::option::Option, ::std::string::String>, + remote_asn: ::std::result::Result<::std::option::Option, ::std::string::String>, + vlan_id: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for BgpPeer { @@ -30517,7 +30838,7 @@ pub mod types { } pub fn communities(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.communities = value @@ -30580,7 +30901,7 @@ pub mod types { } pub fn interface_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.interface_name = value.try_into().map_err(|e| { @@ -30600,7 +30921,7 @@ pub mod types { } pub fn local_pref(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.local_pref = value @@ -30610,7 +30931,7 @@ pub mod types { } pub fn md5_auth_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.md5_auth_key = value.try_into().map_err(|e| { @@ -30620,7 +30941,7 @@ pub mod types { } pub fn min_ttl(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.min_ttl = value @@ -30630,7 +30951,7 @@ pub mod types { } pub fn multi_exit_discriminator(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.multi_exit_discriminator = value.try_into().map_err(|e| { @@ -30643,7 +30964,7 @@ pub mod types { } pub fn remote_asn(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.remote_asn = value @@ -30653,7 +30974,7 @@ pub mod types { } pub fn vlan_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.vlan_id = value @@ -30663,9 +30984,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpPeer { + impl ::std::convert::TryFrom for super::BgpPeer { type Error = super::error::ConversionError; - fn try_from(value: BgpPeer) -> Result { + fn try_from( + value: BgpPeer, + ) -> ::std::result::Result { Ok(Self { addr: value.addr?, allowed_export: value.allowed_export?, @@ -30716,7 +31039,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpPeerConfig { - peers: Result, String>, + peers: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for BgpPeerConfig { @@ -30730,7 +31053,7 @@ pub mod types { impl BgpPeerConfig { pub fn peers(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.peers = value @@ -30740,9 +31063,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpPeerConfig { + impl ::std::convert::TryFrom for super::BgpPeerConfig { type Error = super::error::ConversionError; - fn try_from(value: BgpPeerConfig) -> Result { + fn try_from( + value: BgpPeerConfig, + ) -> ::std::result::Result { Ok(Self { peers: value.peers?, }) @@ -30759,12 +31084,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct BgpPeerStatus { - addr: Result, - local_asn: Result, - remote_asn: Result, - state: Result, - state_duration_millis: Result, - switch: Result, + addr: ::std::result::Result, + local_asn: ::std::result::Result, + remote_asn: ::std::result::Result, + state: ::std::result::Result, + state_duration_millis: ::std::result::Result, + switch: ::std::result::Result, } impl Default for BgpPeerStatus { @@ -30848,9 +31173,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::BgpPeerStatus { + impl ::std::convert::TryFrom for super::BgpPeerStatus { type Error = super::error::ConversionError; - fn try_from(value: BgpPeerStatus) -> Result { + fn try_from( + value: BgpPeerStatus, + ) -> ::std::result::Result { Ok(Self { addr: value.addr?, local_asn: value.local_asn?, @@ -30877,8 +31204,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 { @@ -30913,9 +31240,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?, @@ -30934,8 +31263,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binfloat { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binfloat { @@ -30970,9 +31299,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binfloat { + impl ::std::convert::TryFrom for super::Binfloat { type Error = super::error::ConversionError; - fn try_from(value: Binfloat) -> Result { + fn try_from( + value: Binfloat, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -30991,8 +31322,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binint16 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binint16 { @@ -31027,9 +31358,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binint16 { + impl ::std::convert::TryFrom for super::Binint16 { type Error = super::error::ConversionError; - fn try_from(value: Binint16) -> Result { + fn try_from( + value: Binint16, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31048,8 +31381,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binint32 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binint32 { @@ -31084,9 +31417,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binint32 { + impl ::std::convert::TryFrom for super::Binint32 { type Error = super::error::ConversionError; - fn try_from(value: Binint32) -> Result { + fn try_from( + value: Binint32, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31105,8 +31440,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 { @@ -31141,9 +31476,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?, @@ -31162,8 +31499,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binint8 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binint8 { @@ -31198,9 +31535,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binint8 { + impl ::std::convert::TryFrom for super::Binint8 { type Error = super::error::ConversionError; - fn try_from(value: Binint8) -> Result { + fn try_from( + value: Binint8, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31219,8 +31558,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binuint16 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binuint16 { @@ -31255,9 +31594,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binuint16 { + impl ::std::convert::TryFrom for super::Binuint16 { type Error = super::error::ConversionError; - fn try_from(value: Binuint16) -> Result { + fn try_from( + value: Binuint16, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31276,8 +31617,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binuint32 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binuint32 { @@ -31312,9 +31653,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binuint32 { + impl ::std::convert::TryFrom for super::Binuint32 { type Error = super::error::ConversionError; - fn try_from(value: Binuint32) -> Result { + fn try_from( + value: Binuint32, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31333,8 +31676,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binuint64 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binuint64 { @@ -31369,9 +31712,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binuint64 { + impl ::std::convert::TryFrom for super::Binuint64 { type Error = super::error::ConversionError; - fn try_from(value: Binuint64) -> Result { + fn try_from( + value: Binuint64, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31390,8 +31735,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Binuint8 { - count: Result, - range: Result, + count: ::std::result::Result, + range: ::std::result::Result, } impl Default for Binuint8 { @@ -31426,9 +31771,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Binuint8 { + impl ::std::convert::TryFrom for super::Binuint8 { type Error = super::error::ConversionError; - fn try_from(value: Binuint8) -> Result { + fn try_from( + value: Binuint8, + ) -> ::std::result::Result { Ok(Self { count: value.count?, range: value.range?, @@ -31447,13 +31794,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct Certificate { - cert: Result, - description: Result, - id: Result, - name: Result, - service: Result, - time_created: Result, String>, - time_modified: Result, String>, + cert: ::std::result::Result<::std::string::String, ::std::string::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 { @@ -31473,7 +31822,7 @@ pub mod types { impl Certificate { pub fn cert(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.cert = value @@ -31483,7 +31832,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 @@ -31543,9 +31892,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 { cert: value.cert?, description: value.description?, @@ -31574,11 +31925,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct CertificateCreate { - cert: Result, - description: Result, - key: Result, - name: Result, - service: Result, + cert: ::std::result::Result<::std::string::String, ::std::string::String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + key: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + service: ::std::result::Result, } impl Default for CertificateCreate { @@ -31596,7 +31947,7 @@ pub mod types { impl CertificateCreate { pub fn cert(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.cert = value @@ -31606,7 +31957,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 @@ -31616,7 +31967,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 @@ -31646,9 +31997,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?, @@ -31673,8 +32026,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 { @@ -31689,7 +32046,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 @@ -31699,7 +32056,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 @@ -31709,11 +32066,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?, @@ -31732,8 +32089,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 { @@ -31768,9 +32126,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?, @@ -31789,8 +32149,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativefloat { - start_time: Result, String>, - value: Result, + start_time: + ::std::result::Result, ::std::string::String>, + value: ::std::result::Result, } impl Default for Cumulativefloat { @@ -31825,9 +32186,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Cumulativefloat { + impl ::std::convert::TryFrom for super::Cumulativefloat { type Error = super::error::ConversionError; - fn try_from(value: Cumulativefloat) -> Result { + fn try_from( + value: Cumulativefloat, + ) -> ::std::result::Result { Ok(Self { start_time: value.start_time?, value: value.value?, @@ -31846,8 +32209,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 { @@ -31882,9 +32246,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?, @@ -31903,8 +32269,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct Cumulativeuint64 { - start_time: Result, String>, - value: Result, + start_time: + ::std::result::Result, ::std::string::String>, + value: ::std::result::Result, } impl Default for Cumulativeuint64 { @@ -31939,9 +32306,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Cumulativeuint64 { + impl ::std::convert::TryFrom for super::Cumulativeuint64 { type Error = super::error::ConversionError; - fn try_from(value: Cumulativeuint64) -> Result { + fn try_from( + value: Cumulativeuint64, + ) -> ::std::result::Result { Ok(Self { start_time: value.start_time?, value: value.value?, @@ -31960,10 +32329,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct CurrentUser { - display_name: Result, - id: Result, - silo_id: Result, - silo_name: Result, + display_name: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + silo_id: ::std::result::Result, + silo_name: ::std::result::Result, } impl Default for CurrentUser { @@ -31980,7 +32349,7 @@ pub mod types { impl CurrentUser { 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| { @@ -32020,9 +32389,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::CurrentUser { + impl ::std::convert::TryFrom for super::CurrentUser { type Error = super::error::ConversionError; - fn try_from(value: CurrentUser) -> Result { + fn try_from( + value: CurrentUser, + ) -> ::std::result::Result { Ok(Self { display_name: value.display_name?, id: value.id?, @@ -32045,8 +32416,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 { @@ -32061,7 +32432,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 @@ -32071,7 +32442,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 @@ -32081,9 +32452,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?, @@ -32102,9 +32475,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 { @@ -32130,7 +32503,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 @@ -32140,7 +32513,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 @@ -32150,11 +32523,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?, @@ -32175,7 +32548,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DeviceAuthRequest { - client_id: Result, + client_id: ::std::result::Result, } impl Default for DeviceAuthRequest { @@ -32199,9 +32572,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?, }) @@ -32218,7 +32593,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 { @@ -32232,7 +32607,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 @@ -32242,9 +32617,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?, }) @@ -32261,18 +32638,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 { @@ -32307,7 +32688,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 @@ -32317,7 +32698,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 @@ -32337,7 +32718,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 @@ -32377,7 +32758,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 @@ -32417,9 +32798,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?, @@ -32458,10 +32839,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 { @@ -32478,7 +32859,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 @@ -32518,9 +32899,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?, @@ -32543,7 +32926,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct DiskPath { - disk: Result, + disk: ::std::result::Result, } impl Default for DiskPath { @@ -32567,9 +32950,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? }) } } @@ -32584,8 +32969,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 { @@ -32600,7 +32988,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 @@ -32610,7 +32998,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 @@ -32620,9 +33008,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?, @@ -32641,15 +33031,24 @@ pub mod types { #[derive(Clone, Debug)] pub struct Distributiondouble { - bins: Result, String>, - counts: Result, String>, - max: Result, String>, - min: Result, String>, - p50: Result, String>, - p90: Result, String>, - p99: Result, String>, - squared_mean: Result, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + counts: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result<::std::option::Option, ::std::string::String>, + min: ::std::result::Result<::std::option::Option, ::std::string::String>, + p50: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + p90: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + p99: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + squared_mean: ::std::result::Result, + sum_of_samples: ::std::result::Result, } impl Default for Distributiondouble { @@ -32671,7 +33070,7 @@ pub mod types { impl Distributiondouble { 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 @@ -32681,7 +33080,7 @@ pub mod types { } pub fn counts(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.counts = value @@ -32691,7 +33090,7 @@ pub mod types { } pub fn max(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.max = value @@ -32701,7 +33100,7 @@ pub mod types { } pub fn min(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.min = value @@ -32711,7 +33110,7 @@ pub mod types { } pub fn p50(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.p50 = value @@ -32721,7 +33120,7 @@ pub mod types { } pub fn p90(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.p90 = value @@ -32731,7 +33130,7 @@ pub mod types { } pub fn p99(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.p99 = value @@ -32761,9 +33160,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Distributiondouble { + impl ::std::convert::TryFrom for super::Distributiondouble { type Error = super::error::ConversionError; - fn try_from(value: Distributiondouble) -> Result { + fn try_from( + value: Distributiondouble, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, counts: value.counts?, @@ -32796,15 +33197,24 @@ pub mod types { #[derive(Clone, Debug)] pub struct Distributionint64 { - bins: Result, String>, - counts: Result, String>, - max: Result, String>, - min: Result, String>, - p50: Result, String>, - p90: Result, String>, - p99: Result, String>, - squared_mean: Result, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + counts: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result<::std::option::Option, ::std::string::String>, + min: ::std::result::Result<::std::option::Option, ::std::string::String>, + p50: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + p90: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + p99: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + squared_mean: ::std::result::Result, + sum_of_samples: ::std::result::Result, } impl Default for Distributionint64 { @@ -32826,7 +33236,7 @@ pub mod types { impl Distributionint64 { 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 @@ -32836,7 +33246,7 @@ pub mod types { } pub fn counts(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.counts = value @@ -32846,7 +33256,7 @@ pub mod types { } pub fn max(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.max = value @@ -32856,7 +33266,7 @@ pub mod types { } pub fn min(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.min = value @@ -32866,7 +33276,7 @@ pub mod types { } pub fn p50(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.p50 = value @@ -32876,7 +33286,7 @@ pub mod types { } pub fn p90(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.p90 = value @@ -32886,7 +33296,7 @@ pub mod types { } pub fn p99(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.p99 = value @@ -32916,9 +33326,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Distributionint64 { + impl ::std::convert::TryFrom for super::Distributionint64 { type Error = super::error::ConversionError; - fn try_from(value: Distributionint64) -> Result { + fn try_from( + value: Distributionint64, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, counts: value.counts?, @@ -32951,7 +33363,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct EphemeralIpCreate { - pool: Result, String>, + pool: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for EphemeralIpCreate { @@ -32965,7 +33380,7 @@ pub mod types { impl EphemeralIpCreate { pub fn pool(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.pool = value @@ -32975,9 +33390,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::EphemeralIpCreate { + impl ::std::convert::TryFrom for super::EphemeralIpCreate { type Error = super::error::ConversionError; - fn try_from(value: EphemeralIpCreate) -> Result { + fn try_from( + value: EphemeralIpCreate, + ) -> ::std::result::Result { Ok(Self { pool: value.pool? }) } } @@ -32992,9 +33409,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 { @@ -33010,7 +33430,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 @@ -33020,7 +33440,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 @@ -33030,7 +33450,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 @@ -33040,9 +33460,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?, @@ -33063,8 +33485,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 { @@ -33079,7 +33504,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 @@ -33089,7 +33514,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 @@ -33099,11 +33524,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?, @@ -33122,10 +33547,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct FieldSchema { - description: Result, - field_type: Result, - name: Result, - source: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + field_type: ::std::result::Result, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + source: ::std::result::Result, } impl Default for FieldSchema { @@ -33142,7 +33567,7 @@ pub mod types { impl FieldSchema { 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 @@ -33162,7 +33587,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 @@ -33182,9 +33607,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 { description: value.description?, field_type: value.field_type?, @@ -33207,7 +33634,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct FinalizeDisk { - snapshot_name: Result, String>, + snapshot_name: + ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for FinalizeDisk { @@ -33221,7 +33649,7 @@ pub mod types { impl FinalizeDisk { pub fn snapshot_name(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.snapshot_name = value.try_into().map_err(|e| { @@ -33231,9 +33659,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FinalizeDisk { + impl ::std::convert::TryFrom for super::FinalizeDisk { type Error = super::error::ConversionError; - fn try_from(value: FinalizeDisk) -> Result { + fn try_from( + value: FinalizeDisk, + ) -> ::std::result::Result { Ok(Self { snapshot_name: value.snapshot_name?, }) @@ -33250,7 +33680,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 { @@ -33264,7 +33697,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| { @@ -33277,9 +33710,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?, }) @@ -33296,9 +33731,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 { @@ -33344,11 +33779,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?, @@ -33369,15 +33804,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct FloatingIp { - description: Result, - id: Result, - instance_id: Result, String>, - ip: Result, - ip_pool_id: Result, - name: Result, - project_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + instance_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + ip: ::std::result::Result, + ip_pool_id: ::std::result::Result, + name: ::std::result::Result, + project_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for FloatingIp { @@ -33399,7 +33837,7 @@ pub mod types { impl FloatingIp { 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 @@ -33419,7 +33857,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>, T::Error: std::fmt::Display, { self.instance_id = value @@ -33489,9 +33927,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FloatingIp { + impl ::std::convert::TryFrom for super::FloatingIp { type Error = super::error::ConversionError; - fn try_from(value: FloatingIp) -> Result { + fn try_from( + value: FloatingIp, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -33524,8 +33964,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct FloatingIpAttach { - kind: Result, - parent: Result, + kind: ::std::result::Result, + parent: ::std::result::Result, } impl Default for FloatingIpAttach { @@ -33560,9 +34000,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FloatingIpAttach { + impl ::std::convert::TryFrom for super::FloatingIpAttach { type Error = super::error::ConversionError; - fn try_from(value: FloatingIpAttach) -> Result { + fn try_from( + value: FloatingIpAttach, + ) -> ::std::result::Result { Ok(Self { kind: value.kind?, parent: value.parent?, @@ -33581,10 +34023,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct FloatingIpCreate { - description: Result, - ip: Result, String>, - name: Result, - pool: Result, String>, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ip: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + name: ::std::result::Result, + pool: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for FloatingIpCreate { @@ -33601,7 +34049,7 @@ pub mod types { impl FloatingIpCreate { 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 @@ -33611,7 +34059,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 @@ -33631,7 +34079,7 @@ pub mod types { } pub fn pool(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.pool = value @@ -33641,9 +34089,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FloatingIpCreate { + impl ::std::convert::TryFrom for super::FloatingIpCreate { type Error = super::error::ConversionError; - fn try_from(value: FloatingIpCreate) -> Result { + fn try_from( + value: FloatingIpCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, ip: value.ip?, @@ -33666,8 +34116,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct FloatingIpResultsPage { - 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 FloatingIpResultsPage { @@ -33682,7 +34135,7 @@ pub mod types { impl FloatingIpResultsPage { 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 @@ -33692,7 +34145,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 @@ -33702,11 +34155,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FloatingIpResultsPage { + impl ::std::convert::TryFrom for super::FloatingIpResultsPage { type Error = super::error::ConversionError; fn try_from( value: FloatingIpResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -33725,8 +34178,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct FloatingIpUpdate { - 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 FloatingIpUpdate { @@ -33741,7 +34197,7 @@ pub mod types { impl FloatingIpUpdate { 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 @@ -33751,7 +34207,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 @@ -33761,9 +34217,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::FloatingIpUpdate { + impl ::std::convert::TryFrom for super::FloatingIpUpdate { type Error = super::error::ConversionError; - fn try_from(value: FloatingIpUpdate) -> Result { + fn try_from( + value: FloatingIpUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -33782,9 +34240,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 { @@ -33800,7 +34258,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| { @@ -33830,9 +34288,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?, @@ -33853,8 +34313,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 { @@ -33869,7 +34332,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 @@ -33879,7 +34342,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 @@ -33889,9 +34352,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?, @@ -33910,16 +34375,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramdouble { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramdouble { @@ -33942,7 +34408,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 @@ -34042,9 +34508,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?, max: value.max?, @@ -34079,16 +34547,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramfloat { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramfloat { @@ -34111,7 +34580,7 @@ pub mod types { impl Histogramfloat { 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 @@ -34211,9 +34680,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramfloat { + impl ::std::convert::TryFrom for super::Histogramfloat { type Error = super::error::ConversionError; - fn try_from(value: Histogramfloat) -> Result { + fn try_from( + value: Histogramfloat, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -34248,16 +34719,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramint16 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramint16 { @@ -34280,7 +34752,7 @@ pub mod types { impl Histogramint16 { 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 @@ -34380,9 +34852,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramint16 { + impl ::std::convert::TryFrom for super::Histogramint16 { type Error = super::error::ConversionError; - fn try_from(value: Histogramint16) -> Result { + fn try_from( + value: Histogramint16, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -34417,16 +34891,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramint32 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramint32 { @@ -34449,7 +34924,7 @@ pub mod types { impl Histogramint32 { 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 @@ -34549,9 +35024,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramint32 { + impl ::std::convert::TryFrom for super::Histogramint32 { type Error = super::error::ConversionError; - fn try_from(value: Histogramint32) -> Result { + fn try_from( + value: Histogramint32, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -34586,16 +35063,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramint64 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramint64 { @@ -34618,7 +35096,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 @@ -34718,9 +35196,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?, max: value.max?, @@ -34755,16 +35235,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramint8 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramint8 { @@ -34787,7 +35268,7 @@ pub mod types { impl Histogramint8 { 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 @@ -34887,9 +35368,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramint8 { + impl ::std::convert::TryFrom for super::Histogramint8 { type Error = super::error::ConversionError; - fn try_from(value: Histogramint8) -> Result { + fn try_from( + value: Histogramint8, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -34924,16 +35407,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramuint16 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramuint16 { @@ -34956,7 +35440,7 @@ pub mod types { impl Histogramuint16 { 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 @@ -35056,9 +35540,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramuint16 { + impl ::std::convert::TryFrom for super::Histogramuint16 { type Error = super::error::ConversionError; - fn try_from(value: Histogramuint16) -> Result { + fn try_from( + value: Histogramuint16, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -35093,16 +35579,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramuint32 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramuint32 { @@ -35125,7 +35612,7 @@ pub mod types { impl Histogramuint32 { 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 @@ -35225,9 +35712,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramuint32 { + impl ::std::convert::TryFrom for super::Histogramuint32 { type Error = super::error::ConversionError; - fn try_from(value: Histogramuint32) -> Result { + fn try_from( + value: Histogramuint32, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -35262,16 +35751,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramuint64 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramuint64 { @@ -35294,7 +35784,7 @@ pub mod types { impl Histogramuint64 { 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 @@ -35394,9 +35884,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramuint64 { + impl ::std::convert::TryFrom for super::Histogramuint64 { type Error = super::error::ConversionError; - fn try_from(value: Histogramuint64) -> Result { + fn try_from( + value: Histogramuint64, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -35431,16 +35923,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Histogramuint8 { - bins: Result, String>, - max: Result, - min: Result, - n_samples: Result, - p50: Result, - p90: Result, - p99: Result, - squared_mean: Result, - start_time: Result, String>, - sum_of_samples: Result, + bins: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + max: ::std::result::Result, + min: ::std::result::Result, + n_samples: ::std::result::Result, + p50: ::std::result::Result, + p90: ::std::result::Result, + p99: ::std::result::Result, + squared_mean: ::std::result::Result, + start_time: + ::std::result::Result, ::std::string::String>, + sum_of_samples: ::std::result::Result, } impl Default for Histogramuint8 { @@ -35463,7 +35956,7 @@ pub mod types { impl Histogramuint8 { 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 @@ -35563,9 +36056,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Histogramuint8 { + impl ::std::convert::TryFrom for super::Histogramuint8 { type Error = super::error::ConversionError; - fn try_from(value: Histogramuint8) -> Result { + fn try_from( + value: Histogramuint8, + ) -> ::std::result::Result { Ok(Self { bins: value.bins?, max: value.max?, @@ -35600,12 +36095,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 { @@ -35624,7 +36122,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 @@ -35684,9 +36182,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?, @@ -35713,8 +36213,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 { @@ -35729,7 +36235,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 @@ -35739,7 +36245,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 @@ -35749,11 +36255,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?, @@ -35772,17 +36278,21 @@ pub mod types { #[derive(Clone, Debug)] pub struct Image { - block_size: Result, - description: Result, - digest: Result, String>, - id: Result, - name: Result, - os: Result, - project_id: Result, String>, - size: Result, - time_created: Result, String>, - time_modified: 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>, + id: ::std::result::Result, + name: ::std::result::Result, + os: ::std::result::Result<::std::string::String, ::std::string::String>, + project_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + size: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + version: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Image { @@ -35816,7 +36326,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 @@ -35826,7 +36336,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 @@ -35856,7 +36366,7 @@ pub mod types { } pub fn os(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.os = value @@ -35866,7 +36376,7 @@ pub mod types { } pub fn project_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.project_id = value @@ -35906,7 +36416,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 @@ -35916,9 +36426,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?, @@ -35955,11 +36467,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ImageCreate { - description: Result, - name: Result, - os: Result, - source: Result, - version: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, + os: ::std::result::Result<::std::string::String, ::std::string::String>, + source: ::std::result::Result, + version: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for ImageCreate { @@ -35977,7 +36489,7 @@ pub mod types { impl ImageCreate { 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 @@ -35997,7 +36509,7 @@ pub mod types { } pub fn os(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.os = value @@ -36017,7 +36529,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 @@ -36027,9 +36539,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 { description: value.description?, name: value.name?, @@ -36054,8 +36568,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 { @@ -36070,7 +36587,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 @@ -36080,7 +36597,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 @@ -36090,9 +36607,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?, @@ -36111,8 +36630,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct ImportBlocksBulkWrite { - base64_encoded_data: Result, - offset: Result, + base64_encoded_data: + ::std::result::Result<::std::string::String, ::std::string::String>, + offset: ::std::result::Result, } impl Default for ImportBlocksBulkWrite { @@ -36129,7 +36649,7 @@ pub mod types { impl ImportBlocksBulkWrite { pub fn base64_encoded_data(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.base64_encoded_data = value.try_into().map_err(|e| { @@ -36152,11 +36672,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ImportBlocksBulkWrite { + impl ::std::convert::TryFrom for super::ImportBlocksBulkWrite { type Error = super::error::ConversionError; fn try_from( value: ImportBlocksBulkWrite, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { base64_encoded_data: value.base64_encoded_data?, offset: value.offset?, @@ -36175,23 +36695,35 @@ pub mod types { #[derive(Clone, Debug)] pub struct Instance { - auto_restart_cooldown_expiration: - Result>, String>, - auto_restart_enabled: Result, - auto_restart_policy: Result, String>, - boot_disk_id: Result, String>, - description: Result, - hostname: Result, - id: Result, - memory: Result, - name: Result, - ncpus: Result, - project_id: Result, - run_state: Result, - time_created: Result, String>, - time_last_auto_restarted: Result>, String>, - time_modified: Result, String>, - time_run_state_updated: Result, String>, + auto_restart_cooldown_expiration: ::std::result::Result< + ::std::option::Option>, + ::std::string::String, + >, + auto_restart_enabled: ::std::result::Result, + auto_restart_policy: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + boot_disk_id: + ::std::result::Result<::std::option::Option, ::std::string::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_last_auto_restarted: ::std::result::Result< + ::std::option::Option>, + ::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 { @@ -36224,7 +36756,9 @@ pub mod types { impl Instance { pub fn auto_restart_cooldown_expiration(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto< + ::std::option::Option>, + >, T::Error: std::fmt::Display, { self.auto_restart_cooldown_expiration = value.try_into().map_err(|e| { @@ -36250,7 +36784,7 @@ pub mod types { } pub fn auto_restart_policy(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.auto_restart_policy = value.try_into().map_err(|e| { @@ -36263,7 +36797,7 @@ pub mod types { } pub fn boot_disk_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.boot_disk_id = value.try_into().map_err(|e| { @@ -36273,7 +36807,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 @@ -36283,7 +36817,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 @@ -36363,7 +36897,9 @@ pub mod types { } pub fn time_last_auto_restarted(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto< + ::std::option::Option>, + >, T::Error: std::fmt::Display, { self.time_last_auto_restarted = value.try_into().map_err(|e| { @@ -36399,9 +36935,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 { auto_restart_cooldown_expiration: value.auto_restart_cooldown_expiration?, auto_restart_enabled: value.auto_restart_enabled?, @@ -36448,19 +36986,37 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceCreate { - auto_restart_policy: Result, String>, - boot_disk: Result, String>, - description: Result, - disks: Result, String>, - external_ips: Result, String>, - hostname: Result, - memory: Result, - name: Result, - ncpus: Result, - network_interfaces: Result, - ssh_public_keys: Result>, String>, - start: Result, - user_data: Result, + auto_restart_policy: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + boot_disk: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + 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, + memory: ::std::result::Result, + name: ::std::result::Result, + ncpus: ::std::result::Result, + network_interfaces: ::std::result::Result< + super::InstanceNetworkInterfaceAttachment, + ::std::string::String, + >, + ssh_public_keys: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>, + ::std::string::String, + >, + start: ::std::result::Result, + user_data: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for InstanceCreate { @@ -36486,7 +37042,7 @@ pub mod types { impl InstanceCreate { pub fn auto_restart_policy(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.auto_restart_policy = value.try_into().map_err(|e| { @@ -36499,7 +37055,7 @@ pub mod types { } pub fn boot_disk(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.boot_disk = value @@ -36509,7 +37065,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 @@ -36519,7 +37075,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 @@ -36529,7 +37085,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| { @@ -36592,7 +37148,7 @@ pub mod types { } pub fn ssh_public_keys(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.ssh_public_keys = value.try_into().map_err(|e| { @@ -36612,7 +37168,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 @@ -36622,9 +37178,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 { auto_restart_policy: value.auto_restart_policy?, boot_disk: value.boot_disk?, @@ -36665,18 +37223,21 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceNetworkInterface { - 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>, - transit_ips: 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>, + transit_ips: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + vpc_id: ::std::result::Result, } impl Default for InstanceNetworkInterface { @@ -36701,7 +37262,7 @@ pub mod types { impl InstanceNetworkInterface { 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 @@ -36801,7 +37362,7 @@ pub mod types { } pub fn transit_ips(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.transit_ips = value @@ -36821,11 +37382,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceNetworkInterface { + impl ::std::convert::TryFrom for super::InstanceNetworkInterface { type Error = super::error::ConversionError; fn try_from( value: InstanceNetworkInterface, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -36864,11 +37425,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceNetworkInterfaceCreate { - 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 InstanceNetworkInterfaceCreate { @@ -36886,7 +37450,7 @@ pub mod types { impl InstanceNetworkInterfaceCreate { 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 @@ -36896,7 +37460,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 @@ -36936,13 +37500,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceNetworkInterfaceCreate { type Error = super::error::ConversionError; fn try_from( value: InstanceNetworkInterfaceCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, ip: value.ip?, @@ -36967,8 +37531,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceNetworkInterfaceResultsPage { - 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 InstanceNetworkInterfaceResultsPage { @@ -36983,7 +37553,7 @@ pub mod types { impl InstanceNetworkInterfaceResultsPage { 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 @@ -36993,7 +37563,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 @@ -37003,13 +37573,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceNetworkInterfaceResultsPage { type Error = super::error::ConversionError; fn try_from( value: InstanceNetworkInterfaceResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -37028,10 +37598,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceNetworkInterfaceUpdate { - description: Result, String>, - name: Result, String>, - primary: Result, - transit_ips: 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>, + primary: ::std::result::Result, + transit_ips: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for InstanceNetworkInterfaceUpdate { @@ -37048,7 +37622,7 @@ pub mod types { impl InstanceNetworkInterfaceUpdate { 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 @@ -37058,7 +37632,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 @@ -37078,7 +37652,7 @@ pub mod types { } pub fn transit_ips(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.transit_ips = value @@ -37088,13 +37662,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InstanceNetworkInterfaceUpdate { type Error = super::error::ConversionError; fn try_from( value: InstanceNetworkInterfaceUpdate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -37117,8 +37691,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 { @@ -37133,7 +37710,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 @@ -37143,7 +37720,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 @@ -37153,9 +37730,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?, @@ -37174,8 +37753,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 { @@ -37190,7 +37769,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 @@ -37213,11 +37792,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?, @@ -37236,10 +37815,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct InstanceUpdate { - auto_restart_policy: Result, String>, - boot_disk: Result, String>, - memory: Result, - ncpus: Result, + auto_restart_policy: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + boot_disk: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + memory: ::std::result::Result, + ncpus: ::std::result::Result, } impl Default for InstanceUpdate { @@ -37256,7 +37841,7 @@ pub mod types { impl InstanceUpdate { pub fn auto_restart_policy(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.auto_restart_policy = value.try_into().map_err(|e| { @@ -37269,7 +37854,7 @@ pub mod types { } pub fn boot_disk(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.boot_disk = value @@ -37299,9 +37884,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InstanceUpdate { + impl ::std::convert::TryFrom for super::InstanceUpdate { type Error = super::error::ConversionError; - fn try_from(value: InstanceUpdate) -> Result { + fn try_from( + value: InstanceUpdate, + ) -> ::std::result::Result { Ok(Self { auto_restart_policy: value.auto_restart_policy?, boot_disk: value.boot_disk?, @@ -37324,12 +37911,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGateway { - description: Result, - id: 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, + 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 InternetGateway { @@ -37348,7 +37937,7 @@ pub mod types { impl InternetGateway { 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 @@ -37408,9 +37997,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InternetGateway { + impl ::std::convert::TryFrom for super::InternetGateway { type Error = super::error::ConversionError; - fn try_from(value: InternetGateway) -> Result { + fn try_from( + value: InternetGateway, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -37437,8 +38028,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayCreate { - description: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for InternetGatewayCreate { @@ -37453,7 +38044,7 @@ pub mod types { impl InternetGatewayCreate { 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 @@ -37473,11 +38064,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InternetGatewayCreate { + impl ::std::convert::TryFrom for super::InternetGatewayCreate { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, name: value.name?, @@ -37496,13 +38087,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpAddress { - address: Result, - description: Result, - id: Result, - internet_gateway_id: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, + address: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + id: ::std::result::Result, + internet_gateway_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 InternetGatewayIpAddress { @@ -37534,7 +38127,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 @@ -37597,11 +38190,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InternetGatewayIpAddress { + impl ::std::convert::TryFrom for super::InternetGatewayIpAddress { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayIpAddress, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { address: value.address?, description: value.description?, @@ -37630,9 +38223,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpAddressCreate { - address: Result, - description: Result, - name: Result, + address: ::std::result::Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + name: ::std::result::Result, } impl Default for InternetGatewayIpAddressCreate { @@ -37658,7 +38251,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 @@ -37678,13 +38271,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InternetGatewayIpAddressCreate { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayIpAddressCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { address: value.address?, description: value.description?, @@ -37705,8 +38298,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpAddressResultsPage { - 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 InternetGatewayIpAddressResultsPage { @@ -37721,7 +38320,7 @@ pub mod types { impl InternetGatewayIpAddressResultsPage { 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 @@ -37731,7 +38330,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 @@ -37741,13 +38340,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InternetGatewayIpAddressResultsPage { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayIpAddressResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -37766,13 +38365,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpPool { - description: Result, - id: Result, - internet_gateway_id: Result, - ip_pool_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, + internet_gateway_id: ::std::result::Result, + ip_pool_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 InternetGatewayIpPool { @@ -37794,7 +38395,7 @@ pub mod types { impl InternetGatewayIpPool { 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 @@ -37867,11 +38468,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InternetGatewayIpPool { + impl ::std::convert::TryFrom for super::InternetGatewayIpPool { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayIpPool, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -37900,9 +38501,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpPoolCreate { - description: Result, - ip_pool: Result, - name: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ip_pool: ::std::result::Result, + name: ::std::result::Result, } impl Default for InternetGatewayIpPoolCreate { @@ -37918,7 +38519,7 @@ pub mod types { impl InternetGatewayIpPoolCreate { 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 @@ -37948,11 +38549,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InternetGatewayIpPoolCreate { + impl ::std::convert::TryFrom for super::InternetGatewayIpPoolCreate { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayIpPoolCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { description: value.description?, ip_pool: value.ip_pool?, @@ -37973,8 +38574,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayIpPoolResultsPage { - 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 InternetGatewayIpPoolResultsPage { @@ -37989,7 +38596,7 @@ pub mod types { impl InternetGatewayIpPoolResultsPage { 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 @@ -37999,7 +38606,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 @@ -38009,13 +38616,13 @@ pub mod types { } } - impl std::convert::TryFrom + impl ::std::convert::TryFrom for super::InternetGatewayIpPoolResultsPage { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayIpPoolResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -38034,8 +38641,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct InternetGatewayResultsPage { - 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 InternetGatewayResultsPage { @@ -38050,7 +38663,7 @@ pub mod types { impl InternetGatewayResultsPage { 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 @@ -38060,7 +38673,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 @@ -38070,11 +38683,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::InternetGatewayResultsPage { + impl ::std::convert::TryFrom for super::InternetGatewayResultsPage { type Error = super::error::ConversionError; fn try_from( value: InternetGatewayResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -38093,11 +38706,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 { @@ -38115,7 +38730,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 @@ -38165,9 +38780,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?, @@ -38192,8 +38809,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 { @@ -38208,7 +38825,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 @@ -38228,9 +38845,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?, @@ -38249,8 +38868,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolLinkSilo { - is_default: Result, - silo: Result, + is_default: ::std::result::Result, + silo: ::std::result::Result, } impl Default for IpPoolLinkSilo { @@ -38285,9 +38904,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolLinkSilo { + impl ::std::convert::TryFrom for super::IpPoolLinkSilo { type Error = super::error::ConversionError; - fn try_from(value: IpPoolLinkSilo) -> Result { + fn try_from( + value: IpPoolLinkSilo, + ) -> ::std::result::Result { Ok(Self { is_default: value.is_default?, silo: value.silo?, @@ -38306,10 +38927,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolRange { - id: Result, - ip_pool_id: Result, - range: Result, - time_created: Result, String>, + id: ::std::result::Result, + ip_pool_id: ::std::result::Result, + range: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, } impl Default for IpPoolRange { @@ -38366,9 +38988,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?, ip_pool_id: value.ip_pool_id?, @@ -38391,8 +39015,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 { @@ -38407,7 +39035,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 @@ -38417,7 +39045,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 @@ -38427,11 +39055,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?, @@ -38450,8 +39078,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 { @@ -38466,7 +39097,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 @@ -38476,7 +39107,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 @@ -38486,9 +39117,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?, @@ -38507,9 +39140,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolSiloLink { - ip_pool_id: Result, - is_default: Result, - silo_id: Result, + ip_pool_id: ::std::result::Result, + is_default: ::std::result::Result, + silo_id: ::std::result::Result, } impl Default for IpPoolSiloLink { @@ -38555,9 +39188,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolSiloLink { + impl ::std::convert::TryFrom for super::IpPoolSiloLink { type Error = super::error::ConversionError; - fn try_from(value: IpPoolSiloLink) -> Result { + fn try_from( + value: IpPoolSiloLink, + ) -> ::std::result::Result { Ok(Self { ip_pool_id: value.ip_pool_id?, is_default: value.is_default?, @@ -38578,8 +39213,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolSiloLinkResultsPage { - 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 IpPoolSiloLinkResultsPage { @@ -38594,7 +39235,7 @@ pub mod types { impl IpPoolSiloLinkResultsPage { 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 @@ -38604,7 +39245,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 @@ -38614,11 +39255,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolSiloLinkResultsPage { + impl ::std::convert::TryFrom for super::IpPoolSiloLinkResultsPage { type Error = super::error::ConversionError; fn try_from( value: IpPoolSiloLinkResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -38637,7 +39278,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolSiloUpdate { - is_default: Result, + is_default: ::std::result::Result, } impl Default for IpPoolSiloUpdate { @@ -38661,9 +39302,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolSiloUpdate { + impl ::std::convert::TryFrom for super::IpPoolSiloUpdate { type Error = super::error::ConversionError; - fn try_from(value: IpPoolSiloUpdate) -> Result { + fn try_from( + value: IpPoolSiloUpdate, + ) -> ::std::result::Result { Ok(Self { is_default: value.is_default?, }) @@ -38680,8 +39323,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 { @@ -38696,7 +39342,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 @@ -38706,7 +39352,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 @@ -38716,9 +39362,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?, @@ -38737,8 +39385,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct IpPoolUtilization { - ipv4: Result, - ipv6: Result, + ipv4: ::std::result::Result, + ipv6: ::std::result::Result, } impl Default for IpPoolUtilization { @@ -38773,9 +39421,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::IpPoolUtilization { + impl ::std::convert::TryFrom for super::IpPoolUtilization { type Error = super::error::ConversionError; - fn try_from(value: IpPoolUtilization) -> Result { + fn try_from( + value: IpPoolUtilization, + ) -> ::std::result::Result { Ok(Self { ipv4: value.ipv4?, ipv6: value.ipv6?, @@ -38794,8 +39444,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 { @@ -38830,9 +39480,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?, @@ -38851,8 +39503,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv4Utilization { - allocated: Result, - capacity: Result, + allocated: ::std::result::Result, + capacity: ::std::result::Result, } impl Default for Ipv4Utilization { @@ -38887,9 +39539,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ipv4Utilization { + impl ::std::convert::TryFrom for super::Ipv4Utilization { type Error = super::error::ConversionError; - fn try_from(value: Ipv4Utilization) -> Result { + fn try_from( + value: Ipv4Utilization, + ) -> ::std::result::Result { Ok(Self { allocated: value.allocated?, capacity: value.capacity?, @@ -38908,8 +39562,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 { @@ -38944,9 +39598,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?, @@ -38965,8 +39621,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ipv6Utilization { - allocated: Result, - capacity: Result, + allocated: ::std::result::Result<::std::string::String, ::std::string::String>, + capacity: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for Ipv6Utilization { @@ -38981,7 +39637,7 @@ pub mod types { impl Ipv6Utilization { pub fn allocated(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.allocated = value @@ -38991,7 +39647,7 @@ pub mod types { } pub fn capacity(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.capacity = value @@ -39001,9 +39657,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ipv6Utilization { + impl ::std::convert::TryFrom for super::Ipv6Utilization { type Error = super::error::ConversionError; - fn try_from(value: Ipv6Utilization) -> Result { + fn try_from( + value: Ipv6Utilization, + ) -> ::std::result::Result { Ok(Self { allocated: value.allocated?, capacity: value.capacity?, @@ -39022,12 +39680,16 @@ pub mod types { #[derive(Clone, Debug)] pub struct LinkConfigCreate { - autoneg: Result, - fec: Result, String>, - lldp: Result, - mtu: Result, - speed: Result, - tx_eq: Result, String>, + autoneg: ::std::result::Result, + fec: + ::std::result::Result<::std::option::Option, ::std::string::String>, + lldp: ::std::result::Result, + mtu: ::std::result::Result, + speed: ::std::result::Result, + tx_eq: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for LinkConfigCreate { @@ -39056,7 +39718,7 @@ pub mod types { } pub fn fec(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.fec = value @@ -39096,7 +39758,7 @@ pub mod types { } pub fn tx_eq(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.tx_eq = value @@ -39106,9 +39768,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::LinkConfigCreate { + impl ::std::convert::TryFrom for super::LinkConfigCreate { type Error = super::error::ConversionError; - fn try_from(value: LinkConfigCreate) -> Result { + fn try_from( + value: LinkConfigCreate, + ) -> ::std::result::Result { Ok(Self { autoneg: value.autoneg?, fec: value.fec?, @@ -39135,14 +39799,30 @@ pub mod types { #[derive(Clone, Debug)] pub struct LldpLinkConfig { - chassis_id: Result, String>, - enabled: Result, - id: Result, - link_description: Result, String>, - link_name: Result, String>, - management_ip: Result, String>, - system_description: Result, String>, - system_name: Result, String>, + chassis_id: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + enabled: ::std::result::Result, + id: ::std::result::Result, + link_description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + link_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + management_ip: + ::std::result::Result<::std::option::Option, ::std::string::String>, + system_description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + system_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for LldpLinkConfig { @@ -39163,7 +39843,7 @@ pub mod types { impl LldpLinkConfig { pub fn chassis_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.chassis_id = value @@ -39193,7 +39873,7 @@ pub mod types { } pub fn link_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.link_description = value.try_into().map_err(|e| { @@ -39206,7 +39886,7 @@ pub mod types { } pub fn link_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.link_name = value @@ -39216,7 +39896,7 @@ pub mod types { } pub fn management_ip(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.management_ip = value.try_into().map_err(|e| { @@ -39226,7 +39906,7 @@ pub mod types { } pub fn system_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.system_description = value.try_into().map_err(|e| { @@ -39239,7 +39919,7 @@ pub mod types { } pub fn system_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.system_name = value @@ -39249,9 +39929,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::LldpLinkConfig { + impl ::std::convert::TryFrom for super::LldpLinkConfig { type Error = super::error::ConversionError; - fn try_from(value: LldpLinkConfig) -> Result { + fn try_from( + value: LldpLinkConfig, + ) -> ::std::result::Result { Ok(Self { chassis_id: value.chassis_id?, enabled: value.enabled?, @@ -39282,13 +39964,31 @@ pub mod types { #[derive(Clone, Debug)] pub struct LldpLinkConfigCreate { - chassis_id: Result, String>, - enabled: Result, - link_description: Result, String>, - link_name: Result, String>, - management_ip: Result, String>, - system_description: Result, String>, - system_name: Result, String>, + chassis_id: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + enabled: ::std::result::Result, + link_description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + link_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + management_ip: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + system_description: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, + system_name: ::std::result::Result< + ::std::option::Option<::std::string::String>, + ::std::string::String, + >, } impl Default for LldpLinkConfigCreate { @@ -39308,7 +40008,7 @@ pub mod types { impl LldpLinkConfigCreate { pub fn chassis_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.chassis_id = value @@ -39328,7 +40028,7 @@ pub mod types { } pub fn link_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.link_description = value.try_into().map_err(|e| { @@ -39341,7 +40041,7 @@ pub mod types { } pub fn link_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.link_name = value @@ -39351,7 +40051,7 @@ pub mod types { } pub fn management_ip(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.management_ip = value.try_into().map_err(|e| { @@ -39361,7 +40061,7 @@ pub mod types { } pub fn system_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.system_description = value.try_into().map_err(|e| { @@ -39374,7 +40074,7 @@ pub mod types { } pub fn system_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.system_name = value @@ -39384,11 +40084,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::LldpLinkConfigCreate { + impl ::std::convert::TryFrom for super::LldpLinkConfigCreate { type Error = super::error::ConversionError; fn try_from( value: LldpLinkConfigCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { chassis_id: value.chassis_id?, enabled: value.enabled?, @@ -39417,11 +40117,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct LoopbackAddress { - address: Result, - address_lot_block_id: Result, - id: Result, - rack_id: Result, - switch_location: Result, + address: ::std::result::Result, + address_lot_block_id: ::std::result::Result, + id: ::std::result::Result, + rack_id: ::std::result::Result, + switch_location: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for LoopbackAddress { @@ -39484,7 +40184,7 @@ pub mod types { } pub fn switch_location(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.switch_location = value.try_into().map_err(|e| { @@ -39494,9 +40194,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::LoopbackAddress { + impl ::std::convert::TryFrom for super::LoopbackAddress { type Error = super::error::ConversionError; - fn try_from(value: LoopbackAddress) -> Result { + fn try_from( + value: LoopbackAddress, + ) -> ::std::result::Result { Ok(Self { address: value.address?, address_lot_block_id: value.address_lot_block_id?, @@ -39521,12 +40223,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct LoopbackAddressCreate { - address: Result, - address_lot: Result, - anycast: Result, - mask: Result, - rack_id: Result, - switch_location: Result, + address: ::std::result::Result, + address_lot: ::std::result::Result, + anycast: ::std::result::Result, + mask: ::std::result::Result, + rack_id: ::std::result::Result, + switch_location: ::std::result::Result, } impl Default for LoopbackAddressCreate { @@ -39605,11 +40307,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::LoopbackAddressCreate { + impl ::std::convert::TryFrom for super::LoopbackAddressCreate { type Error = super::error::ConversionError; fn try_from( value: LoopbackAddressCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { address: value.address?, address_lot: value.address_lot?, @@ -39636,8 +40338,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct LoopbackAddressResultsPage { - 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 LoopbackAddressResultsPage { @@ -39652,7 +40360,7 @@ pub mod types { impl LoopbackAddressResultsPage { 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 @@ -39662,7 +40370,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 @@ -39672,11 +40380,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::LoopbackAddressResultsPage { + impl ::std::convert::TryFrom for super::LoopbackAddressResultsPage { type Error = super::error::ConversionError; fn try_from( value: LoopbackAddressResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -39695,8 +40403,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 { @@ -39731,9 +40440,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?, @@ -39752,8 +40463,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 { @@ -39768,7 +40483,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 @@ -39778,7 +40493,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 @@ -39788,11 +40503,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?, @@ -39811,8 +40526,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct MissingDatum { - datum_type: Result, - start_time: Result>, String>, + datum_type: ::std::result::Result, + start_time: ::std::result::Result< + ::std::option::Option>, + ::std::string::String, + >, } impl Default for MissingDatum { @@ -39837,7 +40555,9 @@ pub mod types { } pub fn start_time(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto< + ::std::option::Option>, + >, T::Error: std::fmt::Display, { self.start_time = value @@ -39847,9 +40567,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::MissingDatum { + impl ::std::convert::TryFrom for super::MissingDatum { type Error = super::error::ConversionError; - fn try_from(value: MissingDatum) -> Result { + fn try_from( + value: MissingDatum, + ) -> ::std::result::Result { Ok(Self { datum_type: value.datum_type?, start_time: value.start_time?, @@ -39868,16 +40590,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct NetworkInterface { - id: Result, - ip: Result, - kind: Result, - mac: Result, - name: Result, - primary: Result, - slot: Result, - subnet: Result, - transit_ips: Result, String>, - vni: Result, + id: ::std::result::Result, + ip: ::std::result::Result, + kind: ::std::result::Result, + mac: ::std::result::Result, + name: ::std::result::Result, + primary: ::std::result::Result, + slot: ::std::result::Result, + subnet: ::std::result::Result, + transit_ips: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + vni: ::std::result::Result, } impl Default for NetworkInterface { @@ -39980,7 +40703,7 @@ pub mod types { } pub fn transit_ips(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.transit_ips = value @@ -40000,9 +40723,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 { id: value.id?, ip: value.ip?, @@ -40037,7 +40762,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct OxqlQueryResult { - tables: Result, String>, + tables: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for OxqlQueryResult { @@ -40051,7 +40776,7 @@ pub mod types { impl OxqlQueryResult { pub fn tables(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.tables = value @@ -40061,9 +40786,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::OxqlQueryResult { + impl ::std::convert::TryFrom for super::OxqlQueryResult { type Error = super::error::ConversionError; - fn try_from(value: OxqlQueryResult) -> Result { + fn try_from( + value: OxqlQueryResult, + ) -> ::std::result::Result { Ok(Self { tables: value.tables?, }) @@ -40080,16 +40807,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct PhysicalDisk { - form_factor: Result, - id: Result, - model: Result, - policy: Result, - serial: Result, - sled_id: Result, String>, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, - vendor: Result, + form_factor: ::std::result::Result, + id: ::std::result::Result, + model: ::std::result::Result<::std::string::String, ::std::string::String>, + policy: ::std::result::Result, + serial: ::std::result::Result<::std::string::String, ::std::string::String>, + sled_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>, + vendor: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for PhysicalDisk { @@ -40132,7 +40862,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 @@ -40152,7 +40882,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 @@ -40162,7 +40892,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 @@ -40202,7 +40932,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 @@ -40212,9 +40942,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 { form_factor: value.form_factor?, id: value.id?, @@ -40249,8 +40981,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 { @@ -40265,7 +41001,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 @@ -40275,7 +41011,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 @@ -40285,11 +41021,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?, @@ -40308,7 +41044,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct Ping { - status: Result, + status: ::std::result::Result, } impl Default for Ping { @@ -40332,9 +41068,9 @@ pub mod types { } } - impl std::convert::TryFrom for super::Ping { + impl ::std::convert::TryFrom for super::Ping { type Error = super::error::ConversionError; - fn try_from(value: Ping) -> Result { + fn try_from(value: Ping) -> ::std::result::Result { Ok(Self { status: value.status?, }) @@ -40351,9 +41087,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct Points { - start_times: Result>>, String>, - timestamps: Result>, String>, - values: Result, String>, + start_times: ::std::result::Result< + ::std::option::Option<::std::vec::Vec>>, + ::std::string::String, + >, + timestamps: ::std::result::Result< + ::std::vec::Vec>, + ::std::string::String, + >, + values: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for Points { @@ -40369,7 +41111,9 @@ pub mod types { impl Points { pub fn start_times(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.start_times = value @@ -40379,7 +41123,7 @@ pub mod types { } pub fn timestamps(mut self, value: T) -> Self where - T: std::convert::TryInto>>, + T: std::convert::TryInto<::std::vec::Vec>>, T::Error: std::fmt::Display, { self.timestamps = value @@ -40389,7 +41133,7 @@ pub mod types { } pub fn values(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.values = value @@ -40399,9 +41143,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Points { + impl ::std::convert::TryFrom for super::Points { type Error = super::error::ConversionError; - fn try_from(value: Points) -> Result { + fn try_from( + value: Points, + ) -> ::std::result::Result { Ok(Self { start_times: value.start_times?, timestamps: value.timestamps?, @@ -40422,12 +41168,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct Probe { - description: Result, - id: Result, - name: Result, - sled: 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, + sled: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Probe { @@ -40446,7 +41194,7 @@ pub mod types { impl Probe { 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 @@ -40506,9 +41254,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Probe { + impl ::std::convert::TryFrom for super::Probe { type Error = super::error::ConversionError; - fn try_from(value: Probe) -> Result { + fn try_from( + value: Probe, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -40535,10 +41285,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProbeCreate { - description: Result, - ip_pool: Result, String>, - name: Result, - sled: Result, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + ip_pool: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + name: ::std::result::Result, + sled: ::std::result::Result, } impl Default for ProbeCreate { @@ -40555,7 +41308,7 @@ pub mod types { impl ProbeCreate { 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 @@ -40565,7 +41318,7 @@ pub mod types { } pub fn ip_pool(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.ip_pool = value @@ -40595,9 +41348,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProbeCreate { + impl ::std::convert::TryFrom for super::ProbeCreate { type Error = super::error::ConversionError; - fn try_from(value: ProbeCreate) -> Result { + fn try_from( + value: ProbeCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, ip_pool: value.ip_pool?, @@ -40620,10 +41375,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProbeExternalIp { - first_port: Result, - ip: Result, - kind: Result, - last_port: Result, + first_port: ::std::result::Result, + ip: ::std::result::Result, + kind: ::std::result::Result, + last_port: ::std::result::Result, } impl Default for ProbeExternalIp { @@ -40680,9 +41435,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProbeExternalIp { + impl ::std::convert::TryFrom for super::ProbeExternalIp { type Error = super::error::ConversionError; - fn try_from(value: ProbeExternalIp) -> Result { + fn try_from( + value: ProbeExternalIp, + ) -> ::std::result::Result { Ok(Self { first_port: value.first_port?, ip: value.ip?, @@ -40705,11 +41462,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProbeInfo { - external_ips: Result, String>, - id: Result, - interface: Result, - name: Result, - sled: Result, + external_ips: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + id: ::std::result::Result, + interface: ::std::result::Result, + name: ::std::result::Result, + sled: ::std::result::Result, } impl Default for ProbeInfo { @@ -40727,7 +41487,7 @@ pub mod types { impl ProbeInfo { 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| { @@ -40777,9 +41537,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProbeInfo { + impl ::std::convert::TryFrom for super::ProbeInfo { type Error = super::error::ConversionError; - fn try_from(value: ProbeInfo) -> Result { + fn try_from( + value: ProbeInfo, + ) -> ::std::result::Result { Ok(Self { external_ips: value.external_ips?, id: value.id?, @@ -40804,8 +41566,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct ProbeInfoResultsPage { - 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 ProbeInfoResultsPage { @@ -40820,7 +41585,7 @@ pub mod types { impl ProbeInfoResultsPage { 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 @@ -40830,7 +41595,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 @@ -40840,11 +41605,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::ProbeInfoResultsPage { + impl ::std::convert::TryFrom for super::ProbeInfoResultsPage { type Error = super::error::ConversionError; fn try_from( value: ProbeInfoResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -40863,11 +41628,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct Project { - 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 Project { @@ -40885,7 +41652,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 @@ -40935,9 +41702,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?, @@ -40962,8 +41731,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 { @@ -40978,7 +41747,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 @@ -40998,9 +41767,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?, @@ -41019,8 +41790,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 { @@ -41035,7 +41809,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 @@ -41045,7 +41819,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 @@ -41055,9 +41829,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?, @@ -41076,7 +41852,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 { @@ -41090,7 +41869,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| { @@ -41103,9 +41882,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?, }) @@ -41122,9 +41903,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 { @@ -41170,11 +41951,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?, @@ -41195,8 +41976,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 { @@ -41211,7 +41995,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 @@ -41221,7 +42005,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 @@ -41231,9 +42015,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?, @@ -41252,10 +42038,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Quantile { - desired_marker_positions: Result<[f64; 5usize], String>, - marker_heights: Result<[f64; 5usize], String>, - marker_positions: Result<[u64; 5usize], String>, - p: Result, + desired_marker_positions: ::std::result::Result<[f64; 5usize], ::std::string::String>, + marker_heights: ::std::result::Result<[f64; 5usize], ::std::string::String>, + marker_positions: ::std::result::Result<[u64; 5usize], ::std::string::String>, + p: ::std::result::Result, } impl Default for Quantile { @@ -41320,9 +42106,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Quantile { + impl ::std::convert::TryFrom for super::Quantile { type Error = super::error::ConversionError; - fn try_from(value: Quantile) -> Result { + fn try_from( + value: Quantile, + ) -> ::std::result::Result { Ok(Self { desired_marker_positions: value.desired_marker_positions?, marker_heights: value.marker_heights?, @@ -41345,9 +42133,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 { @@ -41393,9 +42183,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?, @@ -41416,8 +42206,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 { @@ -41432,7 +42225,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 @@ -41442,7 +42235,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 @@ -41452,9 +42245,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?, @@ -41473,8 +42268,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 { @@ -41489,7 +42284,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 @@ -41509,9 +42304,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?, @@ -41530,8 +42325,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 { @@ -41546,7 +42344,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 @@ -41556,7 +42354,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 @@ -41566,9 +42364,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?, @@ -41587,10 +42387,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct Route { - dst: Result, - gw: Result, - rib_priority: Result, String>, - vid: Result, String>, + dst: ::std::result::Result, + gw: ::std::result::Result, + rib_priority: ::std::result::Result<::std::option::Option, ::std::string::String>, + vid: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for Route { @@ -41627,7 +42427,7 @@ pub mod types { } pub fn rib_priority(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.rib_priority = value.try_into().map_err(|e| { @@ -41637,7 +42437,7 @@ pub mod types { } pub fn vid(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.vid = value @@ -41647,9 +42447,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Route { + impl ::std::convert::TryFrom for super::Route { type Error = super::error::ConversionError; - fn try_from(value: Route) -> Result { + fn try_from( + value: Route, + ) -> ::std::result::Result { Ok(Self { dst: value.dst?, gw: value.gw?, @@ -41672,7 +42474,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouteConfig { - routes: Result, String>, + routes: ::std::result::Result<::std::vec::Vec, ::std::string::String>, } impl Default for RouteConfig { @@ -41686,7 +42488,7 @@ pub mod types { impl RouteConfig { pub fn routes(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.routes = value @@ -41696,9 +42498,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouteConfig { + impl ::std::convert::TryFrom for super::RouteConfig { type Error = super::error::ConversionError; - fn try_from(value: RouteConfig) -> Result { + fn try_from( + value: RouteConfig, + ) -> ::std::result::Result { Ok(Self { routes: value.routes?, }) @@ -41715,15 +42519,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 { @@ -41745,7 +42551,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 @@ -41835,9 +42641,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?, @@ -41870,10 +42678,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteCreate { - 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 RouterRouteCreate { @@ -41890,7 +42698,7 @@ pub mod types { impl RouterRouteCreate { 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 @@ -41930,9 +42738,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteCreate { + impl ::std::convert::TryFrom for super::RouterRouteCreate { type Error = super::error::ConversionError; - fn try_from(value: RouterRouteCreate) -> Result { + fn try_from( + value: RouterRouteCreate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -41955,8 +42765,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 { @@ -41971,7 +42785,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 @@ -41981,7 +42795,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 @@ -41991,11 +42805,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?, @@ -42014,10 +42828,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct RouterRouteUpdate { - 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 RouterRouteUpdate { @@ -42034,7 +42851,7 @@ pub mod types { impl RouterRouteUpdate { 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 @@ -42054,7 +42871,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 @@ -42074,9 +42891,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::RouterRouteUpdate { + impl ::std::convert::TryFrom for super::RouterRouteUpdate { type Error = super::error::ConversionError; - fn try_from(value: RouterRouteUpdate) -> Result { + fn try_from( + value: RouterRouteUpdate, + ) -> ::std::result::Result { Ok(Self { description: value.description?, destination: value.destination?, @@ -42099,18 +42918,27 @@ pub mod types { #[derive(Clone, Debug)] pub struct SamlIdentityProvider { - acs_url: Result, - description: Result, - group_attribute_name: Result, String>, - 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>, + group_attribute_name: ::std::result::Result< + ::std::option::Option<::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 { @@ -42137,7 +42965,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 @@ -42147,7 +42975,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 @@ -42157,7 +42985,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| { @@ -42180,7 +43008,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| { @@ -42200,7 +43028,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 @@ -42210,7 +43038,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 @@ -42220,7 +43048,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| { @@ -42230,7 +43058,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| { @@ -42263,11 +43091,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?, @@ -42306,16 +43134,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 { @@ -42342,7 +43178,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 @@ -42352,7 +43188,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 @@ -42362,7 +43198,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| { @@ -42375,7 +43211,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| { @@ -42408,7 +43244,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| { @@ -42418,7 +43254,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 @@ -42428,7 +43264,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| { @@ -42438,7 +43274,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| { @@ -42451,11 +43287,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?, @@ -42490,15 +43326,19 @@ pub mod types { #[derive(Clone, Debug)] pub struct Silo { - description: Result, - discoverable: Result, - id: Result, - identity_mode: Result, - mapped_fleet_roles: - Result<::std::collections::HashMap>, String>, - 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, + mapped_fleet_roles: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, Vec>, + ::std::string::String, + >, + name: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Silo { @@ -42519,7 +43359,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 @@ -42560,7 +43400,7 @@ pub mod types { pub fn mapped_fleet_roles(mut self, value: T) -> Self where T: std::convert::TryInto< - ::std::collections::HashMap>, + ::std::collections::HashMap<::std::string::String, Vec>, >, T::Error: std::fmt::Display, { @@ -42604,9 +43444,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?, @@ -42637,15 +43477,23 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloCreate { - admin_group_name: Result, String>, - description: Result, - discoverable: Result, - identity_mode: Result, - mapped_fleet_roles: - Result<::std::collections::HashMap>, String>, - name: Result, - quotas: Result, - tls_certificates: Result, String>, + 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, + mapped_fleet_roles: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, Vec>, + ::std::string::String, + >, + name: ::std::result::Result, + quotas: ::std::result::Result, + tls_certificates: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for SiloCreate { @@ -42666,7 +43514,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| { @@ -42679,7 +43527,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 @@ -42710,7 +43558,7 @@ pub mod types { pub fn mapped_fleet_roles(mut self, value: T) -> Self where T: std::convert::TryInto< - ::std::collections::HashMap>, + ::std::collections::HashMap<::std::string::String, Vec>, >, T::Error: std::fmt::Display, { @@ -42744,7 +43592,7 @@ pub mod types { } pub fn tls_certificates(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.tls_certificates = value.try_into().map_err(|e| { @@ -42757,9 +43605,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?, @@ -42790,12 +43640,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloIpPool { - description: Result, - id: Result, - is_default: 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, + is_default: ::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 SiloIpPool { @@ -42814,7 +43666,7 @@ pub mod types { impl SiloIpPool { 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 @@ -42874,9 +43726,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloIpPool { + impl ::std::convert::TryFrom for super::SiloIpPool { type Error = super::error::ConversionError; - fn try_from(value: SiloIpPool) -> Result { + fn try_from( + value: SiloIpPool, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -42903,8 +43757,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloIpPoolResultsPage { - 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 SiloIpPoolResultsPage { @@ -42919,7 +43776,7 @@ pub mod types { impl SiloIpPoolResultsPage { 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 @@ -42929,7 +43786,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 @@ -42939,11 +43796,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloIpPoolResultsPage { + impl ::std::convert::TryFrom for super::SiloIpPoolResultsPage { type Error = super::error::ConversionError; fn try_from( value: SiloIpPoolResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -42962,10 +43819,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloQuotas { - cpus: Result, - memory: Result, - silo_id: Result, - storage: Result, + cpus: ::std::result::Result, + memory: ::std::result::Result, + silo_id: ::std::result::Result, + storage: ::std::result::Result, } impl Default for SiloQuotas { @@ -43022,9 +43879,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloQuotas { + impl ::std::convert::TryFrom for super::SiloQuotas { type Error = super::error::ConversionError; - fn try_from(value: SiloQuotas) -> Result { + fn try_from( + value: SiloQuotas, + ) -> ::std::result::Result { Ok(Self { cpus: value.cpus?, memory: value.memory?, @@ -43047,9 +43906,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloQuotasCreate { - cpus: Result, - memory: Result, - storage: Result, + cpus: ::std::result::Result, + memory: ::std::result::Result, + storage: ::std::result::Result, } impl Default for SiloQuotasCreate { @@ -43095,9 +43954,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloQuotasCreate { + impl ::std::convert::TryFrom for super::SiloQuotasCreate { type Error = super::error::ConversionError; - fn try_from(value: SiloQuotasCreate) -> Result { + fn try_from( + value: SiloQuotasCreate, + ) -> ::std::result::Result { Ok(Self { cpus: value.cpus?, memory: value.memory?, @@ -43118,8 +43979,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloQuotasResultsPage { - 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 SiloQuotasResultsPage { @@ -43134,7 +43998,7 @@ pub mod types { impl SiloQuotasResultsPage { 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 @@ -43144,7 +44008,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 @@ -43154,11 +44018,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloQuotasResultsPage { + impl ::std::convert::TryFrom for super::SiloQuotasResultsPage { type Error = super::error::ConversionError; fn try_from( value: SiloQuotasResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -43177,9 +44041,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloQuotasUpdate { - cpus: Result, String>, - memory: Result, String>, - storage: Result, String>, + cpus: ::std::result::Result<::std::option::Option, ::std::string::String>, + memory: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + storage: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, } impl Default for SiloQuotasUpdate { @@ -43195,7 +44065,7 @@ pub mod types { impl SiloQuotasUpdate { pub fn cpus(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.cpus = value @@ -43205,7 +44075,7 @@ pub mod types { } pub fn memory(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.memory = value @@ -43215,7 +44085,7 @@ pub mod types { } pub fn storage(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.storage = value @@ -43225,9 +44095,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloQuotasUpdate { + impl ::std::convert::TryFrom for super::SiloQuotasUpdate { type Error = super::error::ConversionError; - fn try_from(value: SiloQuotasUpdate) -> Result { + fn try_from( + value: SiloQuotasUpdate, + ) -> ::std::result::Result { Ok(Self { cpus: value.cpus?, memory: value.memory?, @@ -43248,8 +44120,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 { @@ -43264,7 +44139,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 @@ -43274,7 +44149,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 @@ -43284,9 +44159,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?, @@ -43305,7 +44182,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 { @@ -43319,7 +44199,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| { @@ -43332,9 +44212,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?, }) @@ -43351,9 +44233,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 { @@ -43399,11 +44281,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?, @@ -43424,10 +44306,10 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloUtilization { - allocated: Result, - provisioned: Result, - silo_id: Result, - silo_name: Result, + allocated: ::std::result::Result, + provisioned: ::std::result::Result, + silo_id: ::std::result::Result, + silo_name: ::std::result::Result, } impl Default for SiloUtilization { @@ -43484,9 +44366,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloUtilization { + impl ::std::convert::TryFrom for super::SiloUtilization { type Error = super::error::ConversionError; - fn try_from(value: SiloUtilization) -> Result { + fn try_from( + value: SiloUtilization, + ) -> ::std::result::Result { Ok(Self { allocated: value.allocated?, provisioned: value.provisioned?, @@ -43509,8 +44393,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct SiloUtilizationResultsPage { - 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 SiloUtilizationResultsPage { @@ -43525,7 +44415,7 @@ pub mod types { impl SiloUtilizationResultsPage { 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 @@ -43535,7 +44425,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 @@ -43545,11 +44435,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SiloUtilizationResultsPage { + impl ::std::convert::TryFrom for super::SiloUtilizationResultsPage { type Error = super::error::ConversionError; fn try_from( value: SiloUtilizationResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -43568,15 +44458,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct Sled { - baseboard: Result, - id: Result, - policy: Result, - rack_id: Result, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, - usable_hardware_threads: Result, - usable_physical_ram: Result, + baseboard: ::std::result::Result, + id: ::std::result::Result, + policy: ::std::result::Result, + rack_id: ::std::result::Result, + state: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, + usable_hardware_threads: ::std::result::Result, + usable_physical_ram: ::std::result::Result, } impl Default for Sled { @@ -43698,9 +44590,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?, @@ -43733,7 +44625,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledId { - id: Result, + id: ::std::result::Result, } impl Default for SledId { @@ -43757,9 +44649,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledId { + impl ::std::convert::TryFrom for super::SledId { type Error = super::error::ConversionError; - fn try_from(value: SledId) -> Result { + fn try_from( + value: SledId, + ) -> ::std::result::Result { Ok(Self { id: value.id? }) } } @@ -43772,17 +44666,20 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledInstance { - active_sled_id: Result, - id: Result, - memory: Result, - migration_id: Result, String>, - name: Result, - ncpus: Result, - project_name: Result, - silo_name: Result, - state: Result, - time_created: Result, String>, - time_modified: Result, String>, + active_sled_id: ::std::result::Result, + id: ::std::result::Result, + memory: ::std::result::Result, + migration_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + name: ::std::result::Result, + ncpus: ::std::result::Result, + project_name: ::std::result::Result, + silo_name: ::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 SledInstance { @@ -43836,7 +44733,7 @@ pub mod types { } pub fn migration_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.migration_id = value.try_into().map_err(|e| { @@ -43916,9 +44813,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledInstance { + impl ::std::convert::TryFrom for super::SledInstance { type Error = super::error::ConversionError; - fn try_from(value: SledInstance) -> Result { + fn try_from( + value: SledInstance, + ) -> ::std::result::Result { Ok(Self { active_sled_id: value.active_sled_id?, id: value.id?, @@ -43955,8 +44854,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledInstanceResultsPage { - 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 SledInstanceResultsPage { @@ -43971,7 +44874,7 @@ pub mod types { impl SledInstanceResultsPage { 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 @@ -43981,7 +44884,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 @@ -43991,11 +44894,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledInstanceResultsPage { + impl ::std::convert::TryFrom for super::SledInstanceResultsPage { type Error = super::error::ConversionError; fn try_from( value: SledInstanceResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -44014,7 +44917,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledProvisionPolicyParams { - state: Result, + state: ::std::result::Result, } impl Default for SledProvisionPolicyParams { @@ -44038,11 +44941,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledProvisionPolicyParams { + impl ::std::convert::TryFrom for super::SledProvisionPolicyParams { type Error = super::error::ConversionError; fn try_from( value: SledProvisionPolicyParams, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { state: value.state?, }) @@ -44059,8 +44962,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SledProvisionPolicyResponse { - new_state: Result, - old_state: Result, + new_state: ::std::result::Result, + old_state: ::std::result::Result, } impl Default for SledProvisionPolicyResponse { @@ -44095,11 +44998,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SledProvisionPolicyResponse { + impl ::std::convert::TryFrom for super::SledProvisionPolicyResponse { type Error = super::error::ConversionError; fn try_from( value: SledProvisionPolicyResponse, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { new_state: value.new_state?, old_state: value.old_state?, @@ -44118,8 +45021,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 { @@ -44134,7 +45040,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 @@ -44144,7 +45050,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 @@ -44154,9 +45060,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?, @@ -44175,15 +45083,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 { @@ -44205,7 +45115,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 @@ -44295,9 +45205,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?, @@ -44330,9 +45242,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 { @@ -44348,7 +45260,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 @@ -44378,9 +45290,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?, @@ -44401,8 +45315,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 { @@ -44417,7 +45334,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 @@ -44427,7 +45344,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 @@ -44437,9 +45354,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?, @@ -44458,13 +45377,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 { @@ -44484,7 +45405,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 @@ -44514,7 +45435,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 @@ -44554,9 +45475,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?, @@ -44585,9 +45508,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 { @@ -44603,7 +45526,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 @@ -44623,7 +45546,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 @@ -44633,9 +45556,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?, @@ -44656,8 +45581,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 { @@ -44672,7 +45600,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 @@ -44682,7 +45610,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 @@ -44692,9 +45620,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?, @@ -44713,11 +45643,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct Switch { - baseboard: Result, - id: Result, - rack_id: Result, - time_created: Result, String>, - time_modified: Result, String>, + baseboard: ::std::result::Result, + id: ::std::result::Result, + rack_id: ::std::result::Result, + time_created: + ::std::result::Result, ::std::string::String>, + time_modified: + ::std::result::Result, ::std::string::String>, } impl Default for Switch { @@ -44785,9 +45717,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Switch { + impl ::std::convert::TryFrom for super::Switch { type Error = super::error::ConversionError; - fn try_from(value: Switch) -> Result { + fn try_from( + value: Switch, + ) -> ::std::result::Result { Ok(Self { baseboard: value.baseboard?, id: value.id?, @@ -44812,8 +45746,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchBgpHistory { - history: Result<::std::collections::HashMap, String>, - switch: Result, + history: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::BgpMessageHistory>, + ::std::string::String, + >, + switch: ::std::result::Result, } impl Default for SwitchBgpHistory { @@ -44829,7 +45766,7 @@ pub mod types { pub fn history(mut self, value: T) -> Self where T: std::convert::TryInto< - ::std::collections::HashMap, + ::std::collections::HashMap<::std::string::String, super::BgpMessageHistory>, >, T::Error: std::fmt::Display, { @@ -44850,9 +45787,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchBgpHistory { + impl ::std::convert::TryFrom for super::SwitchBgpHistory { type Error = super::error::ConversionError; - fn try_from(value: SwitchBgpHistory) -> Result { + fn try_from( + value: SwitchBgpHistory, + ) -> ::std::result::Result { Ok(Self { history: value.history?, switch: value.switch?, @@ -44871,11 +45810,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchInterfaceConfig { - id: Result, - interface_name: Result, - kind: Result, - port_settings_id: Result, - v6_enabled: Result, + id: ::std::result::Result, + interface_name: ::std::result::Result<::std::string::String, ::std::string::String>, + kind: ::std::result::Result, + port_settings_id: ::std::result::Result, + v6_enabled: ::std::result::Result, } impl Default for SwitchInterfaceConfig { @@ -44903,7 +45842,7 @@ pub mod types { } pub fn interface_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.interface_name = value.try_into().map_err(|e| { @@ -44946,11 +45885,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchInterfaceConfig { + impl ::std::convert::TryFrom for super::SwitchInterfaceConfig { type Error = super::error::ConversionError; fn try_from( value: SwitchInterfaceConfig, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { id: value.id?, interface_name: value.interface_name?, @@ -44975,8 +45914,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchInterfaceConfigCreate { - kind: Result, - v6_enabled: Result, + kind: ::std::result::Result, + v6_enabled: ::std::result::Result, } impl Default for SwitchInterfaceConfigCreate { @@ -45011,11 +45950,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchInterfaceConfigCreate { + impl ::std::convert::TryFrom for super::SwitchInterfaceConfigCreate { type Error = super::error::ConversionError; fn try_from( value: SwitchInterfaceConfigCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { kind: value.kind?, v6_enabled: value.v6_enabled?, @@ -45034,11 +45973,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPort { - id: Result, - port_name: Result, - port_settings_id: Result, String>, - rack_id: Result, - switch_location: Result, + id: ::std::result::Result, + port_name: ::std::result::Result<::std::string::String, ::std::string::String>, + port_settings_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + rack_id: ::std::result::Result, + switch_location: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for SwitchPort { @@ -45066,7 +46006,7 @@ pub mod types { } pub fn port_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.port_name = value @@ -45076,7 +46016,7 @@ pub mod types { } pub fn port_settings_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.port_settings_id = value.try_into().map_err(|e| { @@ -45099,7 +46039,7 @@ pub mod types { } pub fn switch_location(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.switch_location = value.try_into().map_err(|e| { @@ -45109,9 +46049,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPort { + impl ::std::convert::TryFrom for super::SwitchPort { type Error = super::error::ConversionError; - fn try_from(value: SwitchPort) -> Result { + fn try_from( + value: SwitchPort, + ) -> ::std::result::Result { Ok(Self { id: value.id?, port_name: value.port_name?, @@ -45136,11 +46078,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortAddressConfig { - address: Result, - address_lot_block_id: Result, - interface_name: Result, - port_settings_id: Result, - vlan_id: Result, String>, + address: ::std::result::Result, + address_lot_block_id: ::std::result::Result, + interface_name: ::std::result::Result<::std::string::String, ::std::string::String>, + port_settings_id: ::std::result::Result, + vlan_id: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for SwitchPortAddressConfig { @@ -45183,7 +46125,7 @@ pub mod types { } pub fn interface_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.interface_name = value.try_into().map_err(|e| { @@ -45206,7 +46148,7 @@ pub mod types { } pub fn vlan_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.vlan_id = value @@ -45216,11 +46158,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortAddressConfig { + impl ::std::convert::TryFrom for super::SwitchPortAddressConfig { type Error = super::error::ConversionError; fn try_from( value: SwitchPortAddressConfig, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { address: value.address?, address_lot_block_id: value.address_lot_block_id?, @@ -45245,7 +46187,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortApplySettings { - port_settings: Result, + port_settings: ::std::result::Result, } impl Default for SwitchPortApplySettings { @@ -45269,11 +46211,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortApplySettings { + impl ::std::convert::TryFrom for super::SwitchPortApplySettings { type Error = super::error::ConversionError; fn try_from( value: SwitchPortApplySettings, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { port_settings: value.port_settings?, }) @@ -45290,8 +46232,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortConfig { - geometry: Result, - port_settings_id: Result, + geometry: ::std::result::Result, + port_settings_id: ::std::result::Result, } impl Default for SwitchPortConfig { @@ -45329,9 +46271,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortConfig { + impl ::std::convert::TryFrom for super::SwitchPortConfig { type Error = super::error::ConversionError; - fn try_from(value: SwitchPortConfig) -> Result { + fn try_from( + value: SwitchPortConfig, + ) -> ::std::result::Result { Ok(Self { geometry: value.geometry?, port_settings_id: value.port_settings_id?, @@ -45350,7 +46294,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortConfigCreate { - geometry: Result, + geometry: ::std::result::Result, } impl Default for SwitchPortConfigCreate { @@ -45374,11 +46318,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortConfigCreate { + impl ::std::convert::TryFrom for super::SwitchPortConfigCreate { type Error = super::error::ConversionError; fn try_from( value: SwitchPortConfigCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { geometry: value.geometry?, }) @@ -45395,14 +46339,17 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortLinkConfig { - autoneg: Result, - fec: Result, String>, - link_name: Result, - lldp_link_config_id: Result, String>, - mtu: Result, - port_settings_id: Result, - speed: Result, - tx_eq_config_id: Result, String>, + autoneg: ::std::result::Result, + fec: + ::std::result::Result<::std::option::Option, ::std::string::String>, + link_name: ::std::result::Result<::std::string::String, ::std::string::String>, + lldp_link_config_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + mtu: ::std::result::Result, + port_settings_id: ::std::result::Result, + speed: ::std::result::Result, + tx_eq_config_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for SwitchPortLinkConfig { @@ -45433,7 +46380,7 @@ pub mod types { } pub fn fec(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.fec = value @@ -45443,7 +46390,7 @@ pub mod types { } pub fn link_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.link_name = value @@ -45453,7 +46400,7 @@ pub mod types { } pub fn lldp_link_config_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.lldp_link_config_id = value.try_into().map_err(|e| { @@ -45499,7 +46446,7 @@ pub mod types { } pub fn tx_eq_config_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.tx_eq_config_id = value.try_into().map_err(|e| { @@ -45509,11 +46456,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortLinkConfig { + impl ::std::convert::TryFrom for super::SwitchPortLinkConfig { type Error = super::error::ConversionError; fn try_from( value: SwitchPortLinkConfig, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { autoneg: value.autoneg?, fec: value.fec?, @@ -45544,8 +46491,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortResultsPage { - 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 SwitchPortResultsPage { @@ -45560,7 +46510,7 @@ pub mod types { impl SwitchPortResultsPage { 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 @@ -45570,7 +46520,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 @@ -45580,11 +46530,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortResultsPage { + impl ::std::convert::TryFrom for super::SwitchPortResultsPage { type Error = super::error::ConversionError; fn try_from( value: SwitchPortResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -45603,12 +46553,12 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortRouteConfig { - dst: Result, - gw: Result, - interface_name: Result, - port_settings_id: Result, - rib_priority: Result, String>, - vlan_id: Result, String>, + dst: ::std::result::Result, + gw: ::std::result::Result, + interface_name: ::std::result::Result<::std::string::String, ::std::string::String>, + port_settings_id: ::std::result::Result, + rib_priority: ::std::result::Result<::std::option::Option, ::std::string::String>, + vlan_id: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for SwitchPortRouteConfig { @@ -45647,7 +46597,7 @@ pub mod types { } pub fn interface_name(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.interface_name = value.try_into().map_err(|e| { @@ -45670,7 +46620,7 @@ pub mod types { } pub fn rib_priority(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.rib_priority = value.try_into().map_err(|e| { @@ -45680,7 +46630,7 @@ pub mod types { } pub fn vlan_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.vlan_id = value @@ -45690,11 +46640,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortRouteConfig { + impl ::std::convert::TryFrom for super::SwitchPortRouteConfig { type Error = super::error::ConversionError; fn try_from( value: SwitchPortRouteConfig, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { dst: value.dst?, gw: value.gw?, @@ -45721,11 +46671,13 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortSettings { - 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 SwitchPortSettings { @@ -45743,7 +46695,7 @@ pub mod types { impl SwitchPortSettings { 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 @@ -45793,9 +46745,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortSettings { + impl ::std::convert::TryFrom for super::SwitchPortSettings { type Error = super::error::ConversionError; - fn try_from(value: SwitchPortSettings) -> Result { + fn try_from( + value: SwitchPortSettings, + ) -> ::std::result::Result { Ok(Self { description: value.description?, id: value.id?, @@ -45820,18 +46774,34 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortSettingsCreate { - addresses: Result<::std::collections::HashMap, String>, - bgp_peers: Result<::std::collections::HashMap, String>, - description: Result, - groups: Result, String>, - interfaces: Result< - ::std::collections::HashMap, - String, + addresses: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::AddressConfig>, + ::std::string::String, + >, + bgp_peers: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::BgpPeerConfig>, + ::std::string::String, + >, + description: ::std::result::Result<::std::string::String, ::std::string::String>, + groups: ::std::result::Result<::std::vec::Vec, ::std::string::String>, + interfaces: ::std::result::Result< + ::std::collections::HashMap< + ::std::string::String, + super::SwitchInterfaceConfigCreate, + >, + ::std::string::String, + >, + links: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::LinkConfigCreate>, + ::std::string::String, + >, + name: ::std::result::Result, + port_config: + ::std::result::Result, + routes: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::RouteConfig>, + ::std::string::String, >, - links: Result<::std::collections::HashMap, String>, - name: Result, - port_config: Result, - routes: Result<::std::collections::HashMap, String>, } impl Default for SwitchPortSettingsCreate { @@ -45853,7 +46823,9 @@ pub mod types { impl SwitchPortSettingsCreate { pub fn addresses(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::collections::HashMap>, + T: std::convert::TryInto< + ::std::collections::HashMap<::std::string::String, super::AddressConfig>, + >, T::Error: std::fmt::Display, { self.addresses = value @@ -45863,7 +46835,9 @@ pub mod types { } pub fn bgp_peers(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::collections::HashMap>, + T: std::convert::TryInto< + ::std::collections::HashMap<::std::string::String, super::BgpPeerConfig>, + >, T::Error: std::fmt::Display, { self.bgp_peers = value @@ -45873,7 +46847,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 @@ -45883,7 +46857,7 @@ pub mod types { } pub fn groups(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.groups = value @@ -45894,7 +46868,10 @@ pub mod types { pub fn interfaces(mut self, value: T) -> Self where T: std::convert::TryInto< - ::std::collections::HashMap, + ::std::collections::HashMap< + ::std::string::String, + super::SwitchInterfaceConfigCreate, + >, >, T::Error: std::fmt::Display, { @@ -45906,7 +46883,7 @@ pub mod types { pub fn links(mut self, value: T) -> Self where T: std::convert::TryInto< - ::std::collections::HashMap, + ::std::collections::HashMap<::std::string::String, super::LinkConfigCreate>, >, T::Error: std::fmt::Display, { @@ -45937,7 +46914,9 @@ pub mod types { } pub fn routes(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::collections::HashMap>, + T: std::convert::TryInto< + ::std::collections::HashMap<::std::string::String, super::RouteConfig>, + >, T::Error: std::fmt::Display, { self.routes = value @@ -45947,11 +46926,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortSettingsCreate { + impl ::std::convert::TryFrom for super::SwitchPortSettingsCreate { type Error = super::error::ConversionError; fn try_from( value: SwitchPortSettingsCreate, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { addresses: value.addresses?, bgp_peers: value.bgp_peers?, @@ -45984,8 +46963,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortSettingsGroups { - port_settings_group_id: Result, - port_settings_id: Result, + port_settings_group_id: ::std::result::Result, + port_settings_id: ::std::result::Result, } impl Default for SwitchPortSettingsGroups { @@ -46028,11 +47007,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortSettingsGroups { + impl ::std::convert::TryFrom for super::SwitchPortSettingsGroups { type Error = super::error::ConversionError; fn try_from( value: SwitchPortSettingsGroups, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { port_settings_group_id: value.port_settings_group_id?, port_settings_id: value.port_settings_id?, @@ -46051,8 +47030,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortSettingsResultsPage { - 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 SwitchPortSettingsResultsPage { @@ -46067,7 +47052,7 @@ pub mod types { impl SwitchPortSettingsResultsPage { 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 @@ -46077,7 +47062,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 @@ -46087,11 +47072,13 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortSettingsResultsPage { + impl ::std::convert::TryFrom + for super::SwitchPortSettingsResultsPage + { type Error = super::error::ConversionError; fn try_from( value: SwitchPortSettingsResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -46110,17 +47097,42 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchPortSettingsView { - addresses: Result, String>, - bgp_peers: Result, String>, - groups: Result, String>, - interfaces: Result, String>, - link_lldp: Result, String>, - links: Result, String>, - port: Result, - routes: Result, String>, - settings: Result, - tx_eq: Result>, String>, - vlan_interfaces: Result, String>, + addresses: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + bgp_peers: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + groups: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + interfaces: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + link_lldp: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + links: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + port: ::std::result::Result, + routes: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, + settings: ::std::result::Result, + tx_eq: ::std::result::Result< + ::std::vec::Vec<::std::option::Option>, + ::std::string::String, + >, + vlan_interfaces: ::std::result::Result< + ::std::vec::Vec, + ::std::string::String, + >, } impl Default for SwitchPortSettingsView { @@ -46144,7 +47156,7 @@ pub mod types { impl SwitchPortSettingsView { pub fn addresses(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.addresses = value @@ -46154,7 +47166,7 @@ pub mod types { } pub fn bgp_peers(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.bgp_peers = value @@ -46164,7 +47176,7 @@ pub mod types { } pub fn groups(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.groups = value @@ -46174,7 +47186,7 @@ pub mod types { } pub fn interfaces(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.interfaces = value @@ -46184,7 +47196,7 @@ pub mod types { } pub fn link_lldp(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.link_lldp = value @@ -46194,7 +47206,7 @@ pub mod types { } pub fn links(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.links = value @@ -46214,7 +47226,7 @@ pub mod types { } pub fn routes(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.routes = value @@ -46234,7 +47246,7 @@ pub mod types { } pub fn tx_eq(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.tx_eq = value @@ -46244,7 +47256,7 @@ pub mod types { } pub fn vlan_interfaces(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::vec::Vec>, T::Error: std::fmt::Display, { self.vlan_interfaces = value.try_into().map_err(|e| { @@ -46254,11 +47266,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchPortSettingsView { + impl ::std::convert::TryFrom for super::SwitchPortSettingsView { type Error = super::error::ConversionError; fn try_from( value: SwitchPortSettingsView, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { addresses: value.addresses?, bgp_peers: value.bgp_peers?, @@ -46295,8 +47307,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchResultsPage { - 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 SwitchResultsPage { @@ -46311,7 +47326,7 @@ pub mod types { impl SwitchResultsPage { 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 @@ -46321,7 +47336,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 @@ -46331,9 +47346,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchResultsPage { + impl ::std::convert::TryFrom for super::SwitchResultsPage { type Error = super::error::ConversionError; - fn try_from(value: SwitchResultsPage) -> Result { + fn try_from( + value: SwitchResultsPage, + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -46352,8 +47369,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct SwitchVlanInterfaceConfig { - interface_config_id: Result, - vlan_id: Result, + interface_config_id: ::std::result::Result, + vlan_id: ::std::result::Result, } impl Default for SwitchVlanInterfaceConfig { @@ -46393,11 +47410,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::SwitchVlanInterfaceConfig { + impl ::std::convert::TryFrom for super::SwitchVlanInterfaceConfig { type Error = super::error::ConversionError; fn try_from( value: SwitchVlanInterfaceConfig, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { interface_config_id: value.interface_config_id?, vlan_id: value.vlan_id?, @@ -46416,8 +47433,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct Table { - name: Result, - timeseries: Result<::std::collections::HashMap, String>, + name: ::std::result::Result<::std::string::String, ::std::string::String>, + timeseries: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::Timeseries>, + ::std::string::String, + >, } impl Default for Table { @@ -46432,7 +47452,7 @@ pub mod types { impl Table { 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 @@ -46442,7 +47462,9 @@ pub mod types { } pub fn timeseries(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::collections::HashMap>, + T: std::convert::TryInto< + ::std::collections::HashMap<::std::string::String, super::Timeseries>, + >, T::Error: std::fmt::Display, { self.timeseries = value @@ -46452,9 +47474,11 @@ pub mod types { } } - impl std::convert::TryFrom
for super::Table { + impl ::std::convert::TryFrom
for super::Table { type Error = super::error::ConversionError; - fn try_from(value: Table) -> Result { + fn try_from( + value: Table, + ) -> ::std::result::Result { Ok(Self { name: value.name?, timeseries: value.timeseries?, @@ -46473,8 +47497,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct Timeseries { - fields: Result<::std::collections::HashMap, String>, - points: Result, + fields: ::std::result::Result< + ::std::collections::HashMap<::std::string::String, super::FieldValue>, + ::std::string::String, + >, + points: ::std::result::Result, } impl Default for Timeseries { @@ -46489,7 +47516,9 @@ pub mod types { impl Timeseries { pub fn fields(mut self, value: T) -> Self where - T: std::convert::TryInto<::std::collections::HashMap>, + T: std::convert::TryInto< + ::std::collections::HashMap<::std::string::String, super::FieldValue>, + >, T::Error: std::fmt::Display, { self.fields = value @@ -46509,9 +47538,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Timeseries { + impl ::std::convert::TryFrom for super::Timeseries { type Error = super::error::ConversionError; - fn try_from(value: Timeseries) -> Result { + fn try_from( + value: Timeseries, + ) -> ::std::result::Result { Ok(Self { fields: value.fields?, points: value.points?, @@ -46530,8 +47561,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesDescription { - metric: Result, - target: Result, + metric: ::std::result::Result<::std::string::String, ::std::string::String>, + target: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for TimeseriesDescription { @@ -46546,7 +47577,7 @@ pub mod types { impl TimeseriesDescription { pub fn metric(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.metric = value @@ -46556,7 +47587,7 @@ pub mod types { } pub fn target(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.target = value @@ -46566,11 +47597,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TimeseriesDescription { + impl ::std::convert::TryFrom for super::TimeseriesDescription { type Error = super::error::ConversionError; fn try_from( value: TimeseriesDescription, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { metric: value.metric?, target: value.target?, @@ -46589,7 +47620,7 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesQuery { - query: Result, + query: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for TimeseriesQuery { @@ -46603,7 +47634,7 @@ pub mod types { impl TimeseriesQuery { pub fn query(mut self, value: T) -> Self where - T: std::convert::TryInto, + T: std::convert::TryInto<::std::string::String>, T::Error: std::fmt::Display, { self.query = value @@ -46613,9 +47644,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TimeseriesQuery { + impl ::std::convert::TryFrom for super::TimeseriesQuery { type Error = super::error::ConversionError; - fn try_from(value: TimeseriesQuery) -> Result { + fn try_from( + value: TimeseriesQuery, + ) -> ::std::result::Result { Ok(Self { query: value.query?, }) @@ -46632,14 +47665,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct TimeseriesSchema { - authz_scope: Result, - created: Result, String>, - datum_type: Result, - description: Result, - field_schema: Result, String>, - timeseries_name: Result, - units: Result, - version: Result, + authz_scope: ::std::result::Result, + created: + ::std::result::Result, ::std::string::String>, + datum_type: ::std::result::Result, + description: ::std::result::Result, + field_schema: ::std::result::Result, ::std::string::String>, + timeseries_name: ::std::result::Result, + units: ::std::result::Result, + version: ::std::result::Result, } impl Default for TimeseriesSchema { @@ -46740,9 +47774,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 { authz_scope: value.authz_scope?, created: value.created?, @@ -46773,8 +47809,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 { @@ -46789,7 +47831,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 @@ -46799,7 +47841,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 @@ -46809,11 +47851,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?, @@ -46832,11 +47874,11 @@ pub mod types { #[derive(Clone, Debug)] pub struct TxEqConfig { - main: Result, String>, - post1: Result, String>, - post2: Result, String>, - pre1: Result, String>, - pre2: Result, String>, + main: ::std::result::Result<::std::option::Option, ::std::string::String>, + post1: ::std::result::Result<::std::option::Option, ::std::string::String>, + post2: ::std::result::Result<::std::option::Option, ::std::string::String>, + pre1: ::std::result::Result<::std::option::Option, ::std::string::String>, + pre2: ::std::result::Result<::std::option::Option, ::std::string::String>, } impl Default for TxEqConfig { @@ -46854,7 +47896,7 @@ pub mod types { impl TxEqConfig { pub fn main(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.main = value @@ -46864,7 +47906,7 @@ pub mod types { } pub fn post1(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.post1 = value @@ -46874,7 +47916,7 @@ pub mod types { } pub fn post2(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.post2 = value @@ -46884,7 +47926,7 @@ pub mod types { } pub fn pre1(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.pre1 = value @@ -46894,7 +47936,7 @@ pub mod types { } pub fn pre2(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.pre2 = value @@ -46904,9 +47946,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::TxEqConfig { + impl ::std::convert::TryFrom for super::TxEqConfig { type Error = super::error::ConversionError; - fn try_from(value: TxEqConfig) -> Result { + fn try_from( + value: TxEqConfig, + ) -> ::std::result::Result { Ok(Self { main: value.main?, post1: value.post1?, @@ -46931,9 +47975,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct UninitializedSled { - baseboard: Result, - cubby: Result, - rack_id: Result, + baseboard: ::std::result::Result, + cubby: ::std::result::Result, + rack_id: ::std::result::Result, } impl Default for UninitializedSled { @@ -46979,9 +48023,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UninitializedSled { + impl ::std::convert::TryFrom for super::UninitializedSled { type Error = super::error::ConversionError; - fn try_from(value: UninitializedSled) -> Result { + fn try_from( + value: UninitializedSled, + ) -> ::std::result::Result { Ok(Self { baseboard: value.baseboard?, cubby: value.cubby?, @@ -47002,8 +48048,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct UninitializedSledId { - part: Result, - serial: Result, + part: ::std::result::Result<::std::string::String, ::std::string::String>, + serial: ::std::result::Result<::std::string::String, ::std::string::String>, } impl Default for UninitializedSledId { @@ -47018,7 +48064,7 @@ pub mod types { impl UninitializedSledId { 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 @@ -47028,7 +48074,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 @@ -47038,9 +48084,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UninitializedSledId { + impl ::std::convert::TryFrom for super::UninitializedSledId { type Error = super::error::ConversionError; - fn try_from(value: UninitializedSledId) -> Result { + fn try_from( + value: UninitializedSledId, + ) -> ::std::result::Result { Ok(Self { part: value.part?, serial: value.serial?, @@ -47059,8 +48107,14 @@ pub mod types { #[derive(Clone, Debug)] pub struct UninitializedSledResultsPage { - 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 UninitializedSledResultsPage { @@ -47075,7 +48129,7 @@ pub mod types { impl UninitializedSledResultsPage { 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 @@ -47085,7 +48139,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 @@ -47095,11 +48149,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::UninitializedSledResultsPage { + impl ::std::convert::TryFrom for super::UninitializedSledResultsPage { type Error = super::error::ConversionError; fn try_from( value: UninitializedSledResultsPage, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { items: value.items?, next_page: value.next_page?, @@ -47118,9 +48172,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 { @@ -47136,7 +48190,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| { @@ -47166,9 +48220,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?, @@ -47189,11 +48243,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 { @@ -47211,7 +48267,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 @@ -47261,9 +48317,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?, @@ -47288,8 +48346,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 { @@ -47304,7 +48366,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 @@ -47314,7 +48376,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 @@ -47324,11 +48386,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?, @@ -47347,8 +48409,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 { @@ -47383,9 +48445,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?, @@ -47404,8 +48468,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 { @@ -47420,7 +48487,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 @@ -47430,7 +48497,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 @@ -47440,9 +48507,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?, @@ -47461,8 +48530,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 { @@ -47497,11 +48566,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?, @@ -47520,8 +48589,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Utilization { - capacity: Result, - provisioned: Result, + capacity: ::std::result::Result, + provisioned: ::std::result::Result, } impl Default for Utilization { @@ -47556,9 +48625,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Utilization { + impl ::std::convert::TryFrom for super::Utilization { type Error = super::error::ConversionError; - fn try_from(value: Utilization) -> Result { + fn try_from( + value: Utilization, + ) -> ::std::result::Result { Ok(Self { capacity: value.capacity?, provisioned: value.provisioned?, @@ -47577,8 +48648,8 @@ pub mod types { #[derive(Clone, Debug)] pub struct Values { - metric_type: Result, - values: Result, + metric_type: ::std::result::Result, + values: ::std::result::Result, } impl Default for Values { @@ -47613,9 +48684,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::Values { + impl ::std::convert::TryFrom for super::Values { type Error = super::error::ConversionError; - fn try_from(value: Values) -> Result { + fn try_from( + value: Values, + ) -> ::std::result::Result { Ok(Self { metric_type: value.metric_type?, values: value.values?, @@ -47634,9 +48707,9 @@ pub mod types { #[derive(Clone, Debug)] pub struct VirtualResourceCounts { - cpus: Result, - memory: Result, - storage: Result, + cpus: ::std::result::Result, + memory: ::std::result::Result, + storage: ::std::result::Result, } impl Default for VirtualResourceCounts { @@ -47682,11 +48755,11 @@ pub mod types { } } - impl std::convert::TryFrom for super::VirtualResourceCounts { + impl ::std::convert::TryFrom for super::VirtualResourceCounts { type Error = super::error::ConversionError; fn try_from( value: VirtualResourceCounts, - ) -> Result { + ) -> ::std::result::Result { Ok(Self { cpus: value.cpus?, memory: value.memory?, @@ -47707,15 +48780,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 { @@ -47737,7 +48812,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 @@ -47830,9 +48905,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?, @@ -47865,10 +48940,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 { @@ -47885,7 +48961,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 @@ -47905,7 +48981,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 @@ -47925,9 +49001,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?, @@ -47950,18 +49028,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 { @@ -47996,7 +49080,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 @@ -48066,7 +49150,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 @@ -48106,9 +49190,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?, @@ -48147,9 +49233,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 { @@ -48165,7 +49260,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 @@ -48175,7 +49272,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 @@ -48185,7 +49284,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 @@ -48195,11 +49296,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?, @@ -48220,14 +49321,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 { @@ -48258,7 +49363,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 @@ -48318,7 +49423,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 @@ -48328,11 +49433,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?, @@ -48363,7 +49468,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 { @@ -48377,7 +49485,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 @@ -48387,11 +49495,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?, }) @@ -48408,7 +49516,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 { @@ -48422,7 +49533,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 @@ -48432,9 +49543,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?, }) @@ -48451,8 +49564,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 { @@ -48467,7 +49583,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 @@ -48477,7 +49593,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 @@ -48487,9 +49603,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?, @@ -48508,13 +49626,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 { @@ -48534,7 +49654,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 @@ -48604,9 +49724,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?, @@ -48635,8 +49757,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 { @@ -48651,7 +49773,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 @@ -48671,9 +49793,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?, @@ -48692,8 +49816,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 { @@ -48708,7 +49835,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 @@ -48718,7 +49845,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 @@ -48728,11 +49855,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?, @@ -48751,8 +49878,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 { @@ -48767,7 +49897,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 @@ -48777,7 +49907,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 @@ -48787,9 +49917,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?, @@ -48808,15 +49940,18 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnet { - custom_router_id: Result, String>, - description: Result, - id: Result, - ipv4_block: Result, - ipv6_block: Result, - name: Result, - time_created: Result, String>, - time_modified: Result, String>, - vpc_id: Result, + custom_router_id: + ::std::result::Result<::std::option::Option, ::std::string::String>, + 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 { @@ -48838,7 +49973,7 @@ pub mod types { impl VpcSubnet { pub fn custom_router_id(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.custom_router_id = value.try_into().map_err(|e| { @@ -48851,7 +49986,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 @@ -48931,9 +50066,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 { custom_router_id: value.custom_router_id?, description: value.description?, @@ -48966,11 +50103,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetCreate { - custom_router: Result, String>, - description: Result, - ipv4_block: Result, - ipv6_block: Result, String>, - name: Result, + custom_router: ::std::result::Result< + ::std::option::Option, + ::std::string::String, + >, + 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 { @@ -48988,7 +50129,7 @@ pub mod types { impl VpcSubnetCreate { pub fn custom_router(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.custom_router = value.try_into().map_err(|e| { @@ -48998,7 +50139,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 @@ -49018,7 +50159,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 @@ -49038,9 +50179,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 { custom_router: value.custom_router?, description: value.description?, @@ -49065,8 +50208,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 { @@ -49081,7 +50227,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 @@ -49091,7 +50237,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 @@ -49101,11 +50247,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?, @@ -49124,9 +50270,15 @@ pub mod types { #[derive(Clone, Debug)] pub struct VpcSubnetUpdate { - custom_router: Result, String>, - description: Result, String>, - name: Result, String>, + custom_router: ::std::result::Result< + ::std::option::Option, + ::std::string::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 { @@ -49142,7 +50294,7 @@ pub mod types { impl VpcSubnetUpdate { pub fn custom_router(mut self, value: T) -> Self where - T: std::convert::TryInto>, + T: std::convert::TryInto<::std::option::Option>, T::Error: std::fmt::Display, { self.custom_router = value.try_into().map_err(|e| { @@ -49152,7 +50304,7 @@ pub mod types { } 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 @@ -49162,7 +50314,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 @@ -49172,9 +50324,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 { custom_router: value.custom_router?, description: value.description?, @@ -49195,9 +50349,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 { @@ -49213,7 +50371,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 @@ -49223,7 +50381,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 @@ -49233,7 +50391,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 @@ -49243,9 +50401,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?, @@ -49816,6 +50976,25 @@ pub trait ClientHiddenExt { /// .await; /// ``` fn logout(&self) -> builder::Logout; + /// Run project-scoped timeseries query + /// + /// Queries are written in OxQL. Project must be specified by name or ID in + /// URL query parameter. The OxQL query will only return timeseries data + /// from the specified project. + /// + /// Sends a `POST` request to `/v1/timeseries/query` + /// + /// Arguments: + /// - `project`: Name or ID of the project + /// - `body` + /// ```ignore + /// let response = client.timeseries_query() + /// .project(project) + /// .body(body) + /// .send() + /// .await; + /// ``` + fn timeseries_query(&self) -> builder::TimeseriesQuery; } impl ClientHiddenExt for Client { @@ -49850,6 +51029,10 @@ impl ClientHiddenExt for Client { fn logout(&self) -> builder::Logout { builder::Logout::new(self) } + + fn timeseries_query(&self) -> builder::TimeseriesQuery { + builder::TimeseriesQuery::new(self) + } } /// Images are read-only virtual disks that may be used to boot virtual @@ -54011,7 +55194,7 @@ pub mod builder { pub struct ProbeList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -54039,12 +55222,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 } @@ -54520,7 +55702,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>, } @@ -54546,12 +55728,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 } @@ -54865,7 +56046,7 @@ pub mod builder { pub struct DiskList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -54893,12 +56074,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 } @@ -55681,7 +56861,7 @@ pub mod builder { end_time: Result>, String>, limit: Result, String>, order: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, start_time: Result>, String>, } @@ -55755,12 +56935,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 } @@ -55916,7 +57095,7 @@ pub mod builder { pub struct FloatingIpList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -55944,12 +57123,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 } @@ -56647,7 +57825,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>, } @@ -56673,12 +57851,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 } @@ -56855,7 +58032,7 @@ pub mod builder { pub struct ImageList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -56883,12 +58060,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 } @@ -57443,7 +58619,7 @@ pub mod builder { pub struct InstanceList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -57471,12 +58647,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 } @@ -57976,7 +59151,7 @@ pub mod builder { client: &'a super::Client, instance: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -58015,12 +59190,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 } @@ -58990,7 +60164,7 @@ pub mod builder { client: &'a super::Client, instance: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -59029,12 +60203,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 } @@ -59341,7 +60514,7 @@ pub mod builder { client: &'a super::Client, gateway: Result, String>, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, vpc: Result, String>, @@ -59383,12 +60556,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 } @@ -59820,7 +60992,7 @@ pub mod builder { client: &'a super::Client, gateway: Result, String>, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, vpc: Result, String>, @@ -59862,12 +61034,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 } @@ -60297,7 +61468,7 @@ pub mod builder { pub struct InternetGatewayList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, vpc: Result, String>, @@ -60327,12 +61498,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 } @@ -60818,7 +61988,7 @@ pub mod builder { pub struct ProjectIpPoolList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -60844,12 +62014,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 } @@ -61205,7 +62374,7 @@ pub mod builder { pub struct CurrentUserGroups<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -61231,12 +62400,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 } @@ -61353,7 +62521,7 @@ pub mod builder { pub struct CurrentUserSshKeyList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -61379,12 +62547,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 } @@ -61693,7 +62860,7 @@ pub mod builder { end_time: Result>, String>, limit: Result, String>, order: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, start_time: Result>, String>, } @@ -61756,12 +62923,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 } @@ -61915,7 +63081,7 @@ pub mod builder { client: &'a super::Client, instance: Result, String>, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -61955,12 +63121,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 } @@ -62714,7 +63879,7 @@ pub mod builder { pub struct ProjectList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -62740,12 +63905,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 } @@ -63297,7 +64461,7 @@ pub mod builder { pub struct SnapshotList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -63325,12 +64489,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 } @@ -63719,7 +64882,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>, } @@ -63745,12 +64908,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 } @@ -63927,7 +65089,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>, } @@ -63953,12 +65115,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 } @@ -64135,7 +65296,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>, } @@ -64161,12 +65322,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 } @@ -64415,7 +65575,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>, } @@ -64452,12 +65612,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 } @@ -64582,7 +65741,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>, } @@ -64619,12 +65778,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 } @@ -64850,7 +66008,7 @@ pub mod builder { pub struct SledListUninitialized<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> SledListUninitialized<'a> { @@ -64874,12 +66032,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 } @@ -64981,7 +66138,7 @@ pub mod builder { pub struct NetworkingSwitchPortList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, switch_port_id: Result, String>, } @@ -65009,12 +66166,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 } @@ -65473,7 +66629,7 @@ pub mod builder { pub struct SwitchList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -65499,12 +66655,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 } @@ -65681,7 +66836,7 @@ pub mod builder { pub struct SiloIdentityProviderList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, silo: Result, String>, sort_by: Result, String>, } @@ -65709,12 +66864,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 } @@ -66292,7 +67446,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>, } @@ -66318,12 +67472,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 } @@ -66716,7 +67869,7 @@ pub mod builder { client: &'a super::Client, pool: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> IpPoolRangeList<'a> { @@ -66751,12 +67904,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 } @@ -67011,7 +68163,7 @@ pub mod builder { client: &'a super::Client, pool: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -67048,12 +68200,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 } @@ -67551,7 +68702,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> { @@ -67575,12 +68726,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 } @@ -67801,7 +68951,7 @@ pub mod builder { end_time: Result>, String>, limit: Result, String>, order: Result, String>, - page_token: Result, String>, + page_token: Result, String>, silo: Result, String>, start_time: Result>, String>, } @@ -67864,12 +69014,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 } @@ -68022,7 +69171,7 @@ pub mod builder { pub struct NetworkingAddressLotList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -68048,12 +69197,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 } @@ -68309,7 +69457,7 @@ pub mod builder { client: &'a super::Client, address_lot: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -68346,12 +69494,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 } @@ -68737,7 +69884,7 @@ pub mod builder { /// Sends a `GET` request to `/v1/system/networking/bfd-status` pub async fn send( self, - ) -> Result>, Error> { + ) -> Result>, Error> { let Self { client } = self; let url = format!("{}/v1/system/networking/bfd-status", client.baseurl,); #[allow(unused_mut)] @@ -68771,7 +69918,7 @@ pub mod builder { pub struct NetworkingBgpConfigList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -68797,12 +69944,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 } @@ -69048,7 +70194,7 @@ pub mod builder { pub struct NetworkingBgpAnnounceSetList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -69074,12 +70220,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 } @@ -69097,7 +70242,8 @@ pub mod builder { /// Sends a `GET` request to `/v1/system/networking/bgp-announce-set` pub async fn send( self, - ) -> Result>, Error> { + ) -> Result>, Error> + { let Self { client, limit, @@ -69316,7 +70462,8 @@ pub mod builder { /// `/v1/system/networking/bgp-announce-set/{announce_set}/announcement` pub async fn send( self, - ) -> Result>, Error> { + ) -> Result>, Error> + { let Self { client, announce_set, @@ -69488,7 +70635,8 @@ pub mod builder { /// Sends a `GET` request to `/v1/system/networking/bgp-routes-ipv4` pub async fn send( self, - ) -> Result>, Error> { + ) -> Result>, Error> + { let Self { client, asn } = self; let asn = asn.map_err(Error::InvalidRequest)?; let url = format!("{}/v1/system/networking/bgp-routes-ipv4", client.baseurl,); @@ -69535,7 +70683,8 @@ pub mod builder { /// Sends a `GET` request to `/v1/system/networking/bgp-status` pub async fn send( self, - ) -> Result>, Error> { + ) -> Result>, Error> + { let Self { client } = self; let url = format!("{}/v1/system/networking/bgp-status", client.baseurl,); #[allow(unused_mut)] @@ -69570,7 +70719,7 @@ pub mod builder { pub struct NetworkingLoopbackAddressList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -69596,12 +70745,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 } @@ -69906,7 +71054,7 @@ pub mod builder { pub struct NetworkingSwitchPortSettingsList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, port_settings: Result, String>, sort_by: Result, String>, } @@ -69934,12 +71082,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 } @@ -70410,7 +71557,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> { @@ -70434,12 +71581,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 } @@ -70538,7 +71684,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> { @@ -70551,11 +71697,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 } @@ -70599,7 +71745,7 @@ pub mod builder { pub struct SystemQuotasList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -70625,12 +71771,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 } @@ -70747,7 +71892,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>, } @@ -70773,12 +71918,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 } @@ -71085,7 +72229,7 @@ pub mod builder { client: &'a super::Client, silo: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -71122,12 +72266,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 } @@ -71619,7 +72762,7 @@ pub mod builder { pub struct SystemTimeseriesSchemaList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, } impl<'a> SystemTimeseriesSchemaList<'a> { @@ -71643,12 +72786,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 } @@ -71749,7 +72891,7 @@ pub mod builder { pub struct SiloUserList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, silo: Result, String>, sort_by: Result, String>, } @@ -71777,12 +72919,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 } @@ -71996,7 +73137,7 @@ pub mod builder { pub struct UserBuiltinList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -72022,12 +73163,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 } @@ -72204,7 +73344,7 @@ pub mod builder { pub struct SiloUtilizationList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -72230,12 +73370,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 } @@ -72407,6 +73546,97 @@ pub mod builder { } } + /// Builder for [`ClientHiddenExt::timeseries_query`] + /// + /// [`ClientHiddenExt::timeseries_query`]: super::ClientHiddenExt::timeseries_query + #[derive(Debug, Clone)] + pub struct TimeseriesQuery<'a> { + client: &'a super::Client, + project: Result, + body: Result, + } + + impl<'a> TimeseriesQuery<'a> { + pub fn new(client: &'a super::Client) -> Self { + Self { + client: client, + project: Err("project was not initialized".to_string()), + body: Ok(types::builder::TimeseriesQuery::default()), + } + } + + pub fn project(mut self, value: V) -> Self + where + V: std::convert::TryInto, + { + self.project = value + .try_into() + .map_err(|_| "conversion to `NameOrId` for project failed".to_string()); + self + } + + pub fn body(mut self, value: V) -> Self + where + V: std::convert::TryInto, + >::Error: std::fmt::Display, + { + self.body = value + .try_into() + .map(From::from) + .map_err(|s| format!("conversion to `TimeseriesQuery` for body failed: {}", s)); + self + } + + pub fn body_map(mut self, f: F) -> Self + where + F: std::ops::FnOnce(types::builder::TimeseriesQuery) -> types::builder::TimeseriesQuery, + { + self.body = self.body.map(f); + self + } + + /// Sends a `POST` request to `/v1/timeseries/query` + pub async fn send( + self, + ) -> Result, Error> { + let Self { + client, + project, + body, + } = self; + let project = project.map_err(Error::InvalidRequest)?; + let body = body + .and_then(|v| types::TimeseriesQuery::try_from(v).map_err(|e| e.to_string())) + .map_err(Error::InvalidRequest)?; + let url = format!("{}/v1/timeseries/query", client.baseurl,); + let mut query = Vec::with_capacity(1usize); + query.push(("project", project.to_string())); + #[allow(unused_mut)] + let mut request = client + .client + .post(url) + .header( + reqwest::header::ACCEPT, + reqwest::header::HeaderValue::from_static("application/json"), + ) + .json(&body) + .query(&query) + .build()?; + let result = client.client.execute(request).await; + let response = result?; + match response.status().as_u16() { + 200u16 => ResponseValue::from_response(response).await, + 400u16..=499u16 => Err(Error::ErrorResponse( + ResponseValue::from_response(response).await?, + )), + 500u16..=599u16 => Err(Error::ErrorResponse( + ResponseValue::from_response(response).await?, + )), + _ => Err(Error::UnexpectedResponse(response)), + } + } + } + /// Builder for [`ClientSilosExt::user_list`] /// /// [`ClientSilosExt::user_list`]: super::ClientSilosExt::user_list @@ -72415,7 +73645,7 @@ pub mod builder { client: &'a super::Client, group: Result, String>, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, sort_by: Result, String>, } @@ -72453,12 +73683,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 } @@ -72820,7 +74049,7 @@ pub mod builder { pub struct VpcRouterRouteList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, router: Result, String>, sort_by: Result, String>, @@ -72852,12 +74081,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 } @@ -73535,7 +74763,7 @@ pub mod builder { pub struct VpcRouterList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, vpc: Result, String>, @@ -73565,12 +74793,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 } @@ -74158,7 +75385,7 @@ pub mod builder { pub struct VpcSubnetList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, vpc: Result, String>, @@ -74188,12 +75415,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 } @@ -74782,7 +76008,7 @@ pub mod builder { client: &'a super::Client, subnet: Result, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, vpc: Result, String>, @@ -74823,12 +76049,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 } @@ -74989,7 +76214,7 @@ pub mod builder { pub struct VpcList<'a> { client: &'a super::Client, limit: Result, String>, - page_token: Result, String>, + page_token: Result, String>, project: Result, String>, sort_by: Result, String>, } @@ -75017,12 +76242,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 }