Skip to main content

build_program_record

Function build_program_record 

Source
pub fn build_program_record(
    version: &str,
    command_line: &str,
    previous_program: Option<&str>,
) -> Result<Map<Program>>
Expand description

Build a @PG record with all standard fields.

§Arguments

  • version - Program version string
  • command_line - Full command line invocation
  • previous_program - Optional ID of previous program for PP chaining

§Returns

A Map<Program> ready to add to a header.

§Errors

Returns an error if the program record cannot be built.