pub struct HookConfig {
pub enabled: bool,
pub display_name: Option<DisplayNameHookConfig>,
pub folder: Option<FolderHookConfig>,
pub property: Option<PropertyHookConfig>,
pub log: Option<PathBuf>,
}Available on crate feature
hook only.Expand description
Hook configuration for [SHCreateItemFromIDList].
This is used to intercept shell item creation from ID lists.
Fields§
§enabled: boolIf true, the hook will intercept all [SHCreateItemFromIDList] calls.
display_name: Option<DisplayNameHookConfig>If Some, the hook will intercept IShellItem::GetDisplayName calls.
folder: Option<FolderHookConfig>§property: Option<PropertyHookConfig>Available on crate feature
§prop only.log: Option<PathBuf>Path to the log file.
Existing logs in the log file won’t be cleared.
Ignored if hook-log feature is not enabled.
Implementations§
Source§impl HookConfig
impl HookConfig
Sourcepub fn builder() -> HookConfigBuilder
pub fn builder() -> HookConfigBuilder
Create an instance of HookConfig using the builder syntax
Trait Implementations§
Source§impl Clone for HookConfig
impl Clone for HookConfig
Source§fn clone(&self) -> HookConfig
fn clone(&self) -> HookConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HookConfig
impl Debug for HookConfig
Source§impl Default for HookConfig
impl Default for HookConfig
Source§fn default() -> HookConfig
fn default() -> HookConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HookConfig
impl<'de> Deserialize<'de> for HookConfig
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
Auto Trait Implementations§
impl Freeze for HookConfig
impl RefUnwindSafe for HookConfig
impl Send for HookConfig
impl Sync for HookConfig
impl Unpin for HookConfig
impl UnsafeUnpin for HookConfig
impl UnwindSafe for HookConfig
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