14 lines
195 B
Rust
14 lines
195 B
Rust
|
use juniper::graphql_interface;
|
||
|
|
||
|
#[graphql_interface]
|
||
|
trait Character {
|
||
|
fn id(&self) -> &str;
|
||
|
|
||
|
#[graphql(ignore)]
|
||
|
fn id2(&self) -> &str {
|
||
|
self.self.id()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|