pub struct WorktreeInfo {
pub path: PathBuf,
pub branch: String,
pub commit: String,
pub agent_name: Option<String>,
pub created_at: Option<DateTime<Local>>,
pub last_updated: Option<DateTime<Local>>,
pub locked: bool,
pub prunable: bool,
}Expand description
Worktreeの情報を表す構造体
Fields§
§path: PathBufWorktreeのパス
branch: Stringチェックアウトされているブランチ名
commit: Stringコミットハッシュ
agent_name: Option<String>エージェント名(ブランチ名から抽出)
created_at: Option<DateTime<Local>>作成日時
last_updated: Option<DateTime<Local>>最終更新日時
locked: boolロック状態
prunable: boolプルーニング可能かどうか
Trait Implementations§
Source§impl Clone for WorktreeInfo
impl Clone for WorktreeInfo
Source§fn clone(&self) -> WorktreeInfo
fn clone(&self) -> WorktreeInfo
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 WorktreeInfo
impl Debug for WorktreeInfo
Source§impl<'de> Deserialize<'de> for WorktreeInfo
impl<'de> Deserialize<'de> for WorktreeInfo
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 WorktreeInfo
impl RefUnwindSafe for WorktreeInfo
impl Send for WorktreeInfo
impl Sync for WorktreeInfo
impl Unpin for WorktreeInfo
impl UnwindSafe for WorktreeInfo
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