@@ -14,7 +14,7 @@ pub struct HookEvent {
1414 pub phase : HookPhase ,
1515}
1616
17- #[ derive( Debug , Clone , Copy , PartialEq , Eq , Serialize , Deserialize , DeriveJsonSchema ) ]
17+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Serialize , Deserialize , DeriveJsonSchema , derive_more :: IsVariant ) ]
1818#[ serde( rename_all = "snake_case" ) ]
1919pub enum HookPhase {
2020 /// May return [`HookOutcome::Abort`] to fail the build.
@@ -23,7 +23,7 @@ pub enum HookPhase {
2323 After ,
2424}
2525
26- #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize , DeriveJsonSchema ) ]
26+ #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize , DeriveJsonSchema , derive_more :: IsVariant ) ]
2727#[ serde( tag = "kind" , rename_all = "snake_case" ) ]
2828pub enum HookOutcome {
2929 /// Continue the build.
@@ -37,7 +37,7 @@ pub enum HookOutcome {
3737///
3838/// The manifest declares *what* events the plugin wants, not the per-event
3939/// payload. Kept in this file so plugin authors only import one module.
40- #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , Deserialize , DeriveJsonSchema ) ]
40+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , Serialize , Deserialize , DeriveJsonSchema , derive_more :: IsVariant ) ]
4141#[ serde( rename_all = "snake_case" ) ]
4242pub enum HookEventKind {
4343 BuildStart ,
0 commit comments