Trait cargo_credential::Credential
source · pub trait Credential {
fn name(&self) -> &'static str;
fn get(&self, index_url: &str) -> Result<String, Error>;
fn store(
&self,
index_url: &str,
token: &str,
name: Option<&str>
) -> Result<(), Error>;
fn erase(&self, index_url: &str) -> Result<(), Error>;
}
Required Methods§
sourcefn get(&self, index_url: &str) -> Result<String, Error>
fn get(&self, index_url: &str) -> Result<String, Error>
Retrieves a token for the given registry.