Skip to content

How to use map_type with the import_types macro? #834

@vadimcn

Description

@vadimcn

Both of these produce an error "invalid type: string "::indexmap::IndexMap", expected a borrowed string"

typify::import_types!(schema = "schema.json", map_type = "::indexmap::IndexMap");
typify::import_types!(schema = "schema.json", map_type = ::indexmap::IndexMap);

Is there a way to override map type while using the macro?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions