pub fn into_value(self) -> Option<serde_json::Value> {
        // TODO Big time; make this not an `if ... else if ...` mess.
        macro_rules! choose {
            ( $($f:ident),* ) => ({ $(
                if let Some(v)  = self.inner.$f {
                    return Some(v)
                }
            )* })
        }

        if self.inner.error.is_some() {
            return None;
        }

        choose!(
            album,
            album_info,
            album_list,
            album_list2,
            albums,
            artist,
            artist_info,
            artist_info2,
            artists,
            bookmarks,
            chat_messages,
            directory,
            genres,
            indexes,
            internet_radio_stations,
            jukebox_playlist,
            jukebox_status,
            license,
            lyrics,
            music_folders,
            music_folders,
            newest_podcasts,
            now_playing,
            play_queue,
            playlist,
            playlists,
            podcasts,
            random_songs,
            scan_status,
            search_result,
            search_result2,
            search_result3,
            shares,
            similar_songs,
            similar_songs2,
            song,
            songs_by_genre,
            starred,
            starred2,
            top_songs,
            user,
            users,
            video_info,
            videos
        );
        None
    }
/// Extracts the internal value of the response.
///
/// # Errors
///
/// This method will error if the response contained an error (as defined by
/// the [Subsonic API]).
///
/// [Subsonic API]: ./enum.ApiError.html
Extracts the internal value of the response.
Extracts the internal value of the response .
pub fn into_value(self) -> Option<serde_json::Value> {
        // TODO Big time; make this not an `if ... else if ...` mess.
        macro_rules! choose {
            ( $($f:ident),* ) => ({ $(
                if let Some(v)  = self.inner.$f {
                    return Some(v)
                }
            )* })
        }
        if self.inner.error.is_some() {
            return None;
        }
        choose!(
            album,
            album_info,
            album_list,
            album_list2,
            albums,
            artist,
            artist_info,
            artist_info2,
            artists,
            bookmarks,
            chat_messages,
            directory,
            genres,
            indexes,
            internet_radio_stations,
            jukebox_playlist,
            jukebox_status,
            license,
            lyrics,
            music_folders,
            music_folders,
            newest_podcasts,
            now_playing,
            play_queue,
            playlist,
            playlists,
            podcasts,
            random_songs,
            scan_status,
            search_result,
            search_result2,
            search_result3,
            shares,
            similar_songs,
            similar_songs2,
            song,
            songs_by_genre,
            starred,
            starred2,
            top_songs,
            user,
            users,
            video_info,
            videos
        );
        None
    }
pub fn into_value ( self ) -> Option < serde_json :: Value > { // TODO Big time; make this not an `if ... else if ...` mess. macro_rules! choose { ( $ ( $f : ident ) * ) => ( { $ ( if let Some ( v ) self inner $f { return Some ( v ) } ) * } ) } if self . inner . error . is_some ( ) { return None ; } choose ! ( album album_info album_list album_list2 albums artist artist_info artist_info2 artists bookmarks chat_messages directory genres indexes internet_radio_stations jukebox_playlist jukebox_status license lyrics music_folders music_folders newest_podcasts now_playing play_queue playlist playlists podcasts random_songs scan_status search_result search_result2 search_result3 shares similar_songs similar_songs2 song songs_by_genre starred starred2 top_songs user users video_info videos ) ; None }
Extracts the internal value of the response.
Extracts the internal value of the response .
self
self
errors
This method will error if the response contained an error (as defined by
the [Subsonic API]).

[Subsonic API]: ./enum.ApiError.html
This method will error if the response contained an error ( as defined by the [ Subsonic API ] ) . [ Subsonic API ] : . / enum . ApiError . html