pub struct ScheduleDMap {Show 20 fields
pub form: String,
pub year: i32,
pub identity: Option<IdentityCells>,
pub line3: AmountCols,
pub line7_h: String,
pub line10: AmountCols,
pub line15_h: String,
pub line16_h: String,
pub line6: Option<MoneyCell>,
pub line13: Option<MoneyCell>,
pub line14: Option<MoneyCell>,
pub line18: Option<MoneyCell>,
pub line19: Option<MoneyCell>,
pub line21: Option<MoneyCell>,
pub line17: Option<YesNoPair>,
pub line20: Option<YesNoPair>,
pub line22: Option<YesNoPair>,
pub table_token: String,
pub qof_yes: Option<CheckChoice>,
pub qof_no: Option<CheckChoice>,
}Expand description
The Schedule D field map for one tax year.
Fields§
§form: String"schedule_d".
year: i32Tax year.
identity: Option<IdentityCells>The name + SSN header cells (P6.2). Option because this map is SHARED with the crypto-slice
path, whose 2017/2025 editions have no verified identity FQNs and no ReturnInputs to source an
identity from. The FULL-return filler refuses on None — it may not emit an unnamed form.
line3: AmountColsLine 3 — Part I total from Form 8949 (Box C or Box I): columns d,e,g,h.
line7_h: StringLine 7 — net short-term gain/loss (column h).
line10: AmountColsLine 10 — Part II total from Form 8949 (Box F or Box L): columns d,e,g,h.
line15_h: StringLine 15 — net long-term gain/loss (column h).
line16_h: StringLine 16 — total (line 7 + line 15), column h, page 2.
line6: Option<MoneyCell>L6 — short-term capital loss carryover. PAREN box ⇒ positive magnitude. Full-return only
(None on the 2017/2025 maps, which serve the crypto-slice fill).
line13: Option<MoneyCell>L13 — capital gain distributions (Σ 1099-DIV box 2a). Full-return only.
line14: Option<MoneyCell>L14 — long-term capital loss carryover. PAREN box ⇒ positive magnitude. Full-return only.
line18: Option<MoneyCell>L18 — 28%-Rate Gain Worksheet (always 0; a nonzero amount is refused upstream). Full-return only.
line19: Option<MoneyCell>L19 — Unrecaptured §1250 Gain Worksheet (always 0; refused upstream). Full-return only.
line21: Option<MoneyCell>L21 — the §1211(b) allowed loss offset. PAREN box ⇒ positive magnitude. Full-return only.
line17: Option<YesNoPair>L17 — “Are lines 15 and 16 both gains?” Full-return only.
line20: Option<YesNoPair>L20 — “Are lines 18 and 19 both zero or blank…?” Full-return only.
line22: Option<YesNoPair>L22 — “Do you have qualified dividends on Form 1040, line 3a?” Full-return only.
table_token: StringThe Part I amount-column subform token used to re-derive the geometry bands — per-year map
config (Table_PartI for 2024/2025, TablePartI (no underscore) for the 2017 form).
qof_yes: Option<CheckChoice>QOF question “Yes” choice. None on years whose Schedule D has no QOF question (2017 —
Qualified Opportunity Funds began in 2019).
qof_no: Option<CheckChoice>QOF question “No” choice (answered No when present). None on 2017 (no QOF question).
Implementations§
Source§impl ScheduleDMap
impl ScheduleDMap
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 ScheduleDMap
impl Clone for ScheduleDMap
Source§fn clone(&self) -> ScheduleDMap
fn clone(&self) -> ScheduleDMap
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more