pub enum Ask {
Declaration(&'static FormQuestion),
Skippable(&'static SkippableQuestion),
}Expand description
One thing income answer asks: a MANDATORY declaration (from the FORM_QUESTIONS registry — a bare
Enter with nothing on file is refused, never accepted as an answer) or a SKIPPABLE prompt (from the
core SKIPPABLE_QUESTIONS registry — a bare Enter leaves None, forgoing the benefit lawfully).
Variants§
Declaration(&'static FormQuestion)
Skippable(&'static SkippableQuestion)
Implementations§
Source§impl Ask
impl Ask
Sourcepub fn declaration_id(&self) -> Option<QuestionId>
pub fn declaration_id(&self) -> Option<QuestionId>
The registry QuestionId if this is a declaration — for tests that assert WHICH questions are live.
Sourcepub fn is_skippable(&self) -> bool
pub fn is_skippable(&self) -> bool
Whether a bare Enter with nothing on file is a legitimate outcome. True for skippables (DOBs), false for declarations — silence on a declaration is exactly what D-8 forbids.
Auto Trait Implementations§
impl Freeze for Ask
impl RefUnwindSafe for Ask
impl Send for Ask
impl Sync for Ask
impl Unpin for Ask
impl UnsafeUnpin for Ask
impl UnwindSafe for Ask
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