diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-08 23:06:06 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-08 23:06:06 +0100 |
| commit | 765357e0d65c3f869344d8e86321fbed72edbcd6 (patch) | |
| tree | 5d278dfa4c29a069ae3edccacad74b9f3c094276 /examples/15-transient-0/output/rust/src/gen | |
| parent | 39e34d4f524f5492065ba47b6cd33d5f272cd515 (diff) | |
Support nested constructed native types in java-transient-0
Diffstat (limited to 'examples/15-transient-0/output/rust/src/gen')
| -rw-r--r-- | examples/15-transient-0/output/rust/src/gen/data.rs | 1 | ||||
| -rw-r--r-- | examples/15-transient-0/output/rust/src/gen/data/transient_0.rs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/15-transient-0/output/rust/src/gen/data.rs b/examples/15-transient-0/output/rust/src/gen/data.rs index 856d60f..6f1d5b5 100644 --- a/examples/15-transient-0/output/rust/src/gen/data.rs +++ b/examples/15-transient-0/output/rust/src/gen/data.rs @@ -124,6 +124,7 @@ pub struct StructWithNative { #[derive(Clone, Debug, Hash, PartialEq)] pub struct StructWithGenericNative { pub a: crate::data::GenericNative::<::core::primitive::i32, ::std::string::String>, + pub b: crate::data::GenericNative::<::std::option::Option::<::std::string::String>, crate::data::GenericNative::<::std::option::Option::<::std::string::String>, crate::data::GenericNative::<::std::string::String, ::std::string::String>>>, } #[derive(Clone, Debug, Hash, PartialEq)] diff --git a/examples/15-transient-0/output/rust/src/gen/data/transient_0.rs b/examples/15-transient-0/output/rust/src/gen/data/transient_0.rs index c497b57..383a564 100644 --- a/examples/15-transient-0/output/rust/src/gen/data/transient_0.rs +++ b/examples/15-transient-0/output/rust/src/gen/data/transient_0.rs @@ -276,12 +276,14 @@ pub fn decode_struct_with_native(reader: &mut impl std::io::Read, shared_values: pub fn encode_struct_with_generic_native(value: &crate::data::StructWithGenericNative, writer: &mut impl std::io::Write, shared_values: &mut ::std::collections::HashMap::<::core::primitive::usize, ::core::primitive::i64>) -> ::std::io::Result::<()> { todo!(); + todo!(); ::std::io::Result::Ok(()) } pub fn decode_struct_with_generic_native(reader: &mut impl std::io::Read, shared_values: &mut ::std::vec::Vec::<::std::sync::Arc::<dyn ::std::any::Any + ::std::marker::Sync + ::std::marker::Send>>) -> ::std::io::Result::<crate::data::StructWithGenericNative> { let a = todo!(); - ::std::io::Result::Ok(crate::data::StructWithGenericNative { a: a }) + let b = todo!(); + ::std::io::Result::Ok(crate::data::StructWithGenericNative { a: a, b: b }) } pub fn encode_struct_with_box(value: &crate::data::StructWithBox, writer: &mut impl std::io::Write, shared_values: &mut ::std::collections::HashMap::<::core::primitive::usize, ::core::primitive::i64>) -> ::std::io::Result::<()> { |
