@@ -2509,33 +2509,33 @@ impl Dog {
2509
2509
#[ derive( Debug , Clone , PartialEq , serde:: Serialize , serde:: Deserialize , validator:: Validate ) ]
2510
2510
#[ cfg_attr( feature = "conversion" , derive( frunk:: LabelledGeneric ) ) ]
2511
2511
#[ serde( rename = "$special[model.name]" ) ]
2512
- pub struct DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2512
+ pub struct DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2513
2513
#[ serde( rename = "$special[property.name]" ) ]
2514
2514
#[ serde( skip_serializing_if="Option::is_none" ) ]
2515
- pub dollar_special_left_square_bracket_property_period_name_right_square_bracket : Option < i64 > ,
2515
+ pub dollar_special_left_square_bracket_property_name_right_square_bracket : Option < i64 > ,
2516
2516
2517
2517
}
2518
2518
2519
2519
2520
- impl DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2520
+ impl DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2521
2521
#[ allow( clippy:: new_without_default) ]
2522
- pub fn new ( ) -> DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2523
- DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2524
- dollar_special_left_square_bracket_property_period_name_right_square_bracket : None ,
2522
+ pub fn new ( ) -> DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2523
+ DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2524
+ dollar_special_left_square_bracket_property_name_right_square_bracket : None ,
2525
2525
}
2526
2526
}
2527
2527
}
2528
2528
2529
- /// Converts the DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket value to the Query Parameters representation (style=form, explode=false)
2529
+ /// Converts the DollarSpecialLeftSquareBracketModelNameRightSquareBracket value to the Query Parameters representation (style=form, explode=false)
2530
2530
/// specified in https://swagger.io/docs/specification/serialization/
2531
2531
/// Should be implemented in a serde serializer
2532
- impl std:: string:: ToString for DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2532
+ impl std:: string:: ToString for DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2533
2533
fn to_string ( & self ) -> String {
2534
2534
let params: Vec < Option < String > > = vec ! [
2535
- self . dollar_special_left_square_bracket_property_period_name_right_square_bracket . as_ref( ) . map( |dollar_special_left_square_bracket_property_period_name_right_square_bracket | {
2535
+ self . dollar_special_left_square_bracket_property_name_right_square_bracket . as_ref( ) . map( |dollar_special_left_square_bracket_property_name_right_square_bracket | {
2536
2536
[
2537
2537
"$special[property.name]" . to_string( ) ,
2538
- dollar_special_left_square_bracket_property_period_name_right_square_bracket . to_string( ) ,
2538
+ dollar_special_left_square_bracket_property_name_right_square_bracket . to_string( ) ,
2539
2539
] . join( "," )
2540
2540
} ) ,
2541
2541
] ;
@@ -2544,18 +2544,18 @@ impl std::string::ToString for DollarSpecialLeftSquareBracketModelPeriodNameRigh
2544
2544
}
2545
2545
}
2546
2546
2547
- /// Converts Query Parameters representation (style=form, explode=false) to a DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket value
2547
+ /// Converts Query Parameters representation (style=form, explode=false) to a DollarSpecialLeftSquareBracketModelNameRightSquareBracket value
2548
2548
/// as specified in https://swagger.io/docs/specification/serialization/
2549
2549
/// Should be implemented in a serde deserializer
2550
- impl std:: str:: FromStr for DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2550
+ impl std:: str:: FromStr for DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2551
2551
type Err = String ;
2552
2552
2553
2553
fn from_str ( s : & str ) -> std:: result:: Result < Self , Self :: Err > {
2554
2554
/// An intermediate representation of the struct to use for parsing.
2555
2555
#[ derive( Default ) ]
2556
2556
#[ allow( dead_code) ]
2557
2557
struct IntermediateRep {
2558
- pub dollar_special_left_square_bracket_property_period_name_right_square_bracket : Vec < i64 > ,
2558
+ pub dollar_special_left_square_bracket_property_name_right_square_bracket : Vec < i64 > ,
2559
2559
}
2560
2560
2561
2561
let mut intermediate_rep = IntermediateRep :: default ( ) ;
@@ -2567,15 +2567,15 @@ impl std::str::FromStr for DollarSpecialLeftSquareBracketModelPeriodNameRightSqu
2567
2567
while key_result. is_some ( ) {
2568
2568
let val = match string_iter. next ( ) {
2569
2569
Some ( x) => x,
2570
- None => return std:: result:: Result :: Err ( "Missing value while parsing DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket " . to_string ( ) )
2570
+ None => return std:: result:: Result :: Err ( "Missing value while parsing DollarSpecialLeftSquareBracketModelNameRightSquareBracket " . to_string ( ) )
2571
2571
} ;
2572
2572
2573
2573
if let Some ( key) = key_result {
2574
2574
#[ allow( clippy:: match_single_binding) ]
2575
2575
match key {
2576
2576
#[ allow( clippy:: redundant_clone) ]
2577
- "$special[property.name]" => intermediate_rep. dollar_special_left_square_bracket_property_period_name_right_square_bracket . push ( <i64 as std:: str:: FromStr >:: from_str ( val) . map_err ( |x| x. to_string ( ) ) ?) ,
2578
- _ => return std:: result:: Result :: Err ( "Unexpected key while parsing DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket " . to_string ( ) )
2577
+ "$special[property.name]" => intermediate_rep. dollar_special_left_square_bracket_property_name_right_square_bracket . push ( <i64 as std:: str:: FromStr >:: from_str ( val) . map_err ( |x| x. to_string ( ) ) ?) ,
2578
+ _ => return std:: result:: Result :: Err ( "Unexpected key while parsing DollarSpecialLeftSquareBracketModelNameRightSquareBracket " . to_string ( ) )
2579
2579
}
2580
2580
}
2581
2581
@@ -2584,40 +2584,40 @@ impl std::str::FromStr for DollarSpecialLeftSquareBracketModelPeriodNameRightSqu
2584
2584
}
2585
2585
2586
2586
// Use the intermediate representation to return the struct
2587
- std:: result:: Result :: Ok ( DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2588
- dollar_special_left_square_bracket_property_period_name_right_square_bracket : intermediate_rep. dollar_special_left_square_bracket_property_period_name_right_square_bracket . into_iter ( ) . next ( ) ,
2587
+ std:: result:: Result :: Ok ( DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2588
+ dollar_special_left_square_bracket_property_name_right_square_bracket : intermediate_rep. dollar_special_left_square_bracket_property_name_right_square_bracket . into_iter ( ) . next ( ) ,
2589
2589
} )
2590
2590
}
2591
2591
}
2592
2592
2593
- // Methods for converting between header::IntoHeaderValue<DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > and hyper::header::HeaderValue
2593
+ // Methods for converting between header::IntoHeaderValue<DollarSpecialLeftSquareBracketModelNameRightSquareBracket > and hyper::header::HeaderValue
2594
2594
2595
2595
#[ cfg( any( feature = "client" , feature = "server" ) ) ]
2596
- impl std:: convert:: TryFrom < header:: IntoHeaderValue < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > > for hyper:: header:: HeaderValue {
2596
+ impl std:: convert:: TryFrom < header:: IntoHeaderValue < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > > for hyper:: header:: HeaderValue {
2597
2597
type Error = String ;
2598
2598
2599
- fn try_from ( hdr_value : header:: IntoHeaderValue < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > ) -> std:: result:: Result < Self , Self :: Error > {
2599
+ fn try_from ( hdr_value : header:: IntoHeaderValue < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > ) -> std:: result:: Result < Self , Self :: Error > {
2600
2600
let hdr_value = hdr_value. to_string ( ) ;
2601
2601
match hyper:: header:: HeaderValue :: from_str ( & hdr_value) {
2602
2602
std:: result:: Result :: Ok ( value) => std:: result:: Result :: Ok ( value) ,
2603
2603
std:: result:: Result :: Err ( e) => std:: result:: Result :: Err (
2604
- format ! ( "Invalid header value for DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket - value: {} is invalid {}" ,
2604
+ format ! ( "Invalid header value for DollarSpecialLeftSquareBracketModelNameRightSquareBracket - value: {} is invalid {}" ,
2605
2605
hdr_value, e) )
2606
2606
}
2607
2607
}
2608
2608
}
2609
2609
2610
2610
#[ cfg( any( feature = "client" , feature = "server" ) ) ]
2611
- impl std:: convert:: TryFrom < hyper:: header:: HeaderValue > for header:: IntoHeaderValue < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > {
2611
+ impl std:: convert:: TryFrom < hyper:: header:: HeaderValue > for header:: IntoHeaderValue < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > {
2612
2612
type Error = String ;
2613
2613
2614
2614
fn try_from ( hdr_value : hyper:: header:: HeaderValue ) -> std:: result:: Result < Self , Self :: Error > {
2615
2615
match hdr_value. to_str ( ) {
2616
2616
std:: result:: Result :: Ok ( value) => {
2617
- match <DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket as std:: str:: FromStr >:: from_str ( value) {
2617
+ match <DollarSpecialLeftSquareBracketModelNameRightSquareBracket as std:: str:: FromStr >:: from_str ( value) {
2618
2618
std:: result:: Result :: Ok ( value) => std:: result:: Result :: Ok ( header:: IntoHeaderValue ( value) ) ,
2619
2619
std:: result:: Result :: Err ( err) => std:: result:: Result :: Err (
2620
- format ! ( "Unable to convert header value '{}' into DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket - {}" ,
2620
+ format ! ( "Unable to convert header value '{}' into DollarSpecialLeftSquareBracketModelNameRightSquareBracket - {}" ,
2621
2621
value, err) )
2622
2622
}
2623
2623
} ,
@@ -2629,10 +2629,10 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
2629
2629
}
2630
2630
2631
2631
#[ cfg( feature = "server" ) ]
2632
- impl std:: convert:: TryFrom < header:: IntoHeaderValue < Vec < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > > > for hyper:: header:: HeaderValue {
2632
+ impl std:: convert:: TryFrom < header:: IntoHeaderValue < Vec < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > > > for hyper:: header:: HeaderValue {
2633
2633
type Error = String ;
2634
2634
2635
- fn try_from ( hdr_values : header:: IntoHeaderValue < Vec < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > > ) -> std:: result:: Result < Self , Self :: Error > {
2635
+ fn try_from ( hdr_values : header:: IntoHeaderValue < Vec < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > > ) -> std:: result:: Result < Self , Self :: Error > {
2636
2636
let hdr_values : Vec < String > = hdr_values. 0 . into_iter ( ) . map ( |hdr_value| {
2637
2637
hdr_value. to_string ( )
2638
2638
} ) . collect ( ) ;
@@ -2646,21 +2646,21 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<DollarSpecialLeftSquareBr
2646
2646
}
2647
2647
2648
2648
#[ cfg( feature = "server" ) ]
2649
- impl std:: convert:: TryFrom < hyper:: header:: HeaderValue > for header:: IntoHeaderValue < Vec < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > > {
2649
+ impl std:: convert:: TryFrom < hyper:: header:: HeaderValue > for header:: IntoHeaderValue < Vec < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > > {
2650
2650
type Error = String ;
2651
2651
2652
2652
fn try_from ( hdr_values : hyper:: header:: HeaderValue ) -> std:: result:: Result < Self , Self :: Error > {
2653
2653
match hdr_values. to_str ( ) {
2654
2654
std:: result:: Result :: Ok ( hdr_values) => {
2655
- let hdr_values : std:: vec:: Vec < DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket > = hdr_values
2655
+ let hdr_values : std:: vec:: Vec < DollarSpecialLeftSquareBracketModelNameRightSquareBracket > = hdr_values
2656
2656
. split ( ',' )
2657
2657
. filter_map ( |hdr_value| match hdr_value. trim ( ) {
2658
2658
"" => std:: option:: Option :: None ,
2659
2659
hdr_value => std:: option:: Option :: Some ( {
2660
- match <DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket as std:: str:: FromStr >:: from_str ( hdr_value) {
2660
+ match <DollarSpecialLeftSquareBracketModelNameRightSquareBracket as std:: str:: FromStr >:: from_str ( hdr_value) {
2661
2661
std:: result:: Result :: Ok ( value) => std:: result:: Result :: Ok ( value) ,
2662
2662
std:: result:: Result :: Err ( err) => std:: result:: Result :: Err (
2663
- format ! ( "Unable to convert header value '{}' into DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket - {}" ,
2663
+ format ! ( "Unable to convert header value '{}' into DollarSpecialLeftSquareBracketModelNameRightSquareBracket - {}" ,
2664
2664
hdr_value, err) )
2665
2665
}
2666
2666
} )
@@ -2674,7 +2674,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal
2674
2674
}
2675
2675
}
2676
2676
2677
- impl DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
2677
+ impl DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
2678
2678
/// Helper function to allow us to convert this model to an XML string.
2679
2679
/// Will panic if serialisation fails.
2680
2680
#[ allow( dead_code) ]
@@ -8445,16 +8445,16 @@ impl TestEnumParametersEnumHeaderStringParameter {
8445
8445
#[ cfg_attr( feature = "conversion" , derive( frunk_enum_derive:: LabelledGenericEnum ) ) ]
8446
8446
pub enum TestEnumParametersEnumQueryDoubleParameter {
8447
8447
#[ serde( rename = "1.1" ) ]
8448
- Variant1Period1 ,
8448
+ Variant11 ,
8449
8449
#[ serde( rename = "-1.2" ) ]
8450
- Variant1Period2 ,
8450
+ Variant12 ,
8451
8451
}
8452
8452
8453
8453
impl std:: fmt:: Display for TestEnumParametersEnumQueryDoubleParameter {
8454
8454
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
8455
8455
match * self {
8456
- TestEnumParametersEnumQueryDoubleParameter :: Variant1Period1 => write ! ( f, "1.1" ) ,
8457
- TestEnumParametersEnumQueryDoubleParameter :: Variant1Period2 => write ! ( f, "-1.2" ) ,
8456
+ TestEnumParametersEnumQueryDoubleParameter :: Variant11 => write ! ( f, "1.1" ) ,
8457
+ TestEnumParametersEnumQueryDoubleParameter :: Variant12 => write ! ( f, "-1.2" ) ,
8458
8458
}
8459
8459
}
8460
8460
}
@@ -8464,8 +8464,8 @@ impl std::str::FromStr for TestEnumParametersEnumQueryDoubleParameter {
8464
8464
8465
8465
fn from_str ( s : & str ) -> std:: result:: Result < Self , Self :: Err > {
8466
8466
match s {
8467
- "1.1" => std:: result:: Result :: Ok ( TestEnumParametersEnumQueryDoubleParameter :: Variant1Period1 ) ,
8468
- "-1.2" => std:: result:: Result :: Ok ( TestEnumParametersEnumQueryDoubleParameter :: Variant1Period2 ) ,
8467
+ "1.1" => std:: result:: Result :: Ok ( TestEnumParametersEnumQueryDoubleParameter :: Variant11 ) ,
8468
+ "-1.2" => std:: result:: Result :: Ok ( TestEnumParametersEnumQueryDoubleParameter :: Variant12 ) ,
8469
8469
_ => std:: result:: Result :: Err ( format ! ( "Value not valid: {}" , s) ) ,
8470
8470
}
8471
8471
}
0 commit comments