pub async fn post<B, R>(&self, url: Url, body: &B) -> Result<R>
    where
        B: Serialize,
        R: for<'de> Deserialize<'de>,
    {
        self.request(|| build_post_request(&url, body), Response::json)
            .await
    }
/// Make a post request to the endpoint.
/// Expects the response to be a json object
///
/// See: [request](AuthorizedClient::request) for more info
Make a post request to the endpoint.
Expects the response to be a json object

[request](AuthorizedClient::request) for more info
Make a post request to the endpoint . Expects the response to be a json object [ request ] ( AuthorizedClient :: request ) for more info
pub async fn post<B, R>(&self, url: Url, body: &B) -> Result<R>
    where
        B: Serialize,
        R: for<'de> Deserialize<'de>,
    {
        self.request(|| build_post_request(&url, body), Response::json)
            .await
    }
pub async fn post < B , R > ( & self , url : Url , body : & B ) -> Result < R > where B : Serialize , R : for < ' de > Deserialize < ' de > , { self . request ( | | build_post_request ( & url , body ) , Response :: json ) . await }
Make a post request to the endpoint.
Make a post request to the endpoint .
&self
url
Url
body
&B
&self
url
Url
body
&B