pub struct InstallRequest<'a> {
pub shell: Shell,
pub program_name: &'a str,
pub script: &'a [u8],
pub path_override: Option<PathBuf>,
}Expand description
Input for a completion install operation.
Use path_override when you want to control the destination
explicitly. Non-default custom paths normally require caller-managed activation unless you opt
into crate::install_with_policy with ActivationPolicy::AutoManaged.
Fields§
§shell: ShellTarget shell.
program_name: &'a strBinary name used by the completion script.
The name must be non-empty and use a portable ASCII character set consisting of letters,
digits, ., _, and -.
script: &'a [u8]Completion script bytes to install.
path_override: Option<PathBuf>Optional explicit install path instead of the managed default path.
Legacy crate::install behavior treats non-default custom paths as manual activation.
When this path exactly matches the shell’s managed default location, the usual managed or
native activation semantics are preserved instead.
Trait Implementations§
Source§impl<'a> Clone for InstallRequest<'a>
impl<'a> Clone for InstallRequest<'a>
Source§fn clone(&self) -> InstallRequest<'a>
fn clone(&self) -> InstallRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more