pub struct HooksDiscoverResult {
pub errors: Vec<String>,
pub hooks: Vec<DiscoveredHook>,
pub warnings: Vec<String>,
}Expand description
Server-discovered hook actions and partial-load diagnostics from user, repository, plugin, and managed-policy sources. Concrete sessions may include additional session-specific hook sources.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§errors: Vec<String>Errors for hook sources or actions that could not be loaded, making the result partially incomplete. Other valid actions are still returned. Project-resolution and repository-settings errors are prefixed with their project path.
hooks: Vec<DiscoveredHook>All discovered hook actions. Byte-identical actions remain separate rows even when they share a disable key.
warnings: Vec<String>Non-fatal source-loading warnings. Discovery remains complete for the affected source, although the source had a recoverable issue. Repository-settings warnings are prefixed with their project path when attribution is available.
Trait Implementations§
Source§impl Clone for HooksDiscoverResult
impl Clone for HooksDiscoverResult
Source§fn clone(&self) -> HooksDiscoverResult
fn clone(&self) -> HooksDiscoverResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more