pub struct Client {
pub api_server: Url,
pub client: Client,
}
Fields§
§api_server: Url
§client: Client
Implementations§
Source§impl Client
impl Client
pub fn new(api_server: Url, private_token: &[u8]) -> Result<Client>
pub fn put_json<T>(&self, api_path: &str, message: &T) -> Result<Response>
pub fn post_json<T>(&self, api_path: &str, message: &T) -> Result<Response>
pub fn get_json<T>(&self, api_path: &str, message: &T) -> Result<Response>
pub fn put(&self, api_path: &str) -> Result<Response>
pub fn get(&self, api_path: &str) -> Result<Response>
pub fn get_paginated<'c>(&'c self, api_path: &'c str) -> Paginated<'_, ()> ⓘ
pub fn get_json_paginated<'c, T>( &'c self, api_path: &'c str, message: &'c T, ) -> Paginated<'_, T> ⓘ
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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