multi_structs/
example_generated.rs

1//! This module shows an example of code generated by the macro.
2//! **IT MUST NOT BE USED OUTSIDE THIS CRATE.**
3
4use std::string::String;
5
6multi_structs! {
7    /// This is the same `Merged` struct defined in
8    /// the [crate level example](../index.html#example).
9    #[derive(Debug)]
10    pub struct Merged {
11        /// Foo
12        #[derive(Debug)]
13        pub foo: struct Foo {
14            /// a
15            a: i32,
16            /// b
17            b: i64,
18        }
19        /// Bar
20        #[derive(Debug)]
21        pub bar: struct Bar {
22            /// c
23            c: usize,
24            /// d
25            d: String,
26        }
27    }
28}