pub fn ignore<E>(endpoint: E) -> Ignore<E>Expand description
Ignore the resulting data from an endpoint.
Use this when you only care about whether the request succeeded, not the response body (e.g., for PUT/DELETE operations).
ยงExample
use spotify_web_api::api::{ignore, Query, player::PausePlayback};
// Pause playback without caring about the response
ignore(PausePlayback::default()).query(client).unwrap();