pub struct HooksConfig {
pub hooks: Option<Vec<HookEntry>>,
/* private fields */
}Expand description
A lifecycle hook block: before:, after:, on_error:, always:,
or before_publish:. Each block carries a list of hook commands that
run around the entire pipeline (not individual stages); which block a
list sits under decides when it fires.
The canonical key is hooks: in every block, matching the conventional
spelling. The post: spelling is accepted
as a serde alias on hooks for back-compat with the previous
anodizer spelling; users with after: { post: [...] } keep working
and a deprecation warning is logged when both spellings appear in
the same block (see HooksConfig::merge_hook_aliases).
Fields§
§hooks: Option<Vec<HookEntry>>Commands to run when the block fires. The wire format accepts
either hooks: (canonical) or the legacy
post: spelling; both fold into this field at parse time.
Trait Implementations§
Source§impl Clone for HooksConfig
impl Clone for HooksConfig
Source§fn clone(&self) -> HooksConfig
fn clone(&self) -> HooksConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HooksConfig
impl Debug for HooksConfig
Source§impl Default for HooksConfig
impl Default for HooksConfig
Source§fn default() -> HooksConfig
fn default() -> HooksConfig
Source§impl<'de> Deserialize<'de> for HooksConfig
impl<'de> Deserialize<'de> for HooksConfig
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>,
Source§impl JsonSchema for HooksConfig
impl JsonSchema for HooksConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more