72ed45a77c
- remove `cargo-make` integration - rework CI pipeline more granular and precise - rework releasing process - tune up project layout - fill up new CHANGELOGs Additionally: - fix latest nightly/stable Rust inconsistencies
18 lines
253 B
Rust
18 lines
253 B
Rust
use juniper::{GraphQLObject, GraphQLUnion};
|
|
|
|
#[derive(GraphQLUnion)]
|
|
enum Character1 {
|
|
A { human: Human },
|
|
}
|
|
|
|
#[derive(GraphQLUnion)]
|
|
enum Character2 {
|
|
A(Human, u8),
|
|
}
|
|
|
|
#[derive(GraphQLObject)]
|
|
pub struct Human {
|
|
id: String,
|
|
}
|
|
|
|
fn main() {}
|