Skip to main content

generate_with_domain_style

Function generate_with_domain_style 

Source
pub fn generate_with_domain_style(
    schema_info: &SchemaInfo,
    db_kind: DatabaseKind,
    extra_derives: &[String],
    type_overrides: &HashMap<String, String>,
    single_file: bool,
    time_crate: TimeCrate,
    domain_style: DomainStyle,
) -> Result<Vec<GeneratedFile>>
Expand description

Same as generate but lets the caller pick how Postgres domains are rendered (alias vs newtype).