Skip to main content

generate_from_schema_str

Function generate_from_schema_str 

Source
pub fn generate_from_schema_str(
    schema_yaml: &str,
) -> Result<String, Box<dyn Error>>
Expand description

Generate Rust types from a schema YAML string.

Like generate_from_schema but takes the schema content directly instead of reading from a file. Useful for testing.