@@ -74,7 +74,7 @@ pub struct S3ConnectionSpec {
7474 /// region name nearest to where the client application is running from.
7575 ///
7676 /// This defaults to us-east-1, and can be ignored if not using AWS S3.
77- #[ serde( flatten ) ]
77+ #[ serde( default ) ]
7878 pub region : AwsRegion ,
7979
8080 /// Which access style to use.
@@ -107,8 +107,8 @@ pub enum S3AccessStyle {
107107 VirtualHosted ,
108108}
109109
110- #[ derive( strum :: Display , Clone , Debug , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
111- #[ strum ( serialize_all = "snake_case " ) ]
110+ #[ derive( Clone , Debug , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
111+ #[ serde ( rename_all = "camelCase " ) ]
112112pub enum AwsRegion {
113113 /// Defer region detection to an auto-discovery mechanism.
114114 Source ( AwsRegionAutoDiscovery ) ,
@@ -136,8 +136,8 @@ impl Default for AwsRegion {
136136 }
137137}
138138
139- #[ derive( strum :: Display , Clone , Debug , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
140- #[ strum ( serialize_all = "kebab-case " ) ]
139+ #[ derive( Clone , Debug , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
140+ #[ serde ( rename_all = "PascalCase " ) ]
141141pub enum AwsRegionAutoDiscovery {
142142 /// AWS Instance Meta Data Service.
143143 ///
0 commit comments