# Trait cargo_credential::Credential

source ·

    pub trait Credential {
        // Required method
        fn perform(
            &self,
            registry: &RegistryInfo<'_>,
            action: &Action<'_>,
            args: &[&str],
        ) -> Result<CredentialResponse, Error>;
    }

## Required Methods§

source

#### fn perform( &self, registry: &RegistryInfo<'_>, action: &Action<'_>, args: &[&str], ) -> Result<CredentialResponse, Error>

Retrieves a token for the given registry.

## Implementors§

source§

### impl Credential for UnsupportedCredential