pub struct RegistryEntry {Show 13 fields
pub event: HookEvent,
pub matcher: Option<String>,
pub type: String,
pub command: String,
pub timeout: Option<u32>,
pub async: Option<bool>,
pub scope: String,
pub enabled: bool,
pub added_at: String,
pub installed_by: String,
pub description: Option<String>,
pub reason: Option<String>,
pub optional: Option<bool>,
}Expand description
Registry entry (internal representation with metadata)
Fields§
§event: HookEventHook event
matcher: Option<String>Optional matcher regex (None for hooks without matcher)
type: StringHandler type
command: StringCommand string
timeout: Option<u32>Optional timeout in seconds
async: Option<bool>Optional async flag
scope: StringScope (e.g., “user” in v0.1)
enabled: boolWhether hook is enabled
added_at: StringTimestamp when hook was added (yyyyMMdd-hhmmss)
installed_by: StringFree-form string identifying installer (D24)
description: Option<String>Optional description of what the hook does
reason: Option<String>Optional reason why the hook was added
optional: Option<bool>Optional flag for whether hook is optional
Implementations§
Trait Implementations§
Source§impl Clone for RegistryEntry
impl Clone for RegistryEntry
Source§fn clone(&self) -> RegistryEntry
fn clone(&self) -> RegistryEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 RegistryEntry
impl Debug for RegistryEntry
Source§impl<'de> Deserialize<'de> for RegistryEntry
impl<'de> Deserialize<'de> for RegistryEntry
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 PartialEq for RegistryEntry
impl PartialEq for RegistryEntry
Source§impl Serialize for RegistryEntry
impl Serialize for RegistryEntry
impl Eq for RegistryEntry
impl StructuralPartialEq for RegistryEntry
Auto Trait Implementations§
impl Freeze for RegistryEntry
impl RefUnwindSafe for RegistryEntry
impl Send for RegistryEntry
impl Sync for RegistryEntry
impl Unpin for RegistryEntry
impl UnwindSafe for RegistryEntry
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