pub struct Plan {
pub choices: Vec<Choice>,
pub new_keys: Vec<(String, String)>,
pub hooks: HookKind,
pub gitignore: bool,
}Expand description
What the wizard decided, for init to carry out.
Fields§
§choices: Vec<Choice>The failover chain, head first.
new_keys: Vec<(String, String)>(endpoint, key) pairs to write to the auth store.
Separate from choices because storing a key is a side effect on the
machine rather than on the repository, and the two are applied by
different code with different failure modes.
hooks: HookKindWhich git hooks to install.
gitignore: boolWhether to add drep.toml to .gitignore.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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