Expand description
Format validation helpers for AHB 900-series conditions.
These validate the FORMAT of data element values (decimal places, numeric ranges,
time patterns, ID formats, etc.). They operate on string values extracted from
EDIFACT segments and return ConditionResult.
Re-exports§
pub use super::timezone::is_mesz_utc;pub use super::timezone::is_mez_utc;
Functions§
- validate_
all_ digits - Validate that a string contains only digits (positive integer check).
- validate_
artikel_ pattern - Validate a dash-separated digit pattern like “n1-n2-n1-n3”.
- validate_
email - Validate email format: must contain both ‘@’ and ‘.’.
- validate_
exact_ length - Validate exact character length.
- validate_
hhmm_ equals - Validate that a DTM value’s HHMM portion equals the expected value.
- validate_
hhmm_ range - Validate that a DTM value’s HHMM portion is within a range (inclusive).
- validate_
malo_ id - Validate Marktlokations-ID (MaLo-ID): exactly 11 digits.
- validate_
malo_ or_ zahlpunkt - Validate either MaLo-ID or Zahlpunktbezeichnung format.
- validate_
max_ decimal_ places - Validate that a numeric string has at most
maxdecimal places. - validate_
max_ integer_ digits - Validate that a numeric string has at most
maxinteger digits (before decimal point). - validate_
max_ length - Validate maximum character length.
- validate_
mmddhhmm_ equals - Validate that a DTM value’s MMDDHHMM portion equals the expected value.
- validate_
numeric - Validate a numeric value against a comparison.
- validate_
phone - Validate phone format: must start with ‘+’ followed by only digits.
- validate_
sr_ id - Validate Steuerbare-Ressource-ID (SR-ID): same format as MaLo-ID (11 digits, Luhn check).
- validate_
timezone_ utc - Validate that a DTM value’s timezone portion is “+00” (UTC).
- validate_
tr_ id - Validate Transaktionsreferenz-ID (TR-ID): 1-35 alphanumeric characters.
- validate_
zahlpunkt - Validate Zahlpunktbezeichnung: exactly 33 alphanumeric characters.