GitCred

Undocumented in source.
static if(targetLibGitVersion == VersionInfo(0, 19, 0))
struct GitCred {}

Members

Functions

get
auto get()

Cast this credential to the structure type matching the cred enum tag.

get
T get()

Cast this credential to a specific credential type T.

verifyTypeMatch
void verifyTypeMatch(GitCredType target)

Throw if the target credential type is not equal to credType that's stored.

Properties

cHandle
git_cred* cHandle [@property getter]

The internal libgit2 handle for this object.

credType
GitCredType credType [@property getter]

Return the actual credential type of this credential. Use the get template to cast this type to the type tagged as credType.

Meta