pub struct UninstallRequest<'a> {
pub shell: Shell,
pub program_name: &'a str,
pub path_override: Option<PathBuf>,
}Expand description
Input for a completion uninstall operation.
Passing path_override removes that explicit file instead
of resolving the default managed path.
Fields§
§shell: ShellTarget shell.
program_name: &'a strBinary name used by the completion script.
The same validation rules as InstallRequest::program_name apply.
path_override: Option<PathBuf>Optional custom install path to remove instead of the default managed path.
Legacy crate::uninstall behavior treats non-default custom paths as manual cleanup.
When this path exactly matches the shell’s managed default location, the usual managed or
native cleanup semantics are preserved instead.
Trait Implementations§
Source§impl<'a> Clone for UninstallRequest<'a>
impl<'a> Clone for UninstallRequest<'a>
Source§fn clone(&self) -> UninstallRequest<'a>
fn clone(&self) -> UninstallRequest<'a>
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<'a> Debug for UninstallRequest<'a>
impl<'a> Debug for UninstallRequest<'a>
Source§impl<'a> PartialEq for UninstallRequest<'a>
impl<'a> PartialEq for UninstallRequest<'a>
impl<'a> Eq for UninstallRequest<'a>
impl<'a> StructuralPartialEq for UninstallRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for UninstallRequest<'a>
impl<'a> RefUnwindSafe for UninstallRequest<'a>
impl<'a> Send for UninstallRequest<'a>
impl<'a> Sync for UninstallRequest<'a>
impl<'a> Unpin for UninstallRequest<'a>
impl<'a> UnsafeUnpin for UninstallRequest<'a>
impl<'a> UnwindSafe for UninstallRequest<'a>
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