pub fn refresh(&mut self) -> Result<()> {
        match Credentials::new(&self.username, &self.password) {
            Ok(new_credentials) => {
                *self = new_credentials;
                Ok(())
            }
            Err(e) => Err(e),
        }
    }
/// Refreshes the expiration time of the credentials.
Refreshes the expiration time of the credentials.
Refreshes the expiration time of the credentials .
pub fn refresh(&mut self) -> Result<()> {
        match Credentials::new(&self.username, &self.password) {
            Ok(new_credentials) => {
                *self = new_credentials;
                Ok(())
            }
            Err(e) => Err(e),
        }
    }
pub fn refresh ( & mut self ) -> Result < ( ) > { match Credentials :: new ( & self . username , & self . password ) { Ok ( new_credentials ) => { * self = new_credentials ; Ok ( ( ) ) } Err ( e ) => Err ( e ) , } }
Refreshes the expiration time of the credentials.
Refreshes the expiration time of the credentials .
&mut self
&mut self