Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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