pub struct Watched {Show 14 fields
pub kind: ItemKind,
pub title: String,
pub author: String,
pub head: Option<String>,
pub requested_noticed: bool,
pub assigned_noticed: bool,
pub failures: u32,
pub retry_after: u64,
pub said_capped: bool,
pub said_resume: bool,
pub last_dispatched: Option<u64>,
pub held: BTreeSet<Trigger>,
pub assignment_judged: Option<String>,
pub assignment_raised: Option<String>,
}Expand description
What the listener knows about one item it is watching.
Fields§
§kind: ItemKind§title: String§head: Option<String>The head the listener last saw. A sweep raises Pushed only when this changes, so a commit spar itself just read is not news.
requested_noticed: bool§assigned_noticed: bool§failures: u32§retry_after: u64§said_capped: bool§said_resume: bool§last_dispatched: Option<u64>§held: BTreeSet<Trigger>What a pending item was waiting on when the listener gave up on it. Giving up waits for the item to change, and on a pull request spar has not reviewed that change is often a push alone, which leads nowhere, so the reasons come back with it.
assignment_judged: Option<String>For an issue: the newest assignment of the viewer that spar ran on or ignored. A notification thread keeps the reason it was raised for, so an issue thread that began with an assignment says so on every later comment, and only an assignment newer than this is news.
assignment_raised: Option<String>For an issue: the newest assignment of the viewer the sweep already raised, so it is raised once rather than on every sweep.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Watched
impl<'de> Deserialize<'de> for Watched
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>,
impl Eq for Watched
impl StructuralPartialEq for Watched
Auto Trait Implementations§
impl Freeze for Watched
impl RefUnwindSafe for Watched
impl Send for Watched
impl Sync for Watched
impl Unpin for Watched
impl UnsafeUnpin for Watched
impl UnwindSafe for Watched
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.