pub struct Effort {
pub primary: Option<String>,
pub fallback: Option<String>,
pub kind: &'static str,
pub subject: Option<i64>,
/* private fields */
}Expand description
What one call asks for, and what its stand in would ask for.
Two values rather than one because a fallback runs a different CLI, whose effort words are its own. Handing the primary’s word to it is wrong, and dropping the schedule at the handover, which is what happened before, makes a fallback ignore a configuration it has its own answer for.
Fields§
§primary: Option<String>§fallback: Option<String>§kind: &'static strThe kind of call, as the effort schedule names it. Carried here because every call site already builds one of these, and the accounting needs to know what it was asked, not only who was asked.
subject: Option<i64>The issue or pull request the call is about, when it is about one.
Implementations§
Trait Implementations§
impl Eq for Effort
impl StructuralPartialEq for Effort
Auto Trait Implementations§
impl Freeze for Effort
impl RefUnwindSafe for Effort
impl Send for Effort
impl Sync for Effort
impl Unpin for Effort
impl UnsafeUnpin for Effort
impl UnwindSafe for Effort
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> 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
Compare self to
key and return true if they are equal.