pub struct Item {}Fields§
§id: String§kind: String§num: u32§title: String§status: String§impact: u8§urgency: u8§risk: u8§effort: u8§needs: Vec<String>§docs: Vec<String>Documents of other items this item also shows, as project-relative paths.
finished: Option<String>§source: String§body: StringImplementations§
Source§impl Item
impl Item
pub fn new(kind: &str, num: u32, title: &str) -> Item
Sourcepub fn score(&self) -> f64
pub fn score(&self) -> f64
(impact + urgency + risk) * 10 / effort, to one decimal. Rounds half
to even, as Python’s round does, so 16.25 is 16.2 here as on the
old board.
Sourcepub fn with_fields_of(&self, other: &Item) -> Item
pub fn with_fields_of(&self, other: &Item) -> Item
This item’s id and number with other’s fields (its kind included).
pub fn is_closed(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Itemwhere
RawVecInner: Send,
impl Sync for Itemwhere
RawVecInner: Sync,
impl Unpin for Item
impl UnsafeUnpin for Itemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Itemwhere
RawVecInner: UnwindSafe,
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