Add serde serialization/deserialization attributes to app_proto and general_proto types
This commit is contained in:
parent
e434b70a57
commit
cf0c9a2c0d
20
build.rs
20
build.rs
@ -7,11 +7,27 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
"#[derive(serde::Serialize, serde::Deserialize)]",
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
)
|
)
|
||||||
.type_attribute(
|
.type_attribute(
|
||||||
".vm_proto.InspectOperatorResp",
|
".app_proto.MappedPort",
|
||||||
"#[derive(serde::Serialize, serde::Deserialize)]",
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
)
|
)
|
||||||
.type_attribute(
|
.type_attribute(
|
||||||
".vm_proto.ListOperatorsResp",
|
".app_proto.AppResource",
|
||||||
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
|
)
|
||||||
|
.type_attribute(
|
||||||
|
".app_proto.AppContract",
|
||||||
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
|
)
|
||||||
|
.type_attribute(
|
||||||
|
".app_proto.AppNodeListResp",
|
||||||
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
|
)
|
||||||
|
.type_attribute(
|
||||||
|
".general_proto.ListOperatorsResp",
|
||||||
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
|
)
|
||||||
|
.type_attribute(
|
||||||
|
".general_proto.InspectOperatorResp",
|
||||||
"#[derive(serde::Serialize, serde::Deserialize)]",
|
"#[derive(serde::Serialize, serde::Deserialize)]",
|
||||||
)
|
)
|
||||||
.type_attribute(
|
.type_attribute(
|
||||||
|
Loading…
Reference in New Issue
Block a user