#[non_exhaustive]pub enum HookMode {
Advisory,
Strict,
}Expand description
Failure policy for installed integration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Advisory
Prompt routing and hook failures never block normal host operation.
Strict
Prompt routing remains advisory, while the Git pre-commit gate fails closed.
Trait Implementations§
impl Copy for HookMode
Source§impl<'de> Deserialize<'de> for HookMode
impl<'de> Deserialize<'de> for HookMode
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
impl Eq for HookMode
Source§impl JsonSchema for HookMode
impl JsonSchema for HookMode
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for HookMode
Auto Trait Implementations§
impl Freeze for HookMode
impl RefUnwindSafe for HookMode
impl Send for HookMode
impl Sync for HookMode
impl Unpin for HookMode
impl UnsafeUnpin for HookMode
impl UnwindSafe for HookMode
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