pub struct WorkspaceBuilder { /* private fields */ }Implementations§
source§impl WorkspaceBuilder
impl WorkspaceBuilder
pub fn main_branch(self, main_branch: Box<dyn Branch>) -> Self
pub fn resume_branch(self, resume_branch: Box<dyn Branch>) -> Self
pub fn cached_branch(self, cached_branch: Box<dyn Branch>) -> Self
pub fn additional_colocated_branches( self, additional_colocated_branches: HashMap<String, String>, ) -> Self
pub fn resume_branch_additional_colocated_branches( self, resume_branch_additional_colocated_branches: HashMap<String, String>, ) -> Self
pub fn dir(self, dir: PathBuf) -> Self
pub fn path(self, path: PathBuf) -> Self
sourcepub fn format(self, format: impl AsFormat) -> Self
pub fn format(self, format: impl AsFormat) -> Self
Set the control dir format to use.
This defaults to the format of the remote branch.
pub fn build(self) -> Result<Workspace, Error>
Trait Implementations§
source§impl Default for WorkspaceBuilder
impl Default for WorkspaceBuilder
source§fn default() -> WorkspaceBuilder
fn default() -> WorkspaceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceBuilder
impl !RefUnwindSafe for WorkspaceBuilder
impl Send for WorkspaceBuilder
impl !Sync for WorkspaceBuilder
impl Unpin for WorkspaceBuilder
impl !UnwindSafe for WorkspaceBuilder
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