Skip to main content

parse_tracking_id

Function parse_tracking_id 

Source
pub fn parse_tracking_id(
    tracking_id: &str,
    prefix: &str,
) -> Result<(String, String)>
Expand description

Parse a tracking ID into (year, sequence) components.

Expects format like ndaal-sa-2026-003 where the naming convention prefix is ndaal-sa-.

§Errors

Returns an error if the tracking ID doesn’t match the expected format.