{{~#if operation.security ~}} use argentum_rest_infrastructure::data_type::AuthHeaderParams; {{else}} use argentum_rest_infrastructure::data_type::EmptyHeaderParams; {{/if}} use argentum_rest_infrastructure::data_type::{EmptyQueryParams, HttpParams}; use crate::dto::path_params::{{upper_camel operation.operationId }}PathParams; pub struct {{upper_camel operation.operationId }}Params { pub headers: {{#if operation.security }}AuthHeaderParams{{else}}EmptyHeaderParams{{/if}}, pub path: {{upper_camel operation.operationId }}PathParams, pub query: EmptyQueryParams, } impl HttpParams for {{upper_camel operation.operationId }}Params { type Headers = {{#if operation.security }}AuthHeaderParams{{else}}EmptyHeaderParams{{/if}}; type Path = {{upper_camel operation.operationId }}PathParams; type Query = EmptyQueryParams; fn new(path: Self::Path, query: Self::Query, headers: Self::Headers) -> Self { Self { path, query, headers } } fn path(&self) -> &Self::Path { &self.path } fn query(&self) -> &Self::Query { &self.query } fn headers(&self) -> &Self::Headers { &self.headers } }