pub trait ApiResponse<T> {
    // Required methods
    fn params() -> &'static [(&'static str, &'static str)];
    fn items(&self) -> Iter<'_, T>;
    fn into_items(self) -> IntoIter<T>;

    // Provided method
    fn title_map(&self) -> HashMap<String, String> { ... }
}

Required Methods§

source

fn params() -> &'static [(&'static str, &'static str)]

Get the request params to send to the API

source

fn items(&self) -> Iter<'_, T>

Iterate over the main items in this request

source

fn into_items(self) -> IntoIter<T>

Iterate and own over main items in this request

Provided Methods§

source

fn title_map(&self) -> HashMap<String, String>

Get a map of normalized/redirects all merged

Object Safety§

This trait is not object safe.

Implementors§