pub struct PublishOptions<'a> {
pub branch_type: Option<BranchType>,
pub name: Option<&'a str>,
pub remote: Option<&'a str>,
pub repo_root: Option<&'a Path>,
}Expand description
Options for the worktree publish workflow.
§Example
use git_claw::workflow::PublishOptions;
use git_claw::core::branch::BranchType;
let options = PublishOptions {
branch_type: Some(BranchType::Feature),
name: Some("login"),
remote: Some("origin"),
repo_root: None,
};
assert_eq!(options.name, Some("login"));Fields§
§branch_type: Option<BranchType>§name: Option<&'a str>§remote: Option<&'a str>§repo_root: Option<&'a Path>Trait Implementations§
Source§impl<'a> Clone for PublishOptions<'a>
impl<'a> Clone for PublishOptions<'a>
Source§impl<'a> Debug for PublishOptions<'a>
impl<'a> Debug for PublishOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for PublishOptions<'a>
impl<'a> RefUnwindSafe for PublishOptions<'a>
impl<'a> Send for PublishOptions<'a>
impl<'a> Sync for PublishOptions<'a>
impl<'a> Unpin for PublishOptions<'a>
impl<'a> UnsafeUnpin for PublishOptions<'a>
impl<'a> UnwindSafe for PublishOptions<'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