pub struct ScoredUnit {
pub id: String,
pub title: String,
pub priority: u8,
pub score: f64,
pub unblocks: Vec<String>,
pub age_days: u64,
pub attempts: u32,
}Expand description
A scored unit with metadata for display.
Fields§
§id: String§title: String§priority: u8§score: f64§unblocks: Vec<String>IDs of units this one unblocks (directly depends-on this unit).
age_days: u64Age in days since creation.
attempts: u32Number of verify attempts so far.
Trait Implementations§
Source§impl Debug for ScoredUnit
impl Debug for ScoredUnit
Auto Trait Implementations§
impl Freeze for ScoredUnit
impl RefUnwindSafe for ScoredUnit
impl Send for ScoredUnit
impl Sync for ScoredUnit
impl Unpin for ScoredUnit
impl UnsafeUnpin for ScoredUnit
impl UnwindSafe for ScoredUnit
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
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