diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-22 09:47:51 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-22 09:47:51 +0100 |
| commit | 8639d5524a49e1785df751cc3bda34a3cf130644 (patch) | |
| tree | cb0985f20c81e2dd38473320a74bbe42fe125d62 /examples/16-transient-0/output/rust/src/gen/data.rs | |
| parent | 4112fcce6bd0a724d9d6847ba9d3b85ae9c7601f (diff) | |
Add generic struct test to examplemain
Diffstat (limited to 'examples/16-transient-0/output/rust/src/gen/data.rs')
| -rw-r--r-- | examples/16-transient-0/output/rust/src/gen/data.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/16-transient-0/output/rust/src/gen/data.rs b/examples/16-transient-0/output/rust/src/gen/data.rs index 6f1d5b5..fe67736 100644 --- a/examples/16-transient-0/output/rust/src/gen/data.rs +++ b/examples/16-transient-0/output/rust/src/gen/data.rs @@ -40,6 +40,18 @@ pub struct StructWithStruct { } #[derive(Clone, Debug, Hash, PartialEq)] +pub struct GenericStruct<A, B> { + pub a: A, + pub b: B, +} + +#[derive(Clone, Debug, Hash, PartialEq)] +pub struct StructWithGenericStruct { + pub a: crate::data::GenericStruct::<::core::primitive::i32, ::std::string::String>, + pub b: crate::data::GenericStruct::<::std::option::Option::<::std::string::String>, crate::data::GenericStruct::<::std::option::Option::<::std::string::String>, crate::data::GenericStruct::<::std::string::String, ::std::string::String>>>, +} + +#[derive(Clone, Debug, Hash, PartialEq)] pub struct StructWithList { pub a: ::std::vec::Vec::<::core::primitive::i64>, pub b: ::std::vec::Vec::<crate::data::StructWithInt32>, |
