diff --git a/.github/workflows/samples-rust-server.yaml b/.github/workflows/samples-rust-server.yaml index cc0574614a3c..7530b82530d6 100644 --- a/.github/workflows/samples-rust-server.yaml +++ b/.github/workflows/samples-rust-server.yaml @@ -48,17 +48,22 @@ jobs: run: | set -e - # Iterate through each example and test various features - for package in $(find . -maxdepth 1 -mindepth 1 -type d) + # Iterate through each package and test various features + for package in $(find output -maxdepth 1 -mindepth 1 -type d) do + pushd $package # Not all versions have a server example if test -f examples/server/main.rs; then - cargo build --example server --features="server" + cargo build --example ${package##*/}-server --features="server" + fi + # Not all versions have a client example + if test -f examples/client/main.rs; then + cargo build --example ${package##*/}-client --features="client" fi # Test the CLI works if present if test -f bin/cli.rs; then cargo build --bin ${package##*/} --features cli - target/debug/${package##*/} --help + ../../target/debug/${package##*/} --help fi # Test the validate feature if it exists if cargo read-manifest | grep -q '"validate"'; then @@ -77,4 +82,5 @@ jobs: cargo test cargo clippy cargo doc + popd done diff --git a/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache b/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache index 7ea81f12a669..34bd11bf4f6c 100644 --- a/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache @@ -167,11 +167,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "{{{packageName}}}-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "{{{packageName}}}-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/modules/openapi-generator/src/main/resources/rust-server-deprecated/README.mustache b/modules/openapi-generator/src/main/resources/rust-server-deprecated/README.mustache index 3bb4bf7fc648..29be38be40ac 100644 --- a/modules/openapi-generator/src/main/resources/rust-server-deprecated/README.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server-deprecated/README.mustache @@ -71,20 +71,20 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example {{{packageName}}}- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example {{{packageName}}}-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example {{{packageName}}}-server ``` ### Running the example client @@ -97,7 +97,7 @@ To run a client, follow one of the following simple steps: {{#operation}} {{#vendorExtensions}} {{^x-no-client-example}} -cargo run --example client {{{operationId}}} +cargo run --example {{{packageName}}}-client {{{operationId}}} {{/x-no-client-example}} {{/vendorExtensions}} {{/operation}} @@ -110,7 +110,7 @@ cargo run --example client {{{operationId}}} The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example {{{packageName}}}-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/modules/openapi-generator/src/main/resources/rust-server-deprecated/models.mustache b/modules/openapi-generator/src/main/resources/rust-server-deprecated/models.mustache index 540c6d87e74d..42eb2e9743f8 100644 --- a/modules/openapi-generator/src/main/resources/rust-server-deprecated/models.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server-deprecated/models.mustache @@ -579,7 +579,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -595,7 +595,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; diff --git a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache index 6aee0343873e..c10071d12972 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache @@ -188,11 +188,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "{{{packageName}}}-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "{{{packageName}}}-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/modules/openapi-generator/src/main/resources/rust-server/README.mustache b/modules/openapi-generator/src/main/resources/rust-server/README.mustache index 60d2b83e81eb..64dbbf55ff86 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/README.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/README.mustache @@ -71,20 +71,20 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example {{{packageName}}}- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example {{{packageName}}}-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example {{{packageName}}}-server ``` ### Running the example client @@ -97,7 +97,7 @@ To run a client, follow one of the following simple steps: {{#operation}} {{#exts}} {{^x-no-client-example}} -cargo run --example client {{{operationId}}} +cargo run --example {{{packageName}}}-client {{{operationId}}} {{/x-no-client-example}} {{/exts}} {{/operation}} @@ -110,7 +110,7 @@ cargo run --example client {{{operationId}}} The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example {{{packageName}}}-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/modules/openapi-generator/src/main/resources/rust-server/models.mustache b/modules/openapi-generator/src/main/resources/rust-server/models.mustache index 62cb60f97ed3..1c3f5c6f3125 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/models.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/models.mustache @@ -629,7 +629,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -645,7 +645,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -653,7 +653,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec<{{{classname}}}> = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ diff --git a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml index 94409b6cbcd0..41c685199a4a 100644 --- a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml @@ -93,11 +93,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "multipart-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "multipart-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/README.md b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/README.md index 0cf02daad524..2a7a06dae7e6 100644 --- a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/README.md @@ -66,36 +66,36 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example multipart-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example multipart-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example multipart-v3-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client MultipartRelatedRequestPost -cargo run --example client MultipartRequestPost -cargo run --example client MultipleIdenticalMimeTypesPost +cargo run --example multipart-v3-client MultipartRelatedRequestPost +cargo run --example multipart-v3-client MultipartRequestPost +cargo run --example multipart-v3-client MultipleIdenticalMimeTypesPost ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example multipart-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/src/models.rs b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/src/models.rs index c62579b5433a..3e1d69799de4 100644 --- a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/src/models.rs +++ b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/src/models.rs @@ -137,7 +137,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -153,7 +153,7 @@ impl std::convert::TryFrom> } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -307,7 +307,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -323,7 +323,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -471,7 +471,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -487,7 +487,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; diff --git a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml index 97b38209d897..731b3b9524e2 100644 --- a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml @@ -83,11 +83,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "no-example-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "no-example-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/README.md b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/README.md index e523b8861d8d..a4549d62f32a 100644 --- a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/README.md @@ -66,20 +66,20 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example no-example-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example no-example-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example no-example-v3-server ``` ### Running the example client @@ -92,7 +92,7 @@ To run a client, follow one of the following simple steps: The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example no-example-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/src/models.rs b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/src/models.rs index 06440d8071b0..f71528ab1b64 100644 --- a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/src/models.rs +++ b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/src/models.rs @@ -120,7 +120,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -136,7 +136,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; diff --git a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml index d74e1bc72df9..2fa7f751090a 100644 --- a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml @@ -89,11 +89,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "openapi-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "openapi-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/README.md b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/README.md index 16ffb86a595b..2001fa3b7af3 100644 --- a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/README.md @@ -66,64 +66,64 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example openapi-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example openapi-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example openapi-v3-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client AnyOfGet -cargo run --example client CallbackWithHeaderPost -cargo run --example client ComplexQueryParamGet -cargo run --example client ExamplesTest -cargo run --example client FormTest -cargo run --example client GetWithBooleanParameter -cargo run --example client JsonComplexQueryParamGet -cargo run --example client MandatoryRequestHeaderGet -cargo run --example client MergePatchJsonGet -cargo run --example client MultigetGet -cargo run --example client MultipleAuthSchemeGet -cargo run --example client OneOfGet -cargo run --example client OverrideServerGet -cargo run --example client ParamgetGet -cargo run --example client ReadonlyAuthSchemeGet -cargo run --example client RegisterCallbackPost -cargo run --example client RequiredOctetStreamPut -cargo run --example client ResponsesWithHeadersGet -cargo run --example client Rfc7807Get -cargo run --example client TwoFirstLetterHeaders -cargo run --example client UntypedPropertyGet -cargo run --example client UuidGet -cargo run --example client XmlExtraPost -cargo run --example client XmlOtherPost -cargo run --example client XmlOtherPut -cargo run --example client XmlPost -cargo run --example client XmlPut -cargo run --example client EnumInPathPathParamGet -cargo run --example client MultiplePathParamsWithVeryLongPathToTestFormattingPathParamAPathParamBGet -cargo run --example client CreateRepo -cargo run --example client GetRepoInfo +cargo run --example openapi-v3-client AnyOfGet +cargo run --example openapi-v3-client CallbackWithHeaderPost +cargo run --example openapi-v3-client ComplexQueryParamGet +cargo run --example openapi-v3-client ExamplesTest +cargo run --example openapi-v3-client FormTest +cargo run --example openapi-v3-client GetWithBooleanParameter +cargo run --example openapi-v3-client JsonComplexQueryParamGet +cargo run --example openapi-v3-client MandatoryRequestHeaderGet +cargo run --example openapi-v3-client MergePatchJsonGet +cargo run --example openapi-v3-client MultigetGet +cargo run --example openapi-v3-client MultipleAuthSchemeGet +cargo run --example openapi-v3-client OneOfGet +cargo run --example openapi-v3-client OverrideServerGet +cargo run --example openapi-v3-client ParamgetGet +cargo run --example openapi-v3-client ReadonlyAuthSchemeGet +cargo run --example openapi-v3-client RegisterCallbackPost +cargo run --example openapi-v3-client RequiredOctetStreamPut +cargo run --example openapi-v3-client ResponsesWithHeadersGet +cargo run --example openapi-v3-client Rfc7807Get +cargo run --example openapi-v3-client TwoFirstLetterHeaders +cargo run --example openapi-v3-client UntypedPropertyGet +cargo run --example openapi-v3-client UuidGet +cargo run --example openapi-v3-client XmlExtraPost +cargo run --example openapi-v3-client XmlOtherPost +cargo run --example openapi-v3-client XmlOtherPut +cargo run --example openapi-v3-client XmlPost +cargo run --example openapi-v3-client XmlPut +cargo run --example openapi-v3-client EnumInPathPathParamGet +cargo run --example openapi-v3-client MultiplePathParamsWithVeryLongPathToTestFormattingPathParamAPathParamBGet +cargo run --example openapi-v3-client CreateRepo +cargo run --example openapi-v3-client GetRepoInfo ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example openapi-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/src/models.rs b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/src/models.rs index f3008fdd34b2..f1c3ea082be1 100644 --- a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/src/models.rs +++ b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/src/models.rs @@ -93,7 +93,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -109,7 +109,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -230,7 +230,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -246,7 +246,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -410,7 +410,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -426,7 +426,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -603,7 +603,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -619,7 +619,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -733,7 +733,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -749,7 +749,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -905,7 +905,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -921,7 +921,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1051,7 +1051,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1067,7 +1067,7 @@ impl std::convert::TryFrom>> fo } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1189,7 +1189,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1205,7 +1205,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1327,7 +1327,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1343,7 +1343,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1449,7 +1449,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1465,7 +1465,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1624,7 +1624,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1640,7 +1640,7 @@ impl std::convert::TryFrom>> for hype } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1806,7 +1806,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1822,7 +1822,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1942,7 +1942,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1958,7 +1958,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2071,7 +2071,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2087,7 +2087,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2200,7 +2200,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2216,7 +2216,7 @@ impl std::convert::TryFrom>> for hyper::heade } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2318,7 +2318,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2334,7 +2334,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2456,7 +2456,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2472,7 +2472,7 @@ impl std::convert::TryFrom>> } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2582,7 +2582,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2598,7 +2598,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2752,7 +2752,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2768,7 +2768,7 @@ impl std::convert::TryFrom>> } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2891,7 +2891,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2907,7 +2907,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3068,7 +3068,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3084,7 +3084,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3208,7 +3208,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3224,7 +3224,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3337,7 +3337,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3353,7 +3353,7 @@ impl std::convert::TryFrom>> for hyp } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3616,7 +3616,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3632,7 +3632,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3796,7 +3796,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3812,7 +3812,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3979,7 +3979,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3995,7 +3995,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4171,7 +4171,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4187,7 +4187,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4340,7 +4340,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4356,7 +4356,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4469,7 +4469,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4485,7 +4485,7 @@ impl std::convert::TryFrom>> for hyper::header:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4606,7 +4606,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4622,7 +4622,7 @@ impl std::convert::TryFrom>> fo } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4745,7 +4745,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4761,7 +4761,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4884,7 +4884,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4900,7 +4900,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5013,7 +5013,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5029,7 +5029,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5135,7 +5135,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5151,7 +5151,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5264,7 +5264,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5280,7 +5280,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5404,7 +5404,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5420,7 +5420,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5597,7 +5597,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5613,7 +5613,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5727,7 +5727,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5743,7 +5743,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5914,7 +5914,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5930,7 +5930,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; diff --git a/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml index 3f9de165eabe..1fd69798ef5d 100644 --- a/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml @@ -83,11 +83,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "ops-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "ops-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/ops-v3/README.md b/samples/server/petstore/rust-server-deprecated/output/ops-v3/README.md index 26e02e69a82a..ad2c0630f36a 100644 --- a/samples/server/petstore/rust-server-deprecated/output/ops-v3/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/ops-v3/README.md @@ -66,70 +66,70 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example ops-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example ops-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example ops-v3-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client Op10Get -cargo run --example client Op11Get -cargo run --example client Op12Get -cargo run --example client Op13Get -cargo run --example client Op14Get -cargo run --example client Op15Get -cargo run --example client Op16Get -cargo run --example client Op17Get -cargo run --example client Op18Get -cargo run --example client Op19Get -cargo run --example client Op1Get -cargo run --example client Op20Get -cargo run --example client Op21Get -cargo run --example client Op22Get -cargo run --example client Op23Get -cargo run --example client Op24Get -cargo run --example client Op25Get -cargo run --example client Op26Get -cargo run --example client Op27Get -cargo run --example client Op28Get -cargo run --example client Op29Get -cargo run --example client Op2Get -cargo run --example client Op30Get -cargo run --example client Op31Get -cargo run --example client Op32Get -cargo run --example client Op33Get -cargo run --example client Op34Get -cargo run --example client Op35Get -cargo run --example client Op36Get -cargo run --example client Op37Get -cargo run --example client Op3Get -cargo run --example client Op4Get -cargo run --example client Op5Get -cargo run --example client Op6Get -cargo run --example client Op7Get -cargo run --example client Op8Get -cargo run --example client Op9Get +cargo run --example ops-v3-client Op10Get +cargo run --example ops-v3-client Op11Get +cargo run --example ops-v3-client Op12Get +cargo run --example ops-v3-client Op13Get +cargo run --example ops-v3-client Op14Get +cargo run --example ops-v3-client Op15Get +cargo run --example ops-v3-client Op16Get +cargo run --example ops-v3-client Op17Get +cargo run --example ops-v3-client Op18Get +cargo run --example ops-v3-client Op19Get +cargo run --example ops-v3-client Op1Get +cargo run --example ops-v3-client Op20Get +cargo run --example ops-v3-client Op21Get +cargo run --example ops-v3-client Op22Get +cargo run --example ops-v3-client Op23Get +cargo run --example ops-v3-client Op24Get +cargo run --example ops-v3-client Op25Get +cargo run --example ops-v3-client Op26Get +cargo run --example ops-v3-client Op27Get +cargo run --example ops-v3-client Op28Get +cargo run --example ops-v3-client Op29Get +cargo run --example ops-v3-client Op2Get +cargo run --example ops-v3-client Op30Get +cargo run --example ops-v3-client Op31Get +cargo run --example ops-v3-client Op32Get +cargo run --example ops-v3-client Op33Get +cargo run --example ops-v3-client Op34Get +cargo run --example ops-v3-client Op35Get +cargo run --example ops-v3-client Op36Get +cargo run --example ops-v3-client Op37Get +cargo run --example ops-v3-client Op3Get +cargo run --example ops-v3-client Op4Get +cargo run --example ops-v3-client Op5Get +cargo run --example ops-v3-client Op6Get +cargo run --example ops-v3-client Op7Get +cargo run --example ops-v3-client Op8Get +cargo run --example ops-v3-client Op9Get ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example ops-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml index 444dd4b96557..7c95dd77ad12 100644 --- a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml @@ -95,11 +95,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "petstore-with-fake-endpoints-models-for-testing-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "petstore-with-fake-endpoints-models-for-testing-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/README.md b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/README.md index 0584b86c1ef4..2b48f279eccc 100644 --- a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/README.md @@ -66,58 +66,58 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example petstore-with-fake-endpoints-models-for-testing- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example petstore-with-fake-endpoints-models-for-testing-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example petstore-with-fake-endpoints-models-for-testing-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client Call123example -cargo run --example client FakeOuterBooleanSerialize -cargo run --example client FakeOuterCompositeSerialize -cargo run --example client FakeOuterNumberSerialize -cargo run --example client FakeOuterStringSerialize -cargo run --example client FakeResponseWithNumericalDescription -cargo run --example client TestEndpointParameters -cargo run --example client TestEnumParameters -cargo run --example client TestJsonFormData -cargo run --example client HyphenParam -cargo run --example client FindPetsByStatus -cargo run --example client FindPetsByTags -cargo run --example client DeletePet -cargo run --example client GetPetById -cargo run --example client UpdatePetWithForm -cargo run --example client UploadFile -cargo run --example client GetInventory -cargo run --example client DeleteOrder -cargo run --example client GetOrderById -cargo run --example client CreateUsersWithArrayInput -cargo run --example client CreateUsersWithListInput -cargo run --example client LoginUser -cargo run --example client LogoutUser -cargo run --example client DeleteUser -cargo run --example client GetUserByName +cargo run --example petstore-with-fake-endpoints-models-for-testing-client Call123example +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterBooleanSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterCompositeSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterNumberSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterStringSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeResponseWithNumericalDescription +cargo run --example petstore-with-fake-endpoints-models-for-testing-client TestEndpointParameters +cargo run --example petstore-with-fake-endpoints-models-for-testing-client TestEnumParameters +cargo run --example petstore-with-fake-endpoints-models-for-testing-client TestJsonFormData +cargo run --example petstore-with-fake-endpoints-models-for-testing-client HyphenParam +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FindPetsByStatus +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FindPetsByTags +cargo run --example petstore-with-fake-endpoints-models-for-testing-client DeletePet +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetPetById +cargo run --example petstore-with-fake-endpoints-models-for-testing-client UpdatePetWithForm +cargo run --example petstore-with-fake-endpoints-models-for-testing-client UploadFile +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetInventory +cargo run --example petstore-with-fake-endpoints-models-for-testing-client DeleteOrder +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetOrderById +cargo run --example petstore-with-fake-endpoints-models-for-testing-client CreateUsersWithArrayInput +cargo run --example petstore-with-fake-endpoints-models-for-testing-client CreateUsersWithListInput +cargo run --example petstore-with-fake-endpoints-models-for-testing-client LoginUser +cargo run --example petstore-with-fake-endpoints-models-for-testing-client LogoutUser +cargo run --example petstore-with-fake-endpoints-models-for-testing-client DeleteUser +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetUserByName ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example petstore-with-fake-endpoints-models-for-testing-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs index 4ab8b1568999..0e82f7a4a002 100644 --- a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs +++ b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs @@ -128,7 +128,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -144,7 +144,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -308,7 +308,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -324,7 +324,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -485,7 +485,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -501,7 +501,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -685,7 +685,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -701,7 +701,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -849,7 +849,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -865,7 +865,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1018,7 +1018,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1034,7 +1034,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1214,7 +1214,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1230,7 +1230,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1460,7 +1460,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1476,7 +1476,7 @@ impl std::convert::TryFrom>> for hyp } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1655,7 +1655,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1671,7 +1671,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1841,7 +1841,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1857,7 +1857,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2012,7 +2012,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2028,7 +2028,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2182,7 +2182,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2198,7 +2198,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2377,7 +2377,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2393,7 +2393,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2548,7 +2548,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2564,7 +2564,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2731,7 +2731,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2747,7 +2747,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2853,7 +2853,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2869,7 +2869,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2975,7 +2975,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2991,7 +2991,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3097,7 +3097,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3113,7 +3113,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3223,7 +3223,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3239,7 +3239,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3427,7 +3427,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3443,7 +3443,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3549,7 +3549,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3565,7 +3565,7 @@ impl std::convert::TryFrom>> fo } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3675,7 +3675,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3691,7 +3691,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3801,7 +3801,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3817,7 +3817,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4150,7 +4150,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4166,7 +4166,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4335,7 +4335,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4351,7 +4351,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4505,7 +4505,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4521,7 +4521,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4687,7 +4687,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4703,7 +4703,7 @@ impl std::convert::TryFrom>> for hyper::hea } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4809,7 +4809,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4825,7 +4825,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4993,7 +4993,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5009,7 +5009,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5180,7 +5180,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5196,7 +5196,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5392,7 +5392,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5408,7 +5408,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5562,7 +5562,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5578,7 +5578,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5727,7 +5727,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5743,7 +5743,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5864,7 +5864,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5880,7 +5880,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6100,7 +6100,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6116,7 +6116,7 @@ impl std::convert::TryFrom>> for hyper::heade } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6227,7 +6227,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6243,7 +6243,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6366,7 +6366,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6382,7 +6382,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6566,7 +6566,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6582,7 +6582,7 @@ impl std::convert::TryFrom>> for hyp } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6692,7 +6692,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6708,7 +6708,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6831,7 +6831,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6847,7 +6847,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6960,7 +6960,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6976,7 +6976,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7179,7 +7179,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7195,7 +7195,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7306,7 +7306,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7322,7 +7322,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7491,7 +7491,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7507,7 +7507,7 @@ impl std::convert::TryFrom>> for hype } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7663,7 +7663,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7679,7 +7679,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7849,7 +7849,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7865,7 +7865,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7971,7 +7971,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7987,7 +7987,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8097,7 +8097,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8113,7 +8113,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8219,7 +8219,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8235,7 +8235,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8341,7 +8341,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8357,7 +8357,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8468,7 +8468,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8484,7 +8484,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8745,7 +8745,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8761,7 +8761,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; diff --git a/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml index e56f964f0bc3..368152925446 100644 --- a/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml @@ -83,11 +83,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "ping-bearer-auth-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "ping-bearer-auth-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/README.md b/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/README.md index ef1584a144c9..3a20518b2119 100644 --- a/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/README.md @@ -66,34 +66,34 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example ping-bearer-auth- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example ping-bearer-auth-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example ping-bearer-auth-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client PingGet +cargo run --example ping-bearer-auth-client PingGet ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example ping-bearer-auth-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml index 997423d90583..bd4588bfdb87 100644 --- a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml @@ -83,11 +83,13 @@ tokio-openssl = "0.6" openssl = "0.10" [[example]] -name = "client" +name = "rust-server-test-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "rust-server-test-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/README.md b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/README.md index 2104fe4851f0..7a6164d88234 100644 --- a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/README.md +++ b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/README.md @@ -66,40 +66,40 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example rust-server-test- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example rust-server-test-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example rust-server-test-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client AllOfGet -cargo run --example client DummyGet -cargo run --example client FileResponseGet -cargo run --example client GetStructuredYaml -cargo run --example client HtmlPost -cargo run --example client PostYaml -cargo run --example client RawJsonGet +cargo run --example rust-server-test-client AllOfGet +cargo run --example rust-server-test-client DummyGet +cargo run --example rust-server-test-client FileResponseGet +cargo run --example rust-server-test-client GetStructuredYaml +cargo run --example rust-server-test-client HtmlPost +cargo run --example rust-server-test-client PostYaml +cargo run --example rust-server-test-client RawJsonGet ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example rust-server-test-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/src/models.rs b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/src/models.rs index 8c288de93243..ab3a6a63bb36 100644 --- a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/src/models.rs +++ b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/src/models.rs @@ -135,7 +135,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -151,7 +151,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -264,7 +264,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -280,7 +280,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -440,7 +440,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -456,7 +456,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -601,7 +601,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -617,7 +617,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -772,7 +772,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -788,7 +788,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -935,7 +935,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -951,7 +951,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1092,7 +1092,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1108,7 +1108,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1263,7 +1263,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1279,7 +1279,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1428,7 +1428,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1444,7 +1444,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1558,7 +1558,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1574,7 +1574,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; diff --git a/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml b/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml index f1fff369d76b..6bd59cc408fe 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml @@ -120,11 +120,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "multipart-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "multipart-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/multipart-v3/README.md b/samples/server/petstore/rust-server/output/multipart-v3/README.md index f056c7ba9447..4d0e6e958b4d 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/README.md +++ b/samples/server/petstore/rust-server/output/multipart-v3/README.md @@ -66,36 +66,36 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example multipart-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example multipart-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example multipart-v3-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client MultipartRelatedRequestPost -cargo run --example client MultipartRequestPost -cargo run --example client MultipleIdenticalMimeTypesPost +cargo run --example multipart-v3-client MultipartRelatedRequestPost +cargo run --example multipart-v3-client MultipartRequestPost +cargo run --example multipart-v3-client MultipleIdenticalMimeTypesPost ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example multipart-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/multipart-v3/src/models.rs b/samples/server/petstore/rust-server/output/multipart-v3/src/models.rs index b86871d13aec..801018ffa474 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/src/models.rs +++ b/samples/server/petstore/rust-server/output/multipart-v3/src/models.rs @@ -142,7 +142,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -158,7 +158,7 @@ impl std::convert::TryFrom> } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -166,7 +166,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -314,7 +314,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -330,7 +330,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -338,7 +338,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -480,7 +480,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -496,7 +496,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -504,7 +504,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ diff --git a/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml b/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml index d71ad43365b7..933286f014cb 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml @@ -114,11 +114,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "no-example-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "no-example-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/no-example-v3/README.md b/samples/server/petstore/rust-server/output/no-example-v3/README.md index 21043c1ab683..b1f60d7d1fab 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/README.md +++ b/samples/server/petstore/rust-server/output/no-example-v3/README.md @@ -66,20 +66,20 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example no-example-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example no-example-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example no-example-v3-server ``` ### Running the example client @@ -92,7 +92,7 @@ To run a client, follow one of the following simple steps: The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example no-example-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/no-example-v3/src/models.rs b/samples/server/petstore/rust-server/output/no-example-v3/src/models.rs index 04df69c8589d..2af1314ffd1a 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/src/models.rs +++ b/samples/server/petstore/rust-server/output/no-example-v3/src/models.rs @@ -122,7 +122,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -138,7 +138,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -146,7 +146,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ diff --git a/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml b/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml index cec41dc08199..5689cb4ca9e0 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml @@ -120,11 +120,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "openapi-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "openapi-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/openapi-v3/README.md b/samples/server/petstore/rust-server/output/openapi-v3/README.md index 5862ad6acc68..4999c4b9988e 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/README.md +++ b/samples/server/petstore/rust-server/output/openapi-v3/README.md @@ -66,64 +66,64 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example openapi-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example openapi-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example openapi-v3-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client AnyOfGet -cargo run --example client CallbackWithHeaderPost -cargo run --example client ComplexQueryParamGet -cargo run --example client ExamplesTest -cargo run --example client FormTest -cargo run --example client GetWithBooleanParameter -cargo run --example client JsonComplexQueryParamGet -cargo run --example client MandatoryRequestHeaderGet -cargo run --example client MergePatchJsonGet -cargo run --example client MultigetGet -cargo run --example client MultipleAuthSchemeGet -cargo run --example client OneOfGet -cargo run --example client OverrideServerGet -cargo run --example client ParamgetGet -cargo run --example client ReadonlyAuthSchemeGet -cargo run --example client RegisterCallbackPost -cargo run --example client RequiredOctetStreamPut -cargo run --example client ResponsesWithHeadersGet -cargo run --example client Rfc7807Get -cargo run --example client TwoFirstLetterHeaders -cargo run --example client UntypedPropertyGet -cargo run --example client UuidGet -cargo run --example client XmlExtraPost -cargo run --example client XmlOtherPost -cargo run --example client XmlOtherPut -cargo run --example client XmlPost -cargo run --example client XmlPut -cargo run --example client EnumInPathPathParamGet -cargo run --example client MultiplePathParamsWithVeryLongPathToTestFormattingPathParamAPathParamBGet -cargo run --example client CreateRepo -cargo run --example client GetRepoInfo +cargo run --example openapi-v3-client AnyOfGet +cargo run --example openapi-v3-client CallbackWithHeaderPost +cargo run --example openapi-v3-client ComplexQueryParamGet +cargo run --example openapi-v3-client ExamplesTest +cargo run --example openapi-v3-client FormTest +cargo run --example openapi-v3-client GetWithBooleanParameter +cargo run --example openapi-v3-client JsonComplexQueryParamGet +cargo run --example openapi-v3-client MandatoryRequestHeaderGet +cargo run --example openapi-v3-client MergePatchJsonGet +cargo run --example openapi-v3-client MultigetGet +cargo run --example openapi-v3-client MultipleAuthSchemeGet +cargo run --example openapi-v3-client OneOfGet +cargo run --example openapi-v3-client OverrideServerGet +cargo run --example openapi-v3-client ParamgetGet +cargo run --example openapi-v3-client ReadonlyAuthSchemeGet +cargo run --example openapi-v3-client RegisterCallbackPost +cargo run --example openapi-v3-client RequiredOctetStreamPut +cargo run --example openapi-v3-client ResponsesWithHeadersGet +cargo run --example openapi-v3-client Rfc7807Get +cargo run --example openapi-v3-client TwoFirstLetterHeaders +cargo run --example openapi-v3-client UntypedPropertyGet +cargo run --example openapi-v3-client UuidGet +cargo run --example openapi-v3-client XmlExtraPost +cargo run --example openapi-v3-client XmlOtherPost +cargo run --example openapi-v3-client XmlOtherPut +cargo run --example openapi-v3-client XmlPost +cargo run --example openapi-v3-client XmlPut +cargo run --example openapi-v3-client EnumInPathPathParamGet +cargo run --example openapi-v3-client MultiplePathParamsWithVeryLongPathToTestFormattingPathParamAPathParamBGet +cargo run --example openapi-v3-client CreateRepo +cargo run --example openapi-v3-client GetRepoInfo ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example openapi-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/openapi-v3/src/models.rs b/samples/server/petstore/rust-server/output/openapi-v3/src/models.rs index 64d8c80a8d4c..ea0bcb790e16 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/src/models.rs +++ b/samples/server/petstore/rust-server/output/openapi-v3/src/models.rs @@ -94,7 +94,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -110,7 +110,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -118,7 +118,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -234,7 +234,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -250,7 +250,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -258,7 +258,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -416,7 +416,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -432,7 +432,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -440,7 +440,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -611,7 +611,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -627,7 +627,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -635,7 +635,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -744,7 +744,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -760,7 +760,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -768,7 +768,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -917,7 +917,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -933,7 +933,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -941,7 +941,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1066,7 +1066,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1082,7 +1082,7 @@ impl std::convert::TryFrom>> fo } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1090,7 +1090,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1207,7 +1207,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1223,7 +1223,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1231,7 +1231,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1348,7 +1348,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1364,7 +1364,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1372,7 +1372,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1471,7 +1471,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1487,7 +1487,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1495,7 +1495,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1648,7 +1648,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1664,7 +1664,7 @@ impl std::convert::TryFrom>> for hype } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1672,7 +1672,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1832,7 +1832,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1848,7 +1848,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1856,7 +1856,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1969,7 +1969,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1985,7 +1985,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1993,7 +1993,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2101,7 +2101,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2117,7 +2117,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2125,7 +2125,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2233,7 +2233,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2249,7 +2249,7 @@ impl std::convert::TryFrom>> for hyper::heade } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2257,7 +2257,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2352,7 +2352,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2368,7 +2368,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2376,7 +2376,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2493,7 +2493,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2509,7 +2509,7 @@ impl std::convert::TryFrom>> } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2517,7 +2517,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2620,7 +2620,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2636,7 +2636,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2644,7 +2644,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2791,7 +2791,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2807,7 +2807,7 @@ impl std::convert::TryFrom>> } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2815,7 +2815,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2933,7 +2933,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2949,7 +2949,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2957,7 +2957,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3111,7 +3111,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3127,7 +3127,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3135,7 +3135,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3254,7 +3254,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3270,7 +3270,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3278,7 +3278,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3386,7 +3386,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3402,7 +3402,7 @@ impl std::convert::TryFrom>> for hyp } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3410,7 +3410,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3673,7 +3673,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3689,7 +3689,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3697,7 +3697,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3855,7 +3855,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3871,7 +3871,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3879,7 +3879,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4040,7 +4040,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4056,7 +4056,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4064,7 +4064,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4236,7 +4236,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4252,7 +4252,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4260,7 +4260,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4406,7 +4406,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4422,7 +4422,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4430,7 +4430,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4538,7 +4538,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4554,7 +4554,7 @@ impl std::convert::TryFrom>> for hyper::header:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4562,7 +4562,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4678,7 +4678,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4694,7 +4694,7 @@ impl std::convert::TryFrom>> fo } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4702,7 +4702,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4820,7 +4820,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4836,7 +4836,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4844,7 +4844,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4962,7 +4962,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4978,7 +4978,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4986,7 +4986,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5094,7 +5094,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5110,7 +5110,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5118,7 +5118,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5217,7 +5217,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5233,7 +5233,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5241,7 +5241,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5349,7 +5349,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5365,7 +5365,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5373,7 +5373,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5492,7 +5492,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5508,7 +5508,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5516,7 +5516,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5687,7 +5687,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5703,7 +5703,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5711,7 +5711,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5820,7 +5820,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5836,7 +5836,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5844,7 +5844,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6009,7 +6009,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6025,7 +6025,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6033,7 +6033,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ diff --git a/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml b/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml index 2c089f67518e..e0d9734ddba9 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml @@ -114,11 +114,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "ops-v3-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "ops-v3-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/ops-v3/README.md b/samples/server/petstore/rust-server/output/ops-v3/README.md index 5e5fcc8a327a..65b9d92e8db0 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/README.md +++ b/samples/server/petstore/rust-server/output/ops-v3/README.md @@ -66,70 +66,70 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example ops-v3- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example ops-v3-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example ops-v3-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client Op10Get -cargo run --example client Op11Get -cargo run --example client Op12Get -cargo run --example client Op13Get -cargo run --example client Op14Get -cargo run --example client Op15Get -cargo run --example client Op16Get -cargo run --example client Op17Get -cargo run --example client Op18Get -cargo run --example client Op19Get -cargo run --example client Op1Get -cargo run --example client Op20Get -cargo run --example client Op21Get -cargo run --example client Op22Get -cargo run --example client Op23Get -cargo run --example client Op24Get -cargo run --example client Op25Get -cargo run --example client Op26Get -cargo run --example client Op27Get -cargo run --example client Op28Get -cargo run --example client Op29Get -cargo run --example client Op2Get -cargo run --example client Op30Get -cargo run --example client Op31Get -cargo run --example client Op32Get -cargo run --example client Op33Get -cargo run --example client Op34Get -cargo run --example client Op35Get -cargo run --example client Op36Get -cargo run --example client Op37Get -cargo run --example client Op3Get -cargo run --example client Op4Get -cargo run --example client Op5Get -cargo run --example client Op6Get -cargo run --example client Op7Get -cargo run --example client Op8Get -cargo run --example client Op9Get +cargo run --example ops-v3-client Op10Get +cargo run --example ops-v3-client Op11Get +cargo run --example ops-v3-client Op12Get +cargo run --example ops-v3-client Op13Get +cargo run --example ops-v3-client Op14Get +cargo run --example ops-v3-client Op15Get +cargo run --example ops-v3-client Op16Get +cargo run --example ops-v3-client Op17Get +cargo run --example ops-v3-client Op18Get +cargo run --example ops-v3-client Op19Get +cargo run --example ops-v3-client Op1Get +cargo run --example ops-v3-client Op20Get +cargo run --example ops-v3-client Op21Get +cargo run --example ops-v3-client Op22Get +cargo run --example ops-v3-client Op23Get +cargo run --example ops-v3-client Op24Get +cargo run --example ops-v3-client Op25Get +cargo run --example ops-v3-client Op26Get +cargo run --example ops-v3-client Op27Get +cargo run --example ops-v3-client Op28Get +cargo run --example ops-v3-client Op29Get +cargo run --example ops-v3-client Op2Get +cargo run --example ops-v3-client Op30Get +cargo run --example ops-v3-client Op31Get +cargo run --example ops-v3-client Op32Get +cargo run --example ops-v3-client Op33Get +cargo run --example ops-v3-client Op34Get +cargo run --example ops-v3-client Op35Get +cargo run --example ops-v3-client Op36Get +cargo run --example ops-v3-client Op37Get +cargo run --example ops-v3-client Op3Get +cargo run --example ops-v3-client Op4Get +cargo run --example ops-v3-client Op5Get +cargo run --example ops-v3-client Op6Get +cargo run --example ops-v3-client Op7Get +cargo run --example ops-v3-client Op8Get +cargo run --example ops-v3-client Op9Get ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example ops-v3-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml index 5e0ea94e4048..d2cf4b9d6c5b 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml @@ -123,11 +123,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "petstore-with-fake-endpoints-models-for-testing-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "petstore-with-fake-endpoints-models-for-testing-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/README.md b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/README.md index 76b723f84f12..ed3b82ffe198 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/README.md +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/README.md @@ -66,58 +66,58 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example petstore-with-fake-endpoints-models-for-testing- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example petstore-with-fake-endpoints-models-for-testing-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example petstore-with-fake-endpoints-models-for-testing-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client Call123example -cargo run --example client FakeOuterBooleanSerialize -cargo run --example client FakeOuterCompositeSerialize -cargo run --example client FakeOuterNumberSerialize -cargo run --example client FakeOuterStringSerialize -cargo run --example client FakeResponseWithNumericalDescription -cargo run --example client TestEndpointParameters -cargo run --example client TestEnumParameters -cargo run --example client TestJsonFormData -cargo run --example client HyphenParam -cargo run --example client FindPetsByStatus -cargo run --example client FindPetsByTags -cargo run --example client DeletePet -cargo run --example client GetPetById -cargo run --example client UpdatePetWithForm -cargo run --example client UploadFile -cargo run --example client GetInventory -cargo run --example client DeleteOrder -cargo run --example client GetOrderById -cargo run --example client CreateUsersWithArrayInput -cargo run --example client CreateUsersWithListInput -cargo run --example client LoginUser -cargo run --example client LogoutUser -cargo run --example client DeleteUser -cargo run --example client GetUserByName +cargo run --example petstore-with-fake-endpoints-models-for-testing-client Call123example +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterBooleanSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterCompositeSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterNumberSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeOuterStringSerialize +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FakeResponseWithNumericalDescription +cargo run --example petstore-with-fake-endpoints-models-for-testing-client TestEndpointParameters +cargo run --example petstore-with-fake-endpoints-models-for-testing-client TestEnumParameters +cargo run --example petstore-with-fake-endpoints-models-for-testing-client TestJsonFormData +cargo run --example petstore-with-fake-endpoints-models-for-testing-client HyphenParam +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FindPetsByStatus +cargo run --example petstore-with-fake-endpoints-models-for-testing-client FindPetsByTags +cargo run --example petstore-with-fake-endpoints-models-for-testing-client DeletePet +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetPetById +cargo run --example petstore-with-fake-endpoints-models-for-testing-client UpdatePetWithForm +cargo run --example petstore-with-fake-endpoints-models-for-testing-client UploadFile +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetInventory +cargo run --example petstore-with-fake-endpoints-models-for-testing-client DeleteOrder +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetOrderById +cargo run --example petstore-with-fake-endpoints-models-for-testing-client CreateUsersWithArrayInput +cargo run --example petstore-with-fake-endpoints-models-for-testing-client CreateUsersWithListInput +cargo run --example petstore-with-fake-endpoints-models-for-testing-client LoginUser +cargo run --example petstore-with-fake-endpoints-models-for-testing-client LogoutUser +cargo run --example petstore-with-fake-endpoints-models-for-testing-client DeleteUser +cargo run --example petstore-with-fake-endpoints-models-for-testing-client GetUserByName ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example petstore-with-fake-endpoints-models-for-testing-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs index aa2800e329d3..c84cc744332a 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/models.rs @@ -131,7 +131,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -147,7 +147,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -155,7 +155,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -313,7 +313,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -329,7 +329,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -337,7 +337,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -491,7 +491,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -507,7 +507,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -515,7 +515,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -694,7 +694,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -710,7 +710,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -718,7 +718,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -859,7 +859,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -875,7 +875,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -883,7 +883,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1029,7 +1029,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1045,7 +1045,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1053,7 +1053,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1231,7 +1231,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1247,7 +1247,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1255,7 +1255,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1483,7 +1483,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1499,7 +1499,7 @@ impl std::convert::TryFrom>> for hyp } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1507,7 +1507,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1681,7 +1681,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1697,7 +1697,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1705,7 +1705,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1869,7 +1869,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1885,7 +1885,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1893,7 +1893,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2041,7 +2041,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2057,7 +2057,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2065,7 +2065,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2212,7 +2212,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2228,7 +2228,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2236,7 +2236,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2410,7 +2410,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2426,7 +2426,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2434,7 +2434,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2582,7 +2582,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2598,7 +2598,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2606,7 +2606,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2771,7 +2771,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2787,7 +2787,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2795,7 +2795,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -2894,7 +2894,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -2910,7 +2910,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -2918,7 +2918,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3017,7 +3017,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3033,7 +3033,7 @@ impl std::convert::TryFrom } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3041,7 +3041,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3140,7 +3140,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3156,7 +3156,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3164,7 +3164,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3267,7 +3267,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3283,7 +3283,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3291,7 +3291,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3481,7 +3481,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3497,7 +3497,7 @@ impl std::convert::TryFrom>> for hyper::he } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3505,7 +3505,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3604,7 +3604,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3620,7 +3620,7 @@ impl std::convert::TryFrom>> fo } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3628,7 +3628,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3731,7 +3731,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3747,7 +3747,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3755,7 +3755,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -3858,7 +3858,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -3874,7 +3874,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -3882,7 +3882,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4234,7 +4234,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4250,7 +4250,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4258,7 +4258,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4421,7 +4421,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4437,7 +4437,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4445,7 +4445,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4592,7 +4592,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4608,7 +4608,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4616,7 +4616,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4779,7 +4779,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4795,7 +4795,7 @@ impl std::convert::TryFrom>> for hyper::hea } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4803,7 +4803,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -4902,7 +4902,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -4918,7 +4918,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -4926,7 +4926,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5090,7 +5090,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5106,7 +5106,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5114,7 +5114,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5279,7 +5279,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5295,7 +5295,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5303,7 +5303,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5495,7 +5495,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5511,7 +5511,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5519,7 +5519,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5666,7 +5666,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5682,7 +5682,7 @@ impl std::convert::TryFrom>> for hyper:: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5690,7 +5690,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5833,7 +5833,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5849,7 +5849,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -5857,7 +5857,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -5982,7 +5982,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -5998,7 +5998,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6006,7 +6006,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6225,7 +6225,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6241,7 +6241,7 @@ impl std::convert::TryFrom>> for hyper::heade } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6249,7 +6249,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6353,7 +6353,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6369,7 +6369,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6377,7 +6377,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6504,7 +6504,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6520,7 +6520,7 @@ impl std::convert::TryFrom>> for hyper } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6528,7 +6528,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6707,7 +6707,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6723,7 +6723,7 @@ impl std::convert::TryFrom>> for hyp } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6731,7 +6731,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6834,7 +6834,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -6850,7 +6850,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -6858,7 +6858,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -6985,7 +6985,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7001,7 +7001,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7009,7 +7009,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -7126,7 +7126,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7142,7 +7142,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7150,7 +7150,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -7354,7 +7354,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7370,7 +7370,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7378,7 +7378,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -7482,7 +7482,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7498,7 +7498,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7506,7 +7506,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -7669,7 +7669,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7685,7 +7685,7 @@ impl std::convert::TryFrom>> for hype } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7693,7 +7693,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -7842,7 +7842,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -7858,7 +7858,7 @@ impl std::convert::TryFrom>> for hyper::head } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -7866,7 +7866,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8030,7 +8030,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8046,7 +8046,7 @@ impl std::convert::TryFrom>> for hyper::header: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8054,7 +8054,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8153,7 +8153,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8169,7 +8169,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8177,7 +8177,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8280,7 +8280,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8296,7 +8296,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8304,7 +8304,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8403,7 +8403,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8419,7 +8419,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8427,7 +8427,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8526,7 +8526,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8542,7 +8542,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8550,7 +8550,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8654,7 +8654,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8670,7 +8670,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8678,7 +8678,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -8939,7 +8939,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -8955,7 +8955,7 @@ impl std::convert::TryFrom>> for hyper::header } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -8963,7 +8963,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ diff --git a/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml b/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml index 84b62942a497..09535926daff 100644 --- a/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml +++ b/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml @@ -114,11 +114,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "ping-bearer-auth-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "ping-bearer-auth-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/ping-bearer-auth/README.md b/samples/server/petstore/rust-server/output/ping-bearer-auth/README.md index 546eaf3a272e..0caa3c9eca77 100644 --- a/samples/server/petstore/rust-server/output/ping-bearer-auth/README.md +++ b/samples/server/petstore/rust-server/output/ping-bearer-auth/README.md @@ -66,34 +66,34 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example ping-bearer-auth- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example ping-bearer-auth-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example ping-bearer-auth-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client PingGet +cargo run --example ping-bearer-auth-client PingGet ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example ping-bearer-auth-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml b/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml index 8c57650539c3..62e70cd87e0e 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml +++ b/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml @@ -114,11 +114,13 @@ openssl = "0.10" tokio-openssl = "0.6" [[example]] -name = "client" +name = "rust-server-test-client" +path = "examples/client/main.rs" required-features = ["client"] [[example]] -name = "server" +name = "rust-server-test-server" +path = "examples/server/main.rs" required-features = ["server"] [[bin]] diff --git a/samples/server/petstore/rust-server/output/rust-server-test/README.md b/samples/server/petstore/rust-server/output/rust-server-test/README.md index 0dd7947357d8..4fe88d4c0aac 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/README.md +++ b/samples/server/petstore/rust-server/output/rust-server-test/README.md @@ -66,40 +66,40 @@ You'll find the binary at `target/release/cli`. Run examples with: ``` -cargo run --example +cargo run --example rust-server-test- ``` To pass in arguments to the examples, put them after `--`, for example: ``` -cargo run --example client -- --help +cargo run --example rust-server-test-client -- --help ``` ### Running the example server To run the server, follow these simple steps: ``` -cargo run --example server +cargo run --example rust-server-test-server ``` ### Running the example client To run a client, follow one of the following simple steps: ``` -cargo run --example client AllOfGet -cargo run --example client DummyGet -cargo run --example client FileResponseGet -cargo run --example client GetStructuredYaml -cargo run --example client HtmlPost -cargo run --example client PostYaml -cargo run --example client RawJsonGet +cargo run --example rust-server-test-client AllOfGet +cargo run --example rust-server-test-client DummyGet +cargo run --example rust-server-test-client FileResponseGet +cargo run --example rust-server-test-client GetStructuredYaml +cargo run --example rust-server-test-client HtmlPost +cargo run --example rust-server-test-client PostYaml +cargo run --example rust-server-test-client RawJsonGet ``` ### HTTPS The examples can be run in HTTPS mode by passing in the flag `--https`, for example: ``` -cargo run --example server -- --https +cargo run --example rust-server-test-server -- --https ``` This will use the keys/certificates from the examples directory. Note that the diff --git a/samples/server/petstore/rust-server/output/rust-server-test/src/models.rs b/samples/server/petstore/rust-server/output/rust-server-test/src/models.rs index 596621970466..4a74d9281c66 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/src/models.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/src/models.rs @@ -138,7 +138,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -154,7 +154,7 @@ impl std::convert::TryFrom>> for } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -162,7 +162,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -279,7 +279,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -295,7 +295,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -303,7 +303,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -457,7 +457,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -473,7 +473,7 @@ impl std::convert::TryFrom>> for hyper: } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -481,7 +481,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -619,7 +619,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -635,7 +635,7 @@ impl std::convert::TryFrom>> for hyper::h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -643,7 +643,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -792,7 +792,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -808,7 +808,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -816,7 +816,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -956,7 +956,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -972,7 +972,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -980,7 +980,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1115,7 +1115,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1131,7 +1131,7 @@ impl std::convert::TryFrom>> for hy } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1139,7 +1139,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1288,7 +1288,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1304,7 +1304,7 @@ impl std::convert::TryFrom>> f } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1312,7 +1312,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1456,7 +1456,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1472,7 +1472,7 @@ impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1480,7 +1480,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({ @@ -1600,7 +1600,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom>> for hyper::header::HeaderValue { type Error = String; @@ -1616,7 +1616,7 @@ impl std::convert::TryFrom>> for h } } -#[cfg(feature = "server")] +#[cfg(any(feature = "client", feature = "server"))] impl std::convert::TryFrom for header::IntoHeaderValue> { type Error = String; @@ -1624,7 +1624,7 @@ impl std::convert::TryFrom for header::IntoHeaderVal match hdr_values.to_str() { std::result::Result::Ok(hdr_values) => { let hdr_values : std::vec::Vec = hdr_values - .split(',') + .split(",") .filter_map(|hdr_value| match hdr_value.trim() { "" => std::option::Option::None, hdr_value => std::option::Option::Some({