pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(key: impl ToString) -> Self
pub fn update_from_ping(self, ping: Response<PingRequest>) -> Result<Self>
pub fn is_free(&self) -> bool
pub fn ping(&self) -> PingRequest
pub fn airlines(&self) -> AirlinesRequest
pub fn airports(&self) -> AirportsRequest
pub fn flight_iata(&self, code: impl ToString) -> FlightRequest
pub fn flight_icao(&self, code: impl ToString) -> FlightRequest
pub async fn send_ping(&self) -> Result<Response<PingRequest>>
pub async fn get<R>(&self, request: R) -> Result<Response<R>>where
R: AirLabsRequest,
pub async fn post<R>(&self, request: R) -> Result<Response<R>>where
R: AirLabsRequest,
pub fn get_request<R>(&self, request: R) -> RequestBuilderwhere
R: AirLabsRequest,
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