implement request making

This commit is contained in:
Aleksandr 2025-10-06 01:36:36 +03:00
parent 840c0b95df
commit 5743585a77
6 changed files with 77 additions and 11 deletions

View file

@ -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 {