pub struct Exec {
pub verb: &'static str,
pub dir: PathBuf,
pub env: Vec<(String, String)>,
}Expand description
The git invocation a resolved request becomes.
Fields§
§verb: &'static strgit subcommand: upload-pack or receive-pack.
dir: PathBufAbsolute path of the bare repository to serve.
env: Vec<(String, String)>Environment to add for the child, which is how the pre-receive
hook learns where to send this push. Empty for a fetch, which runs
no hook.
Trait Implementations§
impl Eq for Exec
impl StructuralPartialEq for Exec
Auto Trait Implementations§
impl Freeze for Exec
impl RefUnwindSafe for Exec
impl Send for Exec
impl Sync for Exec
impl Unpin for Exec
impl UnsafeUnpin for Exec
impl UnwindSafe for Exec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more