Open miaomiao1992 opened 10 months ago
this is my proto:
syntax = "proto3";
message GetRequest { string name = 1; int32 age = 2; repeated string features = 3; }
this is my rs files: let req = GetRequest { name: Cow::Borrowed("name1"), age: 11, features: vec![Cow::Borrowed("features 1")], };
if wo have a builder, we can
let req=GetRequestBuilder::default() .name("name1") .age(11) .features(&["features 1"]) .build();
Is this easier?
this is my proto:
syntax = "proto3";
message GetRequest { string name = 1; int32 age = 2; repeated string features = 3; }
this is my rs files: let req = GetRequest { name: Cow::Borrowed("name1"), age: 11, features: vec![Cow::Borrowed("features 1")], };
if wo have a builder, we can
let req=GetRequestBuilder::default() .name("name1") .age(11) .features(&["features 1"]) .build();
Is this easier?