Type Definition git2::Credentials [] [src]

type Credentials<'a> = FnMut(&str, Option<&str>, CredentialType) -> Result<Cred, Error> + 'a;

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, or None if it was not included.
  • allowed_types - a bitmask stating which cred types are ok to return.