pub struct LoopRow {
pub branch: String,
pub head_sha: String,
pub base_sha: String,
pub ahead: Option<u32>,
pub behind: Option<u32>,
pub last_commit: DateTime<Utc>,
pub worktree_path: PathBuf,
}Expand description
One cached open-loop row for a repo, persisted in the loops table.
Mirrors the heavy-phase output of scanner::open_loops for a single
unmerged branch. ahead/behind are None when the cached scan ran
without need_ahead_behind (light phase only).
Fields§
§branch: String§head_sha: String§base_sha: String§ahead: Option<u32>§behind: Option<u32>§last_commit: DateTime<Utc>§worktree_path: PathBufTrait Implementations§
impl Eq for LoopRow
impl StructuralPartialEq for LoopRow
Auto Trait Implementations§
impl Freeze for LoopRow
impl RefUnwindSafe for LoopRow
impl Send for LoopRow
impl Sync for LoopRow
impl Unpin for LoopRow
impl UnsafeUnpin for LoopRow
impl UnwindSafe for LoopRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.