15 lines
185 B
Rust
15 lines
185 B
Rust
|
use juniper::{graphql_union, GraphQLEnum};
|
||
|
|
||
|
#[derive(GraphQLEnum)]
|
||
|
pub enum Test {
|
||
|
A,
|
||
|
B,
|
||
|
}
|
||
|
|
||
|
#[graphql_union]
|
||
|
trait Character {
|
||
|
fn a(&self) -> Option<&Test>;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|