pub trait Request {
type Response: DeserializeOwned + Send + Sync + 'static;
// Required methods
fn method(&self) -> Method;
fn endpoint(&self) -> &str;
// Provided method
fn body(&self) -> Option<Value> { ... }
}pub trait Request {
type Response: DeserializeOwned + Send + Sync + 'static;
// Required methods
fn method(&self) -> Method;
fn endpoint(&self) -> &str;
// Provided method
fn body(&self) -> Option<Value> { ... }
}