Skip to content

Models often use Option<Box<...>> #6

@jannic

Description

@jannic

Types representing requests or response data often use types like Option<Box<String>>. For example:
https://github.com/fastly/fastly-rust/blob/release/v1.1.0/src/models/version_create_response.rs#L16

What's the reason for using a Box here? It seems unnecessary and leads to clumsy code handling those data structures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions