Trait mwapi_responses::ApiResponse
source · 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§
sourcefn params() -> &'static [(&'static str, &'static str)]
fn params() -> &'static [(&'static str, &'static str)]
Get the request params to send to the API
sourcefn into_items(self) -> IntoIter<T>
fn into_items(self) -> IntoIter<T>
Iterate and own over main items in this request
Provided Methods§
Object Safety§
This trait is not object safe.