File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,13 @@ pub struct SubTaskStep<'t> {
65
65
66
66
/// An event emitted as JSON.
67
67
#[ derive( Debug , serde:: Serialize , serde:: Deserialize ) ]
68
- #[ serde( tag = "type" , rename_all = "camelCase" ) ]
68
+ #[ serde(
69
+ tag = "type" ,
70
+ rename_all = "PascalCase" ,
71
+ rename_all_fields = "camelCase"
72
+ ) ]
69
73
pub enum Event < ' t > {
70
74
/// An incremental update to a container image layer download
71
- #[ serde( rename_all = "camelCase" ) ]
72
75
ProgressBytes {
73
76
/// The version of the progress event format.
74
77
#[ serde( borrow) ]
@@ -101,7 +104,6 @@ pub enum Event<'t> {
101
104
subtasks : Vec < SubTaskBytes < ' t > > ,
102
105
} ,
103
106
/// An incremental update with discrete steps
104
- #[ serde( rename_all = "camelCase" ) ]
105
107
ProgressSteps {
106
108
/// The version of the progress event format.
107
109
#[ serde( borrow) ]
You can’t perform that action at this time.
0 commit comments