added ApiSelectionResponse trait
This commit is contained in:
parent
e93b3529cb
commit
dc176a4c60
4 changed files with 13 additions and 3 deletions
|
|
@ -111,8 +111,12 @@ impl ApiResponse {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait ApiSelectionResponse: Send + Sync + From<ApiResponse> + 'static {
|
||||
fn into_inner(self) -> ApiResponse;
|
||||
}
|
||||
|
||||
pub trait ApiSelection: Send + Sync + 'static {
|
||||
type Response: From<ApiResponse> + Send + Sync;
|
||||
type Response: ApiSelectionResponse;
|
||||
|
||||
fn raw_value(self) -> &'static str;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue