1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Typed client crate for the documented X-Plane local web API.
//!
//! - REST API: generated from OpenAPI at build time with Progenitor.
//! - WebSocket API: typed request/response models and a small async client.
//! - CLI: optional command-line interface for REST operations.
//! - Error: shared typed REST error classification helpers.
//!
//! # Basic REST Example
//!
//! ```rust
//! use xplane_web_api::error::RestClientError;
//! use xplane_web_api::rest::{Client, DEFAULT_REST_API_BASE_URL};
//!
//! async fn fetch_capabilities() -> Result<(), RestClientError> {
//! let client = Client::new(DEFAULT_REST_API_BASE_URL);
//! let response = client
//! .get_capabilities()
//! .await
//! .map_err(RestClientError::from)?;
//!
//! println!("{:#?}", response.as_ref());
//! Ok(())
//! }
//! ```
/// Generated REST client and OpenAPI-derived request/response types.
/// Shared REST error classification helpers for generated client operations.
/// Typed websocket request/response models and an async convenience client.