pub struct HooksConfig {
pub hooks: Option<Vec<HookEntry>>,
/* private fields */
}Expand description
Top-level lifecycle hooks for before and after blocks.
Each block carries a list of hook commands that run around the
entire pipeline (not individual stages).
The canonical key is hooks: for both before: and after: to
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
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 HooksConfig
impl Debug for HooksConfig
Source§impl Default for HooksConfig
impl Default for HooksConfig
Source§fn default() -> HooksConfig
fn default() -> HooksConfig
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for HooksConfig
impl JsonSchema for HooksConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HooksConfig
impl PartialEq for HooksConfig
Source§fn eq(&self, other: &HooksConfig) -> bool
fn eq(&self, other: &HooksConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HooksConfig
impl Serialize for HooksConfig
impl StructuralPartialEq for HooksConfig
Auto Trait Implementations§
impl Freeze for HooksConfig
impl RefUnwindSafe for HooksConfig
impl Send for HooksConfig
impl Sync for HooksConfig
impl Unpin for HooksConfig
impl UnsafeUnpin for HooksConfig
impl UnwindSafe for HooksConfig
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