pub struct WorktreeLockOpts {
pub path: PathBuf,
pub reason: Option<String>,
}Expand description
Fields§
§path: PathBufPath to the worktree to lock
reason: Option<String>Optional reason for locking
Implementations§
Trait Implementations§
Source§impl Clone for WorktreeLockOpts
impl Clone for WorktreeLockOpts
Source§fn clone(&self) -> WorktreeLockOpts
fn clone(&self) -> WorktreeLockOpts
Returns a duplicate of the value. Read more
1.0.0 · 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 WorktreeLockOpts
impl RefUnwindSafe for WorktreeLockOpts
impl Send for WorktreeLockOpts
impl Sync for WorktreeLockOpts
impl Unpin for WorktreeLockOpts
impl UnwindSafe for WorktreeLockOpts
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