pub enum Action {
Adopt(i64),
Tick(i64),
Link {
number: i64,
title: String,
open: bool,
},
File,
Hold(String),
Over,
}Expand description
What spar would do with one unchecked item.
Variants§
Adopt(i64)
The line already names an open issue here. Nothing is written.
Tick(i64)
What it names is finished, so the box is ticked. An item that carried its reference before spar touched it is not in doubt.
Link
An issue covers it and nothing linked them. The link is written; the box is not ticked this run whatever state that issue is in, because the match is fuzzy and a wrong adoption that also ticks the box is spar asserting work is done that nobody did.
File
Nothing covers it. One is filed, then linked.
Hold(String)
Left alone, with the reason.
Over
Past max_tracker_children, and said out loud rather than dropped.
Implementations§
Source§impl Action
impl Action
Sourcepub fn change(&self) -> Option<Change>
pub fn change(&self) -> Option<Change>
The edit this writes to the item’s line.
File has none yet, because its issue does not exist until it is filed;
the caller writes the reference the moment it does.
A Link writes the reference and never the tick, whatever state the
issue it matched is in. The match is fuzzy, and a wrong adoption that
also ticks the box is spar asserting work is done that nobody did.
Holding the tick for one run puts the link in front of a person first,
and by the next run the item carries its own reference and is in no more
doubt than one somebody wrote by hand.
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.