async fn delete(&mut self) -> Result<reqwest::Response> {
        let url = self.get_delete_url();

        if let Some(url) = url {
            self.prepare_query(&url, reqwest::Method::DELETE)?
                .send()
                .await
                .map_err(From::from)
        } else {
            Err(PlexApiError::DeleteUrlIsNotProvided)
        }
    }
/// Remove current object from your account / server.
Remove current object from your account / server.
Remove current object from your account / server .
async fn delete(&mut self) -> Result<reqwest::Response> {
        let url = self.get_delete_url();
        if let Some(url) = url {
            self.prepare_query(&url, reqwest::Method::DELETE)?
                .send()
                .await
                .map_err(From::from)
        } else {
            Err(PlexApiError::DeleteUrlIsNotProvided)
        }
    }
async fn delete ( & mut self ) -> Result < reqwest :: Response > { let url = self . get_delete_url ( ) ; if let Some ( url ) = url { self . prepare_query ( & url , reqwest :: Method :: DELETE ) ? . send ( ) . await . map_err ( From :: from ) } else { Err ( PlexApiError :: DeleteUrlIsNotProvided ) } }
Remove current object from your account / server.
Remove current object from your account / server .
&mut self
&mut self