Skip to main content

build_report_request

Function build_report_request 

Source
pub fn build_report_request(
    path: &[String],
    args: &[(String, String)],
) -> Result<Option<ReportRequest>, CommandError>
Expand description

Try to build a ReportRequest from a reports <kind> palette command.

Balance ignores from/to; Activity and Breakdown require them. Returns Ok(None) when from/to are absent for date-needing reports (caller should open the params modal instead).

ยงErrors

Returns an error if date coercion fails for a date that was actually provided.