Skip to main content

Module command

Module command 

Source
Expand description

Palette command builders.

Every leaf parses its key=value args through parse_args. Eval-able leaves build a nomiscript form string for crate::app::App::submit_console_form; reports, account merge, account balance and transaction list build values the caller resolves and runs. Leaves that open modals or switch tabs take no args.

Structs§

ReportRequest
A reports <kind> palette command: the typed args as form values.

Constants§

BALANCE_ACCOUNT
BALANCE_ARGS
The args of account balance, resolved like a form’s select values.

Functions§

build_account_balance
The account label or id account balance names.
build_account_merge
The account merge args as form values: from and into, each at most once.
build_form
Attempt to build a nomiscript form for the leaf at path given args.
build_report_request
Resolve a reports <kind> palette command; Ok(None) for any other path.
build_transaction_filter
The transaction list args as filter values; the accepted keys are the transaction-query descriptor’s, paging ones aside.
parse_args
The non-empty key=value args, each key allowed and given once. An empty value means the key is not given.
report_arg_keys
The keys a report accepts as palette args: its single-value fields.
report_ready
Whether every field the report requires holds a value.