pub struct WorktreeWatchRepoRank {
pub root: String,
pub owner: Option<String>,
pub name: Option<String>,
pub score: f64,
pub last_event_at: Option<String>,
pub rank: Option<u32>,
pub tier: Option<String>,
}Expand description
One repository’s activity rank in the global worktree-watch config.
Fields§
§root: StringAbsolute repo root (as known on this machine).
owner: Option<String>Optional owner/name labels for readability.
name: Option<String>§score: f64Exponentially decayed activity score (higher = more active).
last_event_at: Option<String>ISO-8601 timestamp of last FS/commit activity observed by the watcher.
rank: Option<u32>1-based rank after sort by score (1 = busiest).
tier: Option<String>Current scheduling tier: hot | warm | cold.
Trait Implementations§
Source§impl Clone for WorktreeWatchRepoRank
impl Clone for WorktreeWatchRepoRank
Source§fn clone(&self) -> WorktreeWatchRepoRank
fn clone(&self) -> WorktreeWatchRepoRank
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 moreSource§impl Debug for WorktreeWatchRepoRank
impl Debug for WorktreeWatchRepoRank
Source§impl Default for WorktreeWatchRepoRank
impl Default for WorktreeWatchRepoRank
Source§fn default() -> WorktreeWatchRepoRank
fn default() -> WorktreeWatchRepoRank
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorktreeWatchRepoRank
impl<'de> Deserialize<'de> for WorktreeWatchRepoRank
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
Source§impl PartialEq for WorktreeWatchRepoRank
impl PartialEq for WorktreeWatchRepoRank
Source§impl Serialize for WorktreeWatchRepoRank
impl Serialize for WorktreeWatchRepoRank
impl StructuralPartialEq for WorktreeWatchRepoRank
Auto Trait Implementations§
impl Freeze for WorktreeWatchRepoRank
impl RefUnwindSafe for WorktreeWatchRepoRank
impl Send for WorktreeWatchRepoRank
impl Sync for WorktreeWatchRepoRank
impl Unpin for WorktreeWatchRepoRank
impl UnsafeUnpin for WorktreeWatchRepoRank
impl UnwindSafe for WorktreeWatchRepoRank
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more