Cast this credential to the structure type matching the cred enum tag.
Cast this credential to a specific credential type T.
Throw if the target credential type is not equal to credType that's stored.
The internal libgit2 handle for this object.
Return the actual credential type of this credential. Use the get template to cast this type to the type tagged as credType.
See Implementation