Skip lifetime in rust sdk
newer rust started stripping unnecessary lifetime - no sense to generate it. Change-Id: I4c043ae23e3b66b71e6a57e6485cf3f946d065ff
This commit is contained in:
parent
db142b81c1
commit
84db415a8f
@ -153,7 +153,7 @@ impl{{ type_manager.get_request_static_lifetimes(request) }} RequestBuilder{{ ty
|
||||
{%- endif %}
|
||||
}
|
||||
|
||||
impl{{ type_manager.get_request_static_lifetimes(request) }} RestEndpoint for Request{{ type_manager.get_request_static_lifetimes(request) }} {
|
||||
impl RestEndpoint for Request{{ "<'_>" if type_manager.get_request_static_lifetimes(request) else ""}} {
|
||||
fn method(&self) -> http::Method {
|
||||
http::Method::{{ method | upper }}
|
||||
}
|
||||
@ -288,7 +288,7 @@ impl{{ type_manager.get_request_static_lifetimes(request) }} RestEndpoint for Re
|
||||
|
||||
{#- EP is pageable if operation_type is list and there is limit or marker query parameter #}
|
||||
{%- if operation_type == "list" and "limit" in type_manager.parameters.keys() or "marker" in type_manager.parameters.keys() %}
|
||||
impl{{ type_manager.get_request_static_lifetimes(request) }} Pageable for Request{{ type_manager.get_request_static_lifetimes(request) }} {
|
||||
impl Pageable for Request{{ "<'_>" if type_manager.get_request_static_lifetimes(request) else "" }} {
|
||||
{%- if sdk_service_name == "ObjectStore" %}
|
||||
fn use_keyset_pagination(&self) -> bool { false }
|
||||
{%- endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user