pub enum PerShellCmds {
All(Vec<String>),
ByShell {
default: Option<Vec<String>>,
bash: Option<Vec<String>>,
zsh: Option<Vec<String>>,
pwsh: Option<Vec<String>>,
nu: Option<Vec<String>>,
},
}Expand description
when_command_exists list that can be uniform or per-shell.
when_command_exists = ["lsd"]
when_command_exists = { default = ["7z"], pwsh = ["7z.exe"] }Variants§
All(Vec<String>)
Same command list for every shell.
ByShell
Per-shell overrides; default is the fallback.
Implementations§
Trait Implementations§
Source§impl Clone for PerShellCmds
impl Clone for PerShellCmds
Source§fn clone(&self) -> PerShellCmds
fn clone(&self) -> PerShellCmds
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 PerShellCmds
impl Debug for PerShellCmds
Source§impl<'de> Deserialize<'de> for PerShellCmds
impl<'de> Deserialize<'de> for PerShellCmds
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
Source§impl PartialEq for PerShellCmds
impl PartialEq for PerShellCmds
Source§impl Serialize for PerShellCmds
impl Serialize for PerShellCmds
impl StructuralPartialEq for PerShellCmds
Auto Trait Implementations§
impl Freeze for PerShellCmds
impl RefUnwindSafe for PerShellCmds
impl Send for PerShellCmds
impl Sync for PerShellCmds
impl Unpin for PerShellCmds
impl UnsafeUnpin for PerShellCmds
impl UnwindSafe for PerShellCmds
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