pub struct InstallContext {
pub repo_root: PathBuf,
pub dry_run: bool,
pub force: bool,
pub schema_version: u32,
}Expand description
Inputs handed to every install invocation. Holds enough context that
an AgentSurface impl needs no further filesystem probing.
Fields§
§repo_root: PathBuf§dry_run: bool§force: bool§schema_version: u32The wire-protocol schema version the generated hook script should
export. Sourced from crate::protocol::GATE_SCHEMA_VERSION at the
caller; passed in here to keep the trait pure.
Trait Implementations§
Source§impl Clone for InstallContext
impl Clone for InstallContext
Source§fn clone(&self) -> InstallContext
fn clone(&self) -> InstallContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InstallContext
impl RefUnwindSafe for InstallContext
impl Send for InstallContext
impl Sync for InstallContext
impl Unpin for InstallContext
impl UnsafeUnpin for InstallContext
impl UnwindSafe for InstallContext
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