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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.