pub struct ScheduleWarning {
pub schedule_id: CycleScheduleId,
pub cycle_id: Option<GeneratedCycleId>,
pub kind: ScheduleWarningKind,
pub effective_dates: Option<EffectiveDates>,
pub next_generation: Option<NextCycleKey>,
pub available_actions: Vec<WarningAction>,
pub diagnostic: Option<ScheduleDiagnostic>,
}Expand description
One refresh warning: a question with a closed set of answers, or a diagnostic.
Which fields are meaningful follows the kind, and the two are checked against each other in this module’s tests:
ended/duecarry the instance inSelf::cycle_idand its range inSelf::effective_dates;look-aheadcarries the candidate a confirmed generation would create inSelf::next_generation— and nocycle_id, because nothing exists yet;failurecarriesSelf::diagnosticand no actions.
Fields§
§schedule_id: CycleScheduleIdThe schedule the warning is about.
cycle_id: Option<GeneratedCycleId>The existing instance the warning is about, when there is one.
kind: ScheduleWarningKindWhich question this is.
effective_dates: Option<EffectiveDates>The existing instance’s effective range, when there is one.
next_generation: Option<NextCycleKey>The candidate a confirmed generation would create, when the warning is about one that does not exist yet (or when a failure could not give it a date).
available_actions: Vec<WarningAction>The explicit decisions this warning accepts; empty for a failure.
diagnostic: Option<ScheduleDiagnostic>The field-aware finding, present exactly for
ScheduleWarningKind::Failure.
Trait Implementations§
Source§impl Clone for ScheduleWarning
impl Clone for ScheduleWarning
Source§impl Debug for ScheduleWarning
impl Debug for ScheduleWarning
impl Eq for ScheduleWarning
Source§impl PartialEq for ScheduleWarning
impl PartialEq for ScheduleWarning
impl StructuralPartialEq for ScheduleWarning
Auto Trait Implementations§
impl Freeze for ScheduleWarning
impl RefUnwindSafe for ScheduleWarning
impl Send for ScheduleWarning
impl Sync for ScheduleWarning
impl Unpin for ScheduleWarning
impl UnsafeUnpin for ScheduleWarning
impl UnwindSafe for ScheduleWarning
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