pub trait ExecutableBuilder<TService, TRequest, TResponse>{
// Required methods
fn build(self) -> TRequest;
fn execute<'life0, 'async_trait>(
self,
service: &'life0 TService,
) -> Pin<Box<dyn Future<Output = SDKResult<TResponse>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,
'life0: 'async_trait;
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 TService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<TResponse>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn execute<'life0, 'async_trait>(
self,
service: &'life0 TService,
) -> Pin<Box<dyn Future<Output = SDKResult<TResponse>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 TService,
) -> Pin<Box<dyn Future<Output = SDKResult<TResponse>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Sourcefn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 TService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<TResponse>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 TService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<TResponse>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
带选项执行请求