Enum git_credentials::program::Kind
source · [−]pub enum Kind {
Builtin,
ExternalName {
name_and_args: BString,
},
ExternalPath {
path_and_args: BString,
},
ExternalShellScript(BString),
}Expand description
The kind of helper program to use.
Variants
Builtin
The built-in git credential helper program, part of any git distribution.
ExternalName
Fields
name_and_args: BStringThe name like foo along with optional args, like foo --arg --bar="a b", with arguments using sh shell quoting rules.
The program executed will be git-credential-foo if name_and_args starts with foo.
A custom credentials helper, as identified just by the name with optional arguments
ExternalPath
Fields
path_and_args: BStringThe absolute path to the executable, like /path/to/exe along with optional args, like /path/to/exe --arg --bar="a b", with arguments using sh
shell quoting rules.
A custom credentials helper, as identified just by the absolute path to the program and optional arguments. The program is executed through a shell.
ExternalShellScript(BString)
A script to execute with sh.
Trait Implementations
impl Eq for Kind
impl StructuralEq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more