pub struct NTTBApi { /* private fields */ }
Implementations§
Source§impl NTTBApi
impl NTTBApi
pub async fn event_get_info( &self, event_id: u64, ) -> APIResult<EventGetInfoResult>
pub async fn search_player<T: Into<String>>( &self, name: T, ) -> APIResult<SearchResult>
pub async fn get_info(&self, bondsnumber: u64) -> APIResult<Info>
pub async fn api_request<OutType: DeserializeOwned>( &self, request: ApiRequest, ) -> Result<OutType, APIRequestError>
pub async fn api_request_must_match<OutType: DeserializeOwned>( &self, request: ApiRequest, ) -> Result<OutType, APIRequestError>
pub async fn api_request_text( &self, request: ApiRequest, ) -> Result<String, APIRequestError>
pub fn guest() -> Result<Self, ApiCreationError>
Auto Trait Implementations§
impl Freeze for NTTBApi
impl !RefUnwindSafe for NTTBApi
impl Send for NTTBApi
impl Sync for NTTBApi
impl Unpin for NTTBApi
impl !UnwindSafe for NTTBApi
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