#[non_exhaustive]pub struct WorkspaceAdd {
pub name: String,
pub base: String,
pub path: PathBuf,
pub sparse_patterns: Option<SparseMode>,
}Expand description
Options for JjApi::workspace_add (jj workspace add).
#[non_exhaustive], so build it through WorkspaceAdd::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName for the new workspace.
base: StringRevision the workspace’s working copy starts at (-r <base>).
path: PathBufFilesystem path for the new workspace.
sparse_patterns: Option<SparseMode>How to seed the new workspace’s sparse patterns (--sparse-patterns);
None leaves jj’s default (inherit from the current workspace).
Implementations§
Source§impl WorkspaceAdd
impl WorkspaceAdd
Trait Implementations§
Source§impl Clone for WorkspaceAdd
impl Clone for WorkspaceAdd
Source§fn clone(&self) -> WorkspaceAdd
fn clone(&self) -> WorkspaceAdd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceAdd
impl RefUnwindSafe for WorkspaceAdd
impl Send for WorkspaceAdd
impl Sync for WorkspaceAdd
impl Unpin for WorkspaceAdd
impl UnsafeUnpin for WorkspaceAdd
impl UnwindSafe for WorkspaceAdd
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