Skip to main content

validate_txt

Function validate_txt 

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

Check a TXT record against the size and key rules: at most TXT_MAX_ENTRIES entries, keys of 1..=TXT_MAX_KEY_LEN printable ASCII characters without =, values of at most TXT_MAX_VALUE_LEN bytes.