qweather_sdk/
lib.rs

1#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
2#![allow(rustdoc::invalid_html_tags)]
3#![allow(rustdoc::broken_intra_doc_links)]
4extern crate core;
5
6use crate::api::APIResponse;
7
8/// GEO API URL
9pub static GEO_API_URL: &str = "https://geoapi.qweather.com";
10
11/// 标准订阅 API URL
12pub static WEATHER_API_URL: &str = "https://api.qweather.com";
13
14/// 免费订阅 API URL
15pub static WEATHER_DEV_API_URL: &str = "https://devapi.qweather.com";
16
17pub mod api;
18pub mod client;
19
20pub type APIResult<T> = Result<APIResponse<T>, reqwest::Error>;