pub struct Form1040Map {
pub form: String,
pub year: i32,
pub line7a: MoneyCell,
pub da_present: bool,
pub da_yes: Option<CheckChoice>,
pub da_no: Option<CheckChoice>,
}Expand description
The Form 1040 capital-gains field map for one tax year: the capital-gain amount cell (line 7a in 2025 / line 7 in 2024 / line 13 in 2017) + the Digital-Asset question (absent in 2017).
Fields§
§form: String"f1040".
year: i32Tax year.
line7a: MoneyCellThe capital-gain amount cell (line 7a for 2025, line 7 for 2024, line 13 for 2017). A
single field on 2024/2025; a dollars+cents [MoneyPair] on the 2017 form.
da_present: boolWhether this year’s 1040 carries the Digital-Asset question — per-year scaffolding. When
true (2024/2025) the fill answers it “Yes” and runs the map-independent adjacency guard;
2017 sets it false (no DA question — the map omits da_yes/da_no and the fill produces
the 1040 iff there is reportable capital activity).
da_yes: Option<CheckChoice>Digital-Asset question “Yes” (LEFT member of the adjacent pair, on-state /1). None when the
year’s 1040 has no DA question (2017).
da_no: Option<CheckChoice>Digital-Asset question “No” (right member, on-state /2) — never checked by btctax. None
when the year’s 1040 has no DA question (2017).
Implementations§
Source§impl Form1040Map
impl Form1040Map
Sourcepub fn for_year(year: i32) -> Result<Self, FormsError>
pub fn for_year(year: i32) -> Result<Self, FormsError>
The map for a supported tax year.
Trait Implementations§
Source§impl Clone for Form1040Map
impl Clone for Form1040Map
Source§fn clone(&self) -> Form1040Map
fn clone(&self) -> Form1040Map
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more