pub fn generate(config: Configuration) -> Result<(), ConvexTypeGeneratorError>
Expand description
Generates Rust types from Convex schema and function definitions.
§Arguments
config
- Configuration options for the type generation process
§Returns
Ok(())
if type generation succeedsErr(ConvexTypeGeneratorError)
if an error occurs during generation
§Errors
This function can fail for several reasons:
- Schema file not found
- Invalid schema structure
- IO errors when reading/writing files
- Parse errors in schema or function files