pub enum TargetExtractor {
StringArg(&'static str),
Custom(TargetFn),
}Expand description
How to extract the persistent target of a call.
Variants§
StringArg(&'static str)
The target is the trimmed string value at this top-level arg
(e.g. "path" for file_*, "url" for browser_navigate).
Custom(TargetFn)
Tool-specific extractor for composite targets (e.g. shell’s
action:command-prefix).
Trait Implementations§
Source§impl Clone for TargetExtractor
impl Clone for TargetExtractor
Source§fn clone(&self) -> TargetExtractor
fn clone(&self) -> TargetExtractor
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 TargetExtractor
impl Debug for TargetExtractor
impl Copy for TargetExtractor
Auto Trait Implementations§
impl Freeze for TargetExtractor
impl RefUnwindSafe for TargetExtractor
impl Send for TargetExtractor
impl Sync for TargetExtractor
impl Unpin for TargetExtractor
impl UnsafeUnpin for TargetExtractor
impl UnwindSafe for TargetExtractor
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