pub fn scan_status(&self) -> Result<(bool, u64)> {
        let res = self.get("getScanStatus", Query::none())?;

        #[derive(Deserialize)]
        struct ScanStatus {
            count: u64,
            scanning: bool,
        }
        let sc = serde_json::from_value::<ScanStatus>(res)?;

        Ok((sc.scanning, sc.count))
    }
/// Gets the status of a scan. Returns the current status for media library
/// scanning.
///
/// # Note
///
/// This method was introduced in version 1.15.0. It will not be supported
/// on servers with earlier versions of the Subsonic API.
Gets the status of a scan. Returns the current status for media library
scanning.
Gets the status of a scan . Returns the current status for media library scanning .
pub fn scan_status(&self) -> Result<(bool, u64)> {
        let res = self.get("getScanStatus", Query::none())?;
        #[derive(Deserialize)]
        struct ScanStatus {
            count: u64,
            scanning: bool,
        }
        let sc = serde_json::from_value::<ScanStatus>(res)?;
        Ok((sc.scanning, sc.count))
    }
pub fn scan_status ( & self ) -> Result < ( bool , u64 ) > { let res = self . get ( " " , Query :: none ( ) ) ? ; # [ derive ( Deserialize ) ] struct ScanStatus { count : u64 , scanning : bool , } let sc = serde_json :: from_value :: < ScanStatus > ( res ) ? ; Ok ( ( sc . scanning , sc . count ) ) }
Gets the status of a scan.
Gets the status of a scan .
&self
&self
note
This method was introduced in version 1.15.0. It will not be supported
on servers with earlier versions of the Subsonic API.
This method was introduced in version 1 . 15 . 0 . It will not be supported on servers with earlier versions of the Subsonic API .