pub struct Options<'a> {
pub change: Option<&'a str>,
pub yes: bool,
pub allow_unverified: &'a [String],
pub confirm: Option<&'a dyn Fn(&ArchiveReport) -> bool>,
pub program: Option<PathBuf>,
}Expand description
How the archive is confirmed.
Fields§
§change: Option<&'a str>The change (else the only active one).
yes: boolConfirmed in advance (--yes).
allow_unverified: &'a [String]Tasks ticked without a verdict that the person accepts by name.
confirm: Option<&'a dyn Fn(&ArchiveReport) -> bool>Asks the person, after the diff is shown; None: nobody to ask.
program: Option<PathBuf>The openspec program (default: from PATH).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Options<'a>
impl<'a> !Send for Options<'a>
impl<'a> !Sync for Options<'a>
impl<'a> !UnwindSafe for Options<'a>
impl<'a> Freeze for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnsafeUnpin for Options<'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