pub struct HookTrigger {
pub paths: Vec<String>,
pub dirs: Vec<String>,
pub operation: Vec<String>,
pub packages: Vec<String>,
}Expand description
Defines when a global hook should be triggered.
Fields§
§paths: Vec<String>Glob patterns for file paths that trigger the hook.
dirs: Vec<String>Directories that trigger the hook if any file within them is modified.
operation: Vec<String>The operation types (e.g. “install”, “upgrade”, “remove”) that trigger the hook.
packages: Vec<String>Specific package names that trigger the hook when modified.
Trait Implementations§
Source§impl Clone for HookTrigger
impl Clone for HookTrigger
Source§fn clone(&self) -> HookTrigger
fn clone(&self) -> HookTrigger
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 moreSource§impl Debug for HookTrigger
impl Debug for HookTrigger
Source§impl<'de> Deserialize<'de> for HookTrigger
impl<'de> Deserialize<'de> for HookTrigger
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HookTrigger
impl RefUnwindSafe for HookTrigger
impl Send for HookTrigger
impl Sync for HookTrigger
impl Unpin for HookTrigger
impl UnsafeUnpin for HookTrigger
impl UnwindSafe for HookTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more