Enum git_meta::GitCredentials[][src]

pub enum GitCredentials {
    SshKey {
        username: String,
        public_key: Option<PathBuf>,
        private_key: PathBuf,
        passphrase: Option<String>,
    },
    UserPassPlaintext {
        username: String,
        password: String,
    },
}

GitCredentials holds authentication information for a remote git repository

Variants

SshKey

Fields of SshKey

username: Stringpublic_key: Option<PathBuf>private_key: PathBufpassphrase: Option<String>
UserPassPlaintext

Fields of UserPassPlaintext

username: Stringpassword: String

Trait Implementations

impl Clone for GitCredentials[src]

impl Debug for GitCredentials[src]

impl PartialEq<GitCredentials> for GitCredentials[src]

impl StructuralPartialEq for GitCredentials[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.