pub struct Client { /* private fields */ }
Expand description
Implementations§
Source§impl Client
impl Client
Sourcepub fn api_version(&self) -> String
pub fn api_version(&self) -> String
Get the version of The Orange Alliance API that this crate is using. This method takes no arguments and returns the version as a String.
§Panics
This method can panic in three ways:
- The HTTP request to the API fails. This can be because the API is either down or you are being ratelimited.
- Serde cannot properly deserialize the JSON data in the response. This happens because the API has sent invalid JSON.
- The HashMap does not have the needed keys to process the data. This happens because the request was made to the wrong target or the API has sent back an error in JSON form.
Trait Implementations§
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