pub trait CaseService:
Debug
+ Send
+ Sync {
// Provided methods
fn get_case(
&self,
_req: GetCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send { ... }
fn list_cases(
&self,
_req: ListCasesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListCasesResponse>>> + Send { ... }
fn search_cases(
&self,
_req: SearchCasesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<SearchCasesResponse>>> + Send { ... }
fn create_case(
&self,
_req: CreateCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send { ... }
fn update_case(
&self,
_req: UpdateCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send { ... }
fn escalate_case(
&self,
_req: EscalateCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send { ... }
fn close_case(
&self,
_req: CloseCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send { ... }
fn search_case_classifications(
&self,
_req: SearchCaseClassificationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<SearchCaseClassificationsResponse>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::CaseService.
Application developers may need to implement this trait to mock
client::CaseService. In other use-cases, application developers only
use client::CaseService and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn get_case(
&self,
_req: GetCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send
fn get_case( &self, _req: GetCaseRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Case>>> + Send
Implements super::client::CaseService::get_case.
Sourcefn list_cases(
&self,
_req: ListCasesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListCasesResponse>>> + Send
fn list_cases( &self, _req: ListCasesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListCasesResponse>>> + Send
Implements super::client::CaseService::list_cases.
Sourcefn search_cases(
&self,
_req: SearchCasesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<SearchCasesResponse>>> + Send
fn search_cases( &self, _req: SearchCasesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchCasesResponse>>> + Send
Implements super::client::CaseService::search_cases.
Sourcefn create_case(
&self,
_req: CreateCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send
fn create_case( &self, _req: CreateCaseRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Case>>> + Send
Implements super::client::CaseService::create_case.
Sourcefn update_case(
&self,
_req: UpdateCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send
fn update_case( &self, _req: UpdateCaseRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Case>>> + Send
Implements super::client::CaseService::update_case.
Sourcefn escalate_case(
&self,
_req: EscalateCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send
fn escalate_case( &self, _req: EscalateCaseRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Case>>> + Send
Implements super::client::CaseService::escalate_case.
Sourcefn close_case(
&self,
_req: CloseCaseRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Case>>> + Send
fn close_case( &self, _req: CloseCaseRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Case>>> + Send
Implements super::client::CaseService::close_case.
Sourcefn search_case_classifications(
&self,
_req: SearchCaseClassificationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<SearchCaseClassificationsResponse>>> + Send
fn search_case_classifications( &self, _req: SearchCaseClassificationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchCaseClassificationsResponse>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.