|
|
@ -4,6 +4,7 @@ macro_rules! methods { |
|
|
|
pub async fn $method<T: for<'de> serde::Deserialize<'de>>(&self, url: String) |
|
|
|
pub async fn $method<T: for<'de> serde::Deserialize<'de>>(&self, url: String) |
|
|
|
-> Result<T> |
|
|
|
-> Result<T> |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
log::trace!("{} {}", stringify!($method), url); |
|
|
|
let response = self.send( |
|
|
|
let response = self.send( |
|
|
|
self.http_client.$method(&url) |
|
|
|
self.http_client.$method(&url) |
|
|
|
).await?; |
|
|
|
).await?; |
|
|
|