15 lines
227 B
Rust
15 lines
227 B
Rust
|
use juniper::{graphql_interface, GraphQLObject};
|
||
|
|
||
|
#[derive(GraphQLObject)]
|
||
|
#[graphql(impl = CharacterValue)]
|
||
|
pub struct ObjA {
|
||
|
id: String,
|
||
|
}
|
||
|
|
||
|
#[graphql_interface]
|
||
|
trait Character {
|
||
|
fn id(&self) -> &str;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|