Skip to content

Allow pilota.rust_type annotation work on container type #125

@Millione

Description

@Millione

Feature Request

Motivation

Right now in pilota, when I wrote like this:

struct A {
  1: required map<i32, string> m,
}

It will generate:

pub struct A {
  pub m: ::std::collections::HashMap<i32, ::pilota::FastStr>,
}

And there is no other way to generate code like followings as pilota.rust_type annotation cannot work on container type.

pub struct A {
  pub m: ::std::collections::HashMap<i32, String>,
}

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