pub fn validate_token(&mut self) -> Option<()> {
        match self.get("https://api.discogs.com/database/search?q=test") {
            Ok(r) => {
                if r.status() == StatusCode::OK {
                    return Some(());
                }
                None
            },
            Err(_) => None
        }
    }
//Search random query to check if token valid
Search random query to check if token valid
Search random query to check if token valid
pub fn validate_token(&mut self) -> Option<()> {
        match self.get("https://api.discogs.com/database/search?q=test") {
            Ok(r) => {
                if r.status() == StatusCode::OK {
                    return Some(());
                }
                None
            },
            Err(_) => None
        }
    }
pub fn validate_token ( & mut self ) -> Option < ( ) > { match self . get ( " " ) { Ok ( r ) => { if r . status ( ) == StatusCode :: OK { return Some ( ( ) ) ; } None } , Err ( _ ) => None } }
Search random query to check if token valid
Search random query to check if token valid
&mut self