#[non_exhaustive]pub enum HookHandlerKind {
Managed,
User,
Project,
Plugin,
Unknown(String),
}Expand description
A hook row’s origin: the config HookSourceKind values plus
plugin-contributed. Open: a future origin is additive.
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.
Managed
A managed (fleet-composed) config hook.
User
A user-settings config hook.
Project
A workspace-project config hook.
Plugin
Contributed by an installed plugin.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for HookHandlerKind
impl Clone for HookHandlerKind
Source§impl Debug for HookHandlerKind
impl Debug for HookHandlerKind
Source§impl<'de> Deserialize<'de> for HookHandlerKind
impl<'de> Deserialize<'de> for HookHandlerKind
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HookHandlerKind
Source§impl PartialEq for HookHandlerKind
impl PartialEq for HookHandlerKind
Source§impl Serialize for HookHandlerKind
impl Serialize for HookHandlerKind
impl StructuralPartialEq for HookHandlerKind
Auto Trait Implementations§
impl Freeze for HookHandlerKind
impl RefUnwindSafe for HookHandlerKind
impl Send for HookHandlerKind
impl Sync for HookHandlerKind
impl Unpin for HookHandlerKind
impl UnsafeUnpin for HookHandlerKind
impl UnwindSafe for HookHandlerKind
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