Skip to main content

IncomeCmd

Enum IncomeCmd 

Source
pub enum IncomeCmd {
    Import {
        year: i32,
        file: PathBuf,
    },
    Show {
        year: i32,
    },
    Clear {
        year: i32,
    },
    Answer {
        year: i32,
    },
}
Expand description

Full-return (v1) input subcommands (SPEC §4 / recon-04 §6). v1 ships the TOML bulk-import path + a JSON show; incremental per-field subcommands (add-w2, …) are a follow-on.

Variants§

§

Import

Import full-return inputs from an offline TOML file into the vault for a tax year.

Fields

§year: i32

The tax year (e.g. 2024).

§file: PathBuf

Path to the TOML file describing the full-return inputs.

§

Show

Show the stored full-return inputs for a tax year (JSON, PII redacted), or nothing if none set.

Fields

§year: i32

The tax year (e.g. 2024).

§

Clear

Remove the stored full-return inputs for a tax year (fall back to a raw tax-profile).

Fields

§year: i32

The tax year (e.g. 2024).

§

Answer

Answer the return’s fail-loud questions interactively — the yes/no boxes that have no safe default (can someone claim you as a dependent? Schedule B’s foreign-account and foreign-trust lines) plus the optional dates of birth.

These questions REFUSE the return until they are answered: guessing “no” on your behalf would understate your tax and print an unchecked box you never affirmed. This is the only way to answer them without editing a TOML file. It never asks for a secret — SSNs and the IP PIN belong to set-pii, which does not echo what you type.

Requires an existing return for the year (create one with income import).

Fields

§year: i32

The tax year (e.g. 2024).

Trait Implementations§

Source§

impl FromArgMatches for IncomeCmd

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for IncomeCmd

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V