Derive Macro CustomType
#[derive(CustomType)]
{
    // Attributes available to this derive:
    #[rhai_type]
}
Expand description
Macro to implement the [CustomType][rhai::CustomType] trait.
ยงUsage
use rhai::{CustomType, TypeBuilder};
#[derive(Clone, CustomType)]
struct MyType {
    foo: i64,
    bar: bool,
    baz: String
}