pub trait Requester: Send + Sync {
type Body: From<String> = Body;
// Required methods
fn raw_req<'life0, 'life1, 'async_trait, T, V>(
&'life0 self,
url: EndPoints,
query: Option<&'life1 T>,
body: Option<V>
) -> Pin<Box<dyn Future<Output = Result<String, GithubRestError>> + Send + 'async_trait>>
where T: Serialize + ?Sized + Send + Sync + 'async_trait,
V: Into<Self::Body> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn req<'life0, 'life1, 'async_trait, T, V, A>(
&'life0 self,
url: EndPoints,
query: Option<&'life1 T>,
body: Option<V>
) -> Pin<Box<dyn Future<Output = Result<A, GithubRestError>> + Send + 'async_trait>>
where T: Serialize + ?Sized + Send + Sync + 'async_trait,
V: Into<Self::Body> + Send + 'async_trait,
A: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}