d0b56f9222
- support `#[graphql_interface]` on structs
14 lines
241 B
Rust
14 lines
241 B
Rust
use juniper::{graphql_interface, GraphQLObject};
|
|
|
|
#[derive(GraphQLObject)]
|
|
#[graphql(impl = CharacterValue)]
|
|
pub struct ObjA {
|
|
test: String,
|
|
}
|
|
|
|
#[graphql_interface(for = ObjA)]
|
|
trait Character {
|
|
fn id(&self) -> &str;
|
|
}
|
|
|
|
fn main() {}
|