pib_client/client/requests/me/profile/
patch.rs1use http_request_derive_client_reqwest::ReqwestClientError;
7use pib_client_requests::me::profile::patch::Request;
8use pib_service_api_types::me::profile::{get::ResponseBody, patch::RequestBody};
9
10use crate::{Authorization, Client};
11
12impl Client {
13 pub async fn me_profile_patch<A: Authorization + Sync>(
14 &self,
15 authorization: A,
16 payload: RequestBody,
17 ) -> Result<ResponseBody, ReqwestClientError> {
18 Ok(self
19 .execute_authorized(Request { payload }, authorization)
20 .await?
21 .0)
22 }
23}