pub struct InitOptions {
pub target: Utf8PathBuf,
pub profile: ProfileId,
pub apply: bool,
pub dry_run: bool,
pub docs_scratch: Option<Option<Utf8PathBuf>>,
pub reserve: Vec<String>,
pub writing_style: Option<WritingStyle>,
pub acquisition: Option<Acquisition>,
pub replace: Vec<String>,
}Expand description
What an installation was asked to do.
Fields§
§target: Utf8PathBufThe absolute target repository.
profile: ProfileIdThe profile to project.
apply: boolWrite even into a non-empty target with no instance.
dry_run: boolPreview only, regardless of the target’s state.
docs_scratch: Option<Option<Utf8PathBuf>>The docs scratch to record. None keeps whatever is recorded, and
Some(None) clears it.
reserve: Vec<String>Paths to record under reserved: in the instance’s declaration. An
empty list keeps whatever is recorded.
writing_style: Option<WritingStyle>The writing-style selection to record in the declaration. None
keeps whatever is recorded.
acquisition: Option<Acquisition>The acquisition decision to record in the declaration. None keeps
whatever is recorded.
replace: Vec<String>Destinations the operator named for replacement. The caller saves each one’s bytes before the landing runs.
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Auto Trait Implementations§
impl Forget for InitOptions
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnsafeUnpin for InitOptions
impl UnwindSafe for InitOptions
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