Trait hko::Fetch

source ·
pub trait Fetch: Sized {
    // Required method
    fn fetch(lang: Lang) -> impl Future<Output = Result<Self>> + Send;
}
Expand description

Helper trait to fetch data from API.

Required Methods§

source

fn fetch(lang: Lang) -> impl Future<Output = Result<Self>> + Send

Fetch function for API.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Fetch for T
where T: API + DeserializeOwned,