implement request making
This commit is contained in:
parent
840c0b95df
commit
5743585a77
6 changed files with 77 additions and 11 deletions
|
|
@ -1,12 +1,14 @@
|
|||
pub mod status_code;
|
||||
|
||||
pub trait Request: Send + Sync + 'static + for<'de> serde::Deserialize<'de> {
|
||||
pub trait Request:
|
||||
Send + Sync + 'static + for<'de> serde::Deserialize<'de> + serde::Serialize
|
||||
{
|
||||
type Response: IsResponse;
|
||||
type Error: IsResponse;
|
||||
}
|
||||
|
||||
eva::trait_set! {
|
||||
pub trait IsResponse = status_code::HasStatusCode + serde::Serialize + Send + Sync + 'static;
|
||||
pub trait IsResponse = status_code::HasStatusCode + for<'de> serde::Deserialize<'de> + serde::Serialize + Send + Sync + 'static;
|
||||
}
|
||||
|
||||
macro_rules! impl_req {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue