pub struct RepoHooksConfig {
pub pre_open: Option<RepoHookEntry>,
pub post_open: Option<RepoHookEntry>,
}Expand description
Per-repo hooks configuration parsed from .worktree.toml.
Fields§
§pre_open: Option<RepoHookEntry>Script run before the workspace is opened.
post_open: Option<RepoHookEntry>Script run after the workspace is opened.
Trait Implementations§
Source§impl Clone for RepoHooksConfig
impl Clone for RepoHooksConfig
Source§fn clone(&self) -> RepoHooksConfig
fn clone(&self) -> RepoHooksConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepoHooksConfig
impl Debug for RepoHooksConfig
Source§impl Default for RepoHooksConfig
impl Default for RepoHooksConfig
Source§fn default() -> RepoHooksConfig
fn default() -> RepoHooksConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RepoHooksConfig
impl RefUnwindSafe for RepoHooksConfig
impl Send for RepoHooksConfig
impl Sync for RepoHooksConfig
impl Unpin for RepoHooksConfig
impl UnsafeUnpin for RepoHooksConfig
impl UnwindSafe for RepoHooksConfig
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