pub trait Credential {
// Required method
fn perform(
&self,
registry: &RegistryInfo<'_>,
action: &Action<'_>,
args: &[&str],
) -> Result<CredentialResponse, Error>;
}
Required Methods§
Sourcefn perform(
&self,
registry: &RegistryInfo<'_>,
action: &Action<'_>,
args: &[&str],
) -> Result<CredentialResponse, Error>
fn perform( &self, registry: &RegistryInfo<'_>, action: &Action<'_>, args: &[&str], ) -> Result<CredentialResponse, Error>
Retrieves a token for the given registry.