cargo_credential

Trait 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§