pub struct OpenOptions<'a> {
pub name: Option<&'a str>,
pub editor: Option<&'a str>,
pub repo_root: Option<&'a Path>,
}Expand description
Options for opening a worktree in an editor.
:param name: Target worktree name or alias. :param editor: Optional editor binary or command name. :param repo_root: Optional repository root path.
§Example
use git_claw::workflow::OpenOptions;
let options = OpenOptions {
name: Some("feature-x"),
editor: Some("nano"),
repo_root: None,
};
assert_eq!(options.editor, Some("nano"));Fields§
§name: Option<&'a str>§editor: Option<&'a str>§repo_root: Option<&'a Path>Auto Trait Implementations§
impl<'a> Freeze for OpenOptions<'a>
impl<'a> RefUnwindSafe for OpenOptions<'a>
impl<'a> Send for OpenOptions<'a>
impl<'a> Sync for OpenOptions<'a>
impl<'a> Unpin for OpenOptions<'a>
impl<'a> UnsafeUnpin for OpenOptions<'a>
impl<'a> UnwindSafe for OpenOptions<'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