Skip to main content

validate_labels

Function validate_labels 

Source
pub fn validate_labels(labels: &BTreeMap<String, String>) -> Result<(), String>
Expand description

Checks labels against the bounds documented at module level.

ยงErrors

A human-readable description of the first violation found: too many labels, or a key/value over its length cap. Checked in that order, so a caller with both problems sees the count violation first.