pub struct HandlerRule {
pub pattern: String,
pub command: String,
pub args: Vec<String>,
pub description: Option<String>,
}Expand description
A single handler rule mapping file patterns to external applications.
Fields§
§pattern: StringGlob pattern for matching file paths (e.g., “.png”, “assets/**/.blend”).
command: StringExternal command to execute (e.g., “open”, “blender”, “UnrealEditor”).
args: Vec<String>Arguments to pass to the command. Use {file} placeholder for the file path.
description: Option<String>Human-readable description of this handler (optional).
Trait Implementations§
Source§impl Clone for HandlerRule
impl Clone for HandlerRule
Source§fn clone(&self) -> HandlerRule
fn clone(&self) -> HandlerRule
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 HandlerRule
impl Debug for HandlerRule
Source§impl<'de> Deserialize<'de> for HandlerRule
impl<'de> Deserialize<'de> for HandlerRule
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 HandlerRule
impl RefUnwindSafe for HandlerRule
impl Send for HandlerRule
impl Sync for HandlerRule
impl Unpin for HandlerRule
impl UnsafeUnpin for HandlerRule
impl UnwindSafe for HandlerRule
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