15 lines
172 B
Rust
15 lines
172 B
Rust
|
use juniper::{GraphQLEnum, GraphQLUnion};
|
||
|
|
||
|
#[derive(GraphQLEnum)]
|
||
|
pub enum Test {
|
||
|
A,
|
||
|
B,
|
||
|
}
|
||
|
|
||
|
#[derive(GraphQLUnion)]
|
||
|
enum Character {
|
||
|
Test(Test),
|
||
|
}
|
||
|
|
||
|
fn main() {}
|