Skip to main content

generate_command

Function generate_command 

Source
pub fn generate_command(
    schema_path: &PathBuf,
    options: GenerateOptions,
) -> Result<()>
Expand description

Parse, validate, and if successful generate client code for the given schema.

options.standalone (Rust provider only): also write a Cargo.toml for the output crate. When false (default) the code is written without a Cargo.toml so it can be included directly in an existing Cargo workspace.