Skip to main content

validate_key

Function validate_key 

Source
pub fn validate_key(key: &str) -> StoreResult<()>
Expand description

Validate a coordination key: 1–MAX_KEY_BYTES bytes of /-separated segments of [A-Za-z0-9_.:=-], none empty, . or ...

@throws StoreError::InvalidId - When the key breaks one of these rules.