pub struct HookConfig {
pub pre_build: Vec<String>,
pub post_build: Vec<String>,
pub pre_test: Vec<String>,
pub post_test: Vec<String>,
pub pre_run: Vec<String>,
pub post_run: Vec<String>,
pub pre_clean: Vec<String>,
pub post_clean: Vec<String>,
pub pre_lock: Vec<String>,
pub post_lock: Vec<String>,
pub init: Vec<String>,
}Expand description
Hook-specific configuration mapping events to scripts.
Fields§
§pre_build: Vec<String>Scripts to run before build.
post_build: Vec<String>Scripts to run after build.
pre_test: Vec<String>Scripts to run before tests.
post_test: Vec<String>Scripts to run after tests.
pre_run: Vec<String>Scripts to run before run command.
post_run: Vec<String>Scripts to run after run completes.
pre_clean: Vec<String>Scripts to run before clean.
post_clean: Vec<String>Scripts to run after clean.
pre_lock: Vec<String>Scripts to run before lock generation.
post_lock: Vec<String>Scripts to run after lock completes.
init: Vec<String>Scripts to run on project initialization.
Implementations§
Trait Implementations§
Source§impl Clone for HookConfig
impl Clone for HookConfig
Source§fn clone(&self) -> HookConfig
fn clone(&self) -> HookConfig
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 HookConfig
impl Debug for HookConfig
Source§impl Default for HookConfig
impl Default for HookConfig
Source§fn default() -> HookConfig
fn default() -> HookConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HookConfigwhere
HookConfig: Default,
impl<'de> Deserialize<'de> for HookConfigwhere
HookConfig: Default,
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
Source§impl From<PluginHookConfig> for HookConfig
impl From<PluginHookConfig> for HookConfig
Source§fn from(hooks: PluginHookConfig) -> Self
fn from(hooks: PluginHookConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HookConfig
impl RefUnwindSafe for HookConfig
impl Send for HookConfig
impl Sync for HookConfig
impl Unpin for HookConfig
impl UnsafeUnpin for HookConfig
impl UnwindSafe for HookConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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