pub struct FlightRadarClient { /* private fields */ }Expand description
Main structure for storing API internal data
Implementations§
Source§impl FlightRadarClient
impl FlightRadarClient
pub fn update_base_url(&mut self, base_url: String)
Sourcepub fn check_live_parameters(query_in: &FullLiveFlightQuery) -> bool
pub fn check_live_parameters(query_in: &FullLiveFlightQuery) -> bool
pub fn check_historic_parameters(query_in: &FullLiveFlightQuery) -> bool
Sourcepub fn query_endpoint(&self, url: String) -> Result<String, FlightRadarError>
pub fn query_endpoint(&self, url: String) -> Result<String, FlightRadarError>
Sourcepub fn get_airline_by_icao(
&self,
icao: &str,
) -> Result<Airline, FlightRadarError>
pub fn get_airline_by_icao( &self, icao: &str, ) -> Result<Airline, FlightRadarError>
Sourcepub fn get_airport_by_code(
&self,
code: &str,
) -> Result<Airport, FlightRadarError>
pub fn get_airport_by_code( &self, code: &str, ) -> Result<Airport, FlightRadarError>
Sourcepub fn get_airport_lite_by_code(
&self,
code: &str,
) -> Result<AirportLite, FlightRadarError>
pub fn get_airport_lite_by_code( &self, code: &str, ) -> Result<AirportLite, FlightRadarError>
Sourcepub fn get_live_flight(
&self,
other_queries: Option<&FullLiveFlightQuery>,
) -> Result<FullLiveFlightResponse, FlightRadarError>
pub fn get_live_flight( &self, other_queries: Option<&FullLiveFlightQuery>, ) -> Result<FullLiveFlightResponse, FlightRadarError>
Sourcepub fn get_live_flight_light(
&self,
other_queries: Option<&FullLiveFlightQuery>,
) -> Result<LightLiveFlightResponse, FlightRadarError>
pub fn get_live_flight_light( &self, other_queries: Option<&FullLiveFlightQuery>, ) -> Result<LightLiveFlightResponse, FlightRadarError>
Sourcepub fn get_historic_flight(
&self,
timestamp: &u64,
other_queries: Option<&FullLiveFlightQuery>,
) -> Result<FullLiveFlightResponse, FlightRadarError>
pub fn get_historic_flight( &self, timestamp: &u64, other_queries: Option<&FullLiveFlightQuery>, ) -> Result<FullLiveFlightResponse, FlightRadarError>
Sourcepub fn get_historic_flight_light(
&self,
timestamp: &u64,
other_queries: Option<&FullLiveFlightQuery>,
) -> Result<LightLiveFlightResponse, FlightRadarError>
pub fn get_historic_flight_light( &self, timestamp: &u64, other_queries: Option<&FullLiveFlightQuery>, ) -> Result<LightLiveFlightResponse, FlightRadarError>
Sourcepub fn get_flight_tracks_by_id(
&self,
flight_id: &str,
) -> Result<Vec<Flight>, FlightRadarError>
pub fn get_flight_tracks_by_id( &self, flight_id: &str, ) -> Result<Vec<Flight>, FlightRadarError>
Sourcepub fn get_api_usage(
&self,
period: &str,
) -> Result<ApiUsageResponse, FlightRadarError>
pub fn get_api_usage( &self, period: &str, ) -> Result<ApiUsageResponse, FlightRadarError>
Auto Trait Implementations§
impl Freeze for FlightRadarClient
impl !RefUnwindSafe for FlightRadarClient
impl Send for FlightRadarClient
impl Sync for FlightRadarClient
impl Unpin for FlightRadarClient
impl UnsafeUnpin for FlightRadarClient
impl !UnwindSafe for FlightRadarClient
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