Struct git2::Cred

source · []
pub struct Cred { /* private fields */ }
Expand description

A structure to represent git credentials in libgit2.

Implementations

Create a “default” credential usable for Negotiate mechanisms like NTLM or Kerberos authentication.

Create a new ssh key credential object used for querying an ssh-agent.

The username specified is the username to authenticate.

Create a new passphrase-protected ssh key credential object.

Create a new ssh key credential object reading the keys from memory.

Create a new plain-text username and password credential object.

Attempt to read credential.helper according to gitcredentials(7) 1

This function will attempt to parse the user’s credential.helper configuration, invoke the necessary processes, and read off what the username/password should be for a particular url.

The returned credential type will be a username/password credential if successful.

Create a credential to specify a username.

This is used with ssh authentication to query for the username if none is specified in the url.

Check whether a credential object contains username information.

Return the type of credentials that this object represents.

Unwrap access to the underlying raw pointer, canceling the destructor

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.