juniper/integration_tests/codegen_fail/fail/scalar_value/missing_attributes.rs

14 lines
257 B
Rust
Raw Normal View History

use juniper::ScalarValue;
#[derive(Clone, Debug, PartialEq, ScalarValue)]
pub enum DefaultScalarValue {
Int(i32),
Float(f64),
#[value(as_str, as_string, into_string)]
String(String),
#[value(as_bool)]
Boolean(bool),
}
fn main() {}