pub struct InitOptions {
pub target: Utf8PathBuf,
pub profile: ProfileId,
pub apply: bool,
pub dry_run: bool,
pub plan_zone: Option<PlanZone>,
pub docs_scratch: Option<Option<Utf8PathBuf>>,
pub reserve: Vec<String>,
pub writing_style: Option<WritingStyle>,
}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.
plan_zone: Option<PlanZone>The plan zone to record; None keeps whatever is recorded.
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.
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Source§fn clone(&self) -> InitOptions
fn clone(&self) -> InitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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