latchlm-macros 0.1.0

Macros for LatchLM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(unused)]

use latchlm_core::AiModel;
use latchlm_macros::AiModel;

#[derive(AiModel)]
enum Model {
    #[model(id = "variant-1", name = "V1")]
    Variant1,
    #[model(id = "variant-2", name = "V2")]
    Variant2,
}

fn main() {
    Model::Variant1.as_ref();
}