pub fn search(
        &self,
        query: &str,
        artist_page: SearchPage,
        album_page: SearchPage,
        song_page: SearchPage,
    ) -> Result<SearchResult> {
        // FIXME There has to be a way to make this nicer.
        let args = Query::with("query", query)
            .arg("artistCount", artist_page.count)
            .arg("artistOffset", artist_page.offset)
            .arg("albumCount", album_page.count)
            .arg("albumOffset", album_page.offset)
            .arg("songCount", song_page.count)
            .arg("songOffset", song_page.offset)
            .build();

        let res = self.get("search3", args)?;
        Ok(serde_json::from_value::<SearchResult>(res)?)
    }
/// Returns albums, artists and songs matching the given search criteria.
/// Supports paging through the result. See the [search module] for
/// documentation.
///
/// [search module]: ./search/index.html
///
/// # Examples
///
/// Basic usage:
///
/// ```no_run
/// use sunk::search::{self, SearchPage};
/// use sunk::Client;
///
/// # fn run() -> sunk::Result<()> {
/// # let site = "http://demo.subsonic.org";
/// # let user = "guest3";
/// # let password = "guest";
/// let client = Client::new(site, user, password)?;
///
/// let search_size = SearchPage::new();
/// let ignore = search::NONE;
///
/// let result = client.search("smile", ignore, ignore, search_size)?;
///
/// assert!(result.artists.is_empty());
/// assert!(result.albums.is_empty());
/// assert!(!result.songs.is_empty());
/// # Ok(())
/// # }
/// # fn main() { }
/// ```
Returns albums, artists and songs matching the given search criteria.
Supports paging through the result. See the [search module] for
documentation.


Returns albums artists and songs matching the given search criteria . Supports paging through the result . See the [ search module ] for documentation .
pub fn search(
        &self,
        query: &str,
        artist_page: SearchPage,
        album_page: SearchPage,
        song_page: SearchPage,
    ) -> Result<SearchResult> {
        // FIXME There has to be a way to make this nicer.
        let args = Query::with("query", query)
            .arg("artistCount", artist_page.count)
            .arg("artistOffset", artist_page.offset)
            .arg("albumCount", album_page.count)
            .arg("albumOffset", album_page.offset)
            .arg("songCount", song_page.count)
            .arg("songOffset", song_page.offset)
            .build();
        let res = self.get("search3", args)?;
        Ok(serde_json::from_value::<SearchResult>(res)?)
    }
pub fn search ( & self , query : & str , artist_page : SearchPage , album_page : SearchPage , song_page : SearchPage , ) -> Result < SearchResult > { // FIXME There has to be a way to make this nicer. let args = Query :: with ( " " , query ) . arg ( " " , artist_page . count ) . arg ( " " , artist_page . offset ) . arg ( " " , album_page . count ) . arg ( " " , album_page . offset ) . arg ( " " , song_page . count ) . arg ( " " , song_page . offset ) . build ( ) ; let res = self . get ( " " , args ) ? ; Ok ( serde_json :: from_value :: < SearchResult > ( res ) ? ) }
Returns albums, artists and songs matching the given search criteria.
Returns albums artists and songs matching the given search criteria .
&self
query
&str
artist_page
SearchPage
album_page
SearchPage
song_page
SearchPage
&self
query
&str
artist_page
SearchPage
album_page
SearchPage
song_page
SearchPage
examples
Basic usage.

```no_run
use sunk::search::{self, SearchPage};
use sunk::Client.
Basic usage . ` ` ` no_run use sunk :: search :: { self SearchPage } ; use sunk :: Client .
fn run() -> sunk::result<()> {
None
let site = "http://demo.subsonic.org";
None
let user = "guest3";
None
let password = "guest";
let client = Client::new(site, user, password)?.

let search_size = SearchPage::new();
let ignore = search::NONE.

let result = client.search("smile", ignore, ignore, search_size)?.


let client = Client :: new ( site user password ) ? . let search_size = SearchPage :: new () ; let ignore = search :: NONE . let result = client . search ( " smile " ignore ignore search_size ) ? .
ok(())
None
}
None
fn main() { }
None