pub struct Trigger {
pub scope: Scope,
pub twins: Vec<(String, Scope)>,
}Expand description
What a pre-commit declaration fires on once its push twins’ files count
too, and which twins those are: the scope, and the id and scope of each
gate whose reach it borrowed (pre-push-cargo-test), so a commit can say
which gate reads the file it is testing.
Fields§
§scope: Scope§twins: Vec<(String, Scope)>Every push gate whose files it covers: a declared pre-push line
before the built-in gate, each with the scope it acts on.
Implementations§
Trait Implementations§
impl Eq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Forget for Trigger
impl Freeze for Trigger
impl Move for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnsafeUnpin for Trigger
impl UnwindSafe for Trigger
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