Type Definition git2::Credentials [−][src]
pub type Credentials<'a> = dyn FnMut(&str, Option<&str>, CredentialType) -> Result<Cred, Error> + 'a;
Expand description
Callback used to acquire credentials for when a remote is fetched.
url
- the resource for which the credentials are required.username_from_url
- the username that was embedded in the url, orNone
if it was not included.allowed_types
- a bitmask stating which cred types are ok to return.