pub fn generate_rust_graphql(schema: &str, target: &str) -> Result<String>Expand description
Generate Rust GraphQL code from a schema
Parses the GraphQL schema string and generates complete Rust code with async-graphql types, resolvers, and schema definition based on the target specification.
§Arguments
schema- GraphQL schema as a string (SDL format)target- Generation target: “all” (complete), “types” (types only), “resolvers” (Query/Mutation/Subscription), or “schema” (schema builder)
§Returns
Generated Rust code as a string, or an error if parsing/generation fails