@@ -1038,7 +1038,7 @@ struct VmSysCompleteAwakeableParameters {
10381038
10391039/// Combined success/failure union used by awakeable, promise, write_output, signal.
10401040#[ derive( Deserialize ) ]
1041- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1041+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
10421042enum NonEmptyValueParam {
10431043 Success {
10441044 #[ serde( with = "serde_bytes" ) ]
@@ -1142,7 +1142,7 @@ struct VmProposeRunCompletionParameters {
11421142}
11431143
11441144#[ derive( Deserialize ) ]
1145- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1145+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
11461146enum RunResult {
11471147 Success {
11481148 #[ serde( with = "serde_bytes" ) ]
@@ -1194,7 +1194,7 @@ struct VmSysWriteOutputParameters {
11941194// Each return type has a `from_err` helper matching Go's `.into()` from Failure conversions.
11951195
11961196#[ derive( Serialize ) ]
1197- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1197+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
11981198enum VmNewReturn {
11991199 Ok { pointer : u32 } ,
12001200 Failure { code : u32 , message : String } ,
@@ -1210,22 +1210,22 @@ impl VmNewReturn {
12101210
12111211/// Equivalent to Go's GenericEmptyReturn.
12121212#[ derive( Serialize ) ]
1213- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1213+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
12141214enum EmptyReturn {
12151215 Ok ,
12161216 Failure { code : u32 , message : String } ,
12171217}
12181218
12191219/// Equivalent to Go's SimpleSysAsyncResultReturn.
12201220#[ derive( Serialize ) ]
1221- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1221+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
12221222enum HandleReturn {
12231223 Ok { handle : u32 } ,
12241224 Failure { code : u32 , message : String } ,
12251225}
12261226
12271227#[ derive( Serialize ) ]
1228- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1228+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
12291229enum TakeOutputReturn {
12301230 Buffer {
12311231 #[ serde( with = "serde_bytes" ) ]
@@ -1235,7 +1235,7 @@ enum TakeOutputReturn {
12351235}
12361236
12371237#[ derive( Serialize ) ]
1238- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1238+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
12391239enum IsReadyReturn {
12401240 Ok { ready : bool } ,
12411241 Failure { code : u32 , message : String } ,
@@ -1258,7 +1258,7 @@ struct ResponseHeadReturn {
12581258}
12591259
12601260#[ derive( Serialize ) ]
1261- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1261+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
12621262enum DoProgressReturn {
12631263 AnyCompleted ,
12641264 WaitingExternalProgress ,
@@ -1278,7 +1278,7 @@ impl DoProgressReturn {
12781278
12791279/// Notification value (the payload of a completed handle).
12801280#[ derive( Serialize ) ]
1281- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1281+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
12821282enum NotificationValue {
12831283 Void ,
12841284 Success {
@@ -1313,7 +1313,7 @@ impl From<Value> for NotificationValue {
13131313}
13141314
13151315#[ derive( Serialize ) ]
1316- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1316+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
13171317enum TakeNotificationReturn {
13181318 NotReady ,
13191319 Value { value : NotificationValue } ,
@@ -1342,7 +1342,7 @@ struct WasmInput {
13421342}
13431343
13441344#[ derive( Serialize ) ]
1345- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1345+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
13461346enum SysInputReturn {
13471347 Ok { input : WasmInput } ,
13481348 Failure { code : u32 , message : String } ,
@@ -1357,7 +1357,7 @@ impl SysInputReturn {
13571357}
13581358
13591359#[ derive( Serialize ) ]
1360- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1360+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
13611361enum AwakeableReturn {
13621362 Ok { id : String , handle : u32 } ,
13631363 Failure { code : u32 , message : String } ,
@@ -1372,7 +1372,7 @@ impl AwakeableReturn {
13721372}
13731373
13741374#[ derive( Serialize ) ]
1375- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
1375+ #[ serde( tag = "type" , rename_all = "camelCase" , rename_all_fields = "camelCase" ) ]
13761376enum SysCallReturn {
13771377 Ok {
13781378 invocation_id_handle : u32 ,
0 commit comments