pub struct Worktree {
pub id: i64,
pub task_id: i64,
pub path: String,
pub branch: String,
pub base_repo: Option<String>,
pub status: String,
pub created_at: DateTime<Utc>,
pub todo_id: Option<i64>,
pub is_base: bool,
}Expand description
Represents a JJ workspace associated with a task or TODO.
Worktrees track both base repositories and TODO-specific workspaces, including their paths, bookmarks, and relationships.
Fields§
§id: i64§task_id: i64§path: String§branch: String§base_repo: Option<String>§status: String§created_at: DateTime<Utc>§todo_id: Option<i64>§is_base: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Worktree
impl RefUnwindSafe for Worktree
impl Send for Worktree
impl Sync for Worktree
impl Unpin for Worktree
impl UnsafeUnpin for Worktree
impl UnwindSafe for Worktree
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