Type Alias git2::Credentials
source ยท 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.