pub struct MigrateManagedBlocksRequest<'a> {
pub shell: Shell,
pub program_name: &'a str,
pub path_override: Option<PathBuf>,
pub legacy_blocks: Vec<LegacyManagedBlock>,
}Expand description
Input for managed-block migration into shellcomp markers.
This API rewrites a shell startup file to remove known legacy markers and upsert the equivalent
shellcomp managed block for the same shell and completion target path.
Fields§
§shell: ShellTarget shell whose managed startup block should be adopted.
program_name: &'a strBinary name used by the completion script.
path_override: Option<PathBuf>Optional explicit completion file path to adopt.
When omitted, shellcomp resolves the shell’s managed default completion path.
legacy_blocks: Vec<LegacyManagedBlock>Caller-provided legacy marker pairs to remove before writing the shellcomp block.
Trait Implementations§
Source§impl<'a> Clone for MigrateManagedBlocksRequest<'a>
impl<'a> Clone for MigrateManagedBlocksRequest<'a>
Source§fn clone(&self) -> MigrateManagedBlocksRequest<'a>
fn clone(&self) -> MigrateManagedBlocksRequest<'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 MigrateManagedBlocksRequest<'a>
impl<'a> Debug for MigrateManagedBlocksRequest<'a>
Source§impl<'a> PartialEq for MigrateManagedBlocksRequest<'a>
impl<'a> PartialEq for MigrateManagedBlocksRequest<'a>
Source§fn eq(&self, other: &MigrateManagedBlocksRequest<'a>) -> bool
fn eq(&self, other: &MigrateManagedBlocksRequest<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for MigrateManagedBlocksRequest<'a>
impl<'a> StructuralPartialEq for MigrateManagedBlocksRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for MigrateManagedBlocksRequest<'a>
impl<'a> RefUnwindSafe for MigrateManagedBlocksRequest<'a>
impl<'a> Send for MigrateManagedBlocksRequest<'a>
impl<'a> Sync for MigrateManagedBlocksRequest<'a>
impl<'a> Unpin for MigrateManagedBlocksRequest<'a>
impl<'a> UnsafeUnpin for MigrateManagedBlocksRequest<'a>
impl<'a> UnwindSafe for MigrateManagedBlocksRequest<'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