Function hko::fetch

source ยท
pub async fn fetch<T>(lang: Lang) -> Result<T>
where T: Fetch,
Expand description

Helper function to fetch data from API.

You may found connection error from reqwest, because this crate has not import any dependency feature providing TLS/HTTPS connection function. Add your favorite TLS implementation to your Cargo.toml to fix this problem. See the documentation of reqwest for more information.