cynic_codegen/use_schema/
params.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug)]
pub struct UseSchemaParams {
    pub schema_filename: String,
}

impl syn::parse::Parse for UseSchemaParams {
    fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> {
        let lit_str = input.parse::<syn::LitStr>()?;

        Ok(UseSchemaParams {
            schema_filename: lit_str.value(),
        })
    }
}