@@ -29,7 +29,7 @@ impl {{{classname}}}Client {
29
29
{ {#-first} }
30
30
/// struct for passing parameters to the method `{ {operationId} }`
31
31
#[derive(Clone, Debug)]
32
- pub struct { {{classname } }} { {{ operationIdCamelCase} }}Params {
32
+ pub struct { {{operationIdCamelCase} }}Params {
33
33
{{/-first} }
34
34
{ {#description} }
35
35
/// { {{.} }}
@@ -49,7 +49,7 @@ pub trait {{{classname}}} {
49
49
{{#operations} }
50
50
{ {#operation} }
51
51
{ {#vendorExtensions.x-group-parameters} }
52
- fn { {{operationId} }}(&self{ {#allParams} }{ {#-first} }, params: { {{classname } }} { {{ operationIdCamelCase} }}Params{ {/-first} }{ {/allParams} }) -> Result<{ {^returnType} }(){ {/returnType} }{ {#returnType} }{ {{returnType} }}{ {/returnType} }, Error>;
52
+ fn { {{operationId} }}(&self{ {#allParams} }{ {#-first} }, params: { {{operationIdCamelCase} }}Params{ {/-first} }{ {/allParams} }) -> Result<{ {^returnType} }(){ {/returnType} }{ {#returnType} }{ {{returnType} }}{ {/returnType} }, Error>;
53
53
{ {/vendorExtensions.x-group-parameters} }
54
54
{ {^vendorExtensions.x-group-parameters} }
55
55
fn { {{operationId} }}(&self, { {#allParams} }{ {{paramName} }}: { {^required} }Option<{ {/required} }{ {#required} }{ {#isNullable} }Option<{ {/isNullable} }{ {/required} }{ {#isString} }&str{ {/isString} }{ {#isUuid} }&str{ {/isUuid} }{ {^isString} }{ {^isUuid} }{ {^isPrimitiveType} }{ {^isContainer} }crate::models::{ {/isContainer} }{ {/isPrimitiveType} }{ {{dataType} }}{ {/isUuid} }{ {/isString} }{ {^required} }>{ {/required} }{ {#required} }{ {#isNullable} }>{ {/isNullable} }{ {/required} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} }) -> Result<{ {^returnType} }(){ {/returnType} }{ {#returnType} }{ {{returnType} }}{ {/returnType} }, Error>;
@@ -63,7 +63,7 @@ impl {{{classname}}} for {{{classname}}}Client {
63
63
{ {#operations} }
64
64
{ {#operation} }
65
65
{ {#vendorExtensions.x-group-parameters} }
66
- { {#supportAsync} }pub async { {/supportAsync} }fn { {{operationId} }}({ {^supportAsync} }&self{ {/supportAsync} }{ {#supportAsync} }configuration: &configuration::Configuration{ {/supportAsync} }{ {#allParams} }{ {#-first} }, params: { {{classname } }} { {{ operationIdCamelCase} }}Params{ {/-first} }{ {/allParams} }) -> Result<{ {^returnType} }(){ {/returnType} }{ {#returnType} }{ {{returnType} }}{ {/returnType} }, Error> {
66
+ { {#supportAsync} }pub async { {/supportAsync} }fn { {{operationId} }}({ {^supportAsync} }&self{ {/supportAsync} }{ {#supportAsync} }configuration: &configuration::Configuration{ {/supportAsync} }{ {#allParams} }{ {#-first} }, params: { {{operationIdCamelCase} }}Params{ {/-first} }{ {/allParams} }) -> Result<{ {^returnType} }(){ {/returnType} }{ {#returnType} }{ {{returnType} }}{ {/returnType} }, Error> {
67
67
// unbox the parameters
68
68
{{#allParams} }
69
69
let { {paramName} } = params.{ {paramName} };
0 commit comments