d0b56f9222
- support `#[graphql_interface]` on structs
11 lines
170 B
Rust
11 lines
170 B
Rust
use juniper::graphql_interface;
|
|
|
|
#[graphql_interface]
|
|
trait Character {
|
|
fn id(&self) -> &str;
|
|
|
|
#[graphql(name = "id")]
|
|
fn id2(&self) -> &str;
|
|
}
|
|
|
|
fn main() {}
|