pub struct Options {
pub share: Vec<String>,
pub warm_interval: Duration,
pub force: u8,
}Expand description
What to share and how often to refresh the template from the checkout
Fields§
Hidden directories shared like any other ignored directory
warm_interval: Durationadd_with warms the template from the checkout at most this often, zero means every time
and Duration::MAX never
force: u8How many times to pass --force to git worktree add, which counts it like -f -f. Any
count also lets add_with replace Foreign::Files, and never another kind
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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