pub struct AgentWorktree {
pub agent_id: String,
pub path: PathBuf,
pub branch: String,
pub created_at: Instant,
pub last_accessed: Instant,
pub has_changes: bool,
pub purpose: String,
}Expand description
A worktree associated with an agent
Fields§
§agent_id: StringAgent that owns this worktree
path: PathBufPath to the worktree
branch: StringBranch name in this worktree
created_at: InstantWhen the worktree was created
last_accessed: InstantWhen the worktree was last accessed
has_changes: boolWhether the worktree has uncommitted changes
purpose: StringPurpose/description of this worktree
Implementations§
Trait Implementations§
Source§impl Clone for AgentWorktree
impl Clone for AgentWorktree
Source§fn clone(&self) -> AgentWorktree
fn clone(&self) -> AgentWorktree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentWorktree
impl Debug for AgentWorktree
Source§impl<'de> Deserialize<'de> for AgentWorktree
impl<'de> Deserialize<'de> for AgentWorktree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentWorktree
impl RefUnwindSafe for AgentWorktree
impl Send for AgentWorktree
impl Sync for AgentWorktree
impl Unpin for AgentWorktree
impl UnsafeUnpin for AgentWorktree
impl UnwindSafe for AgentWorktree
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