| 1 | use craterust-analyzer cargo schemars 1.2.2 crate/::preluderust-analyzer cargo schemars 1.2.2 prelude/::*; |
| 2 | |
| 3 | mod arust-analyzer cargo schemars 1.2.2 same_name/a/ { |
| 4 | use superrust-analyzer cargo schemars 1.2.2 same_name/::*; |
| 5 | |
| 6 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(JsonSchemarust-analyzer cargo schemars_derive 1.2.2 JsonSchema:, Deserializerust-analyzer cargo serde_derive 1.0.229 Deserialize:, Serializerust-analyzer cargo serde_derive 1.0.229 Serialize:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 7 | pub struct Configrust-analyzer cargo schemars 1.2.2 same_name/a/Config# { |
| 8 | testrust-analyzer cargo schemars 1.2.2 same_name/a/Config#test.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | mod brust-analyzer cargo schemars 1.2.2 same_name/b/ { |
| 13 | use superrust-analyzer cargo schemars 1.2.2 same_name/::*; |
| 14 | |
| 15 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(JsonSchemarust-analyzer cargo schemars_derive 1.2.2 JsonSchema:, Deserializerust-analyzer cargo serde_derive 1.0.229 Deserialize:, Serializerust-analyzer cargo serde_derive 1.0.229 Serialize:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 16 | pub struct Configrust-analyzer cargo schemars 1.2.2 same_name/b/Config# { |
| 17 | test2rust-analyzer cargo schemars 1.2.2 same_name/b/Config#test2.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | mod crust-analyzer cargo schemars 1.2.2 same_name/c/ { |
| 22 | use superrust-analyzer cargo schemars 1.2.2 same_name/::*; |
| 23 | |
| 24 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(JsonSchemarust-analyzer cargo schemars_derive 1.2.2 JsonSchema:, Deserializerust-analyzer cargo serde_derive 1.0.229 Deserialize:, Serializerust-analyzer cargo serde_derive 1.0.229 Serialize:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 25 | #[schemars(rename = "Config")] |
| 26 | pub struct Configurationrust-analyzer cargo schemars 1.2.2 same_name/c/Configuration# { |
| 27 | test3rust-analyzer cargo schemars 1.2.2 same_name/c/Configuration#test3.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(JsonSchemarust-analyzer cargo schemars_derive 1.2.2 JsonSchema:, Deserializerust-analyzer cargo serde_derive 1.0.229 Deserialize:, Serializerust-analyzer cargo serde_derive 1.0.229 Serialize:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 32 | pub struct Config2rust-analyzer cargo schemars 1.2.2 same_name/Config2# { |
| 33 | a_cfgrust-analyzer cargo schemars 1.2.2 same_name/Config2#a_cfg.: arust-analyzer cargo schemars 1.2.2 same_name/a/::Configrust-analyzer cargo schemars 1.2.2 same_name/a/Config#, |
| 34 | b_cfgrust-analyzer cargo schemars 1.2.2 same_name/Config2#b_cfg.: brust-analyzer cargo schemars 1.2.2 same_name/b/::Configrust-analyzer cargo schemars 1.2.2 same_name/b/Config#, |
| 35 | c_cfgrust-analyzer cargo schemars 1.2.2 same_name/Config2#c_cfg.: crust-analyzer cargo schemars 1.2.2 same_name/c/::Configurationrust-analyzer cargo schemars 1.2.2 same_name/c/Configuration#, |
| 36 | } |
| 37 | |
| 38 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 39 | fn same_namerust-analyzer cargo schemars 1.2.2 same_name/same_name().() { |
| 40 | testrust-analyzer cargo schemars 1.2.2 test!!(Config2rust-analyzer cargo schemars 1.2.2 same_name/Config2#) |
| 41 | .assert_snapshotrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_snapshot().() |
| 42 | .assert_allows_ser_roundtrip_defaultrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip_default().() |
| 43 | .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().()); |
| 44 | } |