pub struct AdoptOpts {
pub dst: PathBuf,
pub src_override: Option<PathBuf>,
pub repo_path: PathBuf,
pub manifest_path: PathBuf,
pub force: bool,
pub dry_run: bool,
pub resolver: Resolver,
}Expand description
Options for adopt.
Fields§
§dst: PathBufAbsolute path to the file currently on disk (the “deployed” location).
src_override: Option<PathBuf>Override the auto-derived repo-relative source path.
repo_path: PathBufAbsolute path to the dotfiles repo root.
manifest_path: PathBufAbsolute path to the manifest JSON file.
force: boolOverwrite an existing file in the repo without erroring.
dry_run: boolPrint what would happen without touching disk or writing the manifest.
resolver: ResolverResolver used to discover $HOME for auto-deriving src.
Auto Trait Implementations§
impl Freeze for AdoptOpts
impl RefUnwindSafe for AdoptOpts
impl Send for AdoptOpts
impl Sync for AdoptOpts
impl Unpin for AdoptOpts
impl UnsafeUnpin for AdoptOpts
impl UnwindSafe for AdoptOpts
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more