pub struct DueWarning {
pub series_id: SeriesId,
pub series_name: String,
pub occurrence_key: OccurrenceKey,
pub due_date: DateKey,
pub rule_summary: String,
pub available_actions: Vec<WarningAction>,
}Expand description
One due occurrence, as a self-contained question.
Fields§
§series_id: SeriesIdThe series it belongs to.
series_name: StringThe series’ display name, for the sentence a user reads.
occurrence_key: OccurrenceKeyThe candidate’s stable identity — what a decision is recorded against.
due_date: DateKeyThe candidate’s canonical date.
rule_summary: StringThe rule in words, so a warning explains itself without the definition.
available_actions: Vec<WarningAction>The explicit decisions this warning accepts.
Implementations§
Trait Implementations§
Source§impl Clone for DueWarning
impl Clone for DueWarning
Source§impl Debug for DueWarning
impl Debug for DueWarning
impl Eq for DueWarning
Source§impl PartialEq for DueWarning
impl PartialEq for DueWarning
impl StructuralPartialEq for DueWarning
Auto Trait Implementations§
impl Freeze for DueWarning
impl RefUnwindSafe for DueWarning
impl Send for DueWarning
impl Sync for DueWarning
impl Unpin for DueWarning
impl UnsafeUnpin for DueWarning
impl UnwindSafe for DueWarning
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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