Derive Macro rhai::CustomType

source ·
#[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
}