1 2 3 4 5 6 7 8 9 10
use gdnative::prelude::*; #[derive(FromVariant)] pub struct Foo { // the path to the function must be wrapped in double quotes (a string) #[variant(from_variant_with = path)] bar: String, } fn main() {}