juniper/integration_tests/codegen_fail/fail/interface/trait/missing_field.rs
2022-04-01 21:10:45 +03:00

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() {}