Macro construct

Source
macro_rules! construct {
    ($($tt: tt)*) => { ... };
}
Expand description

A standard constructor that uses Into.

ยงSyntax

construct! {
    Student {
        name: "Timmy",
        age: 10,
        father : {
            name: "Tommy",
            age: 35,
        }
    }
}