pub struct ApiClient { /* private fields */ }Implementations§
source§impl ApiClient
impl ApiClient
pub async fn get_users_me(&self) -> Result<UserMeResponse, ApiError>
source§impl ApiClient
impl ApiClient
pub fn new(base_url: String) -> Result<Self, Error>
pub async fn send_request<T: for<'de> Deserialize<'de>>( &self, method: Method, path: &str, body: Option<impl Serialize>, ) -> Result<T, ApiError>
pub fn get_route(&self, path: &str) -> String
pub fn get_api_route(&self, path: &str) -> String
Auto Trait Implementations§
impl Freeze for ApiClient
impl !RefUnwindSafe for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl !UnwindSafe for ApiClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more