Mercurial > lbo > hg > geohub
view src/ids.rs @ 80:8ec6df976a19
Enable ingestion of JSON batches
for Overland, e.g.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 05 Dec 2020 22:14:15 +0100 |
parents | fa2a46761712 |
children |
line wrap: on
line source
/// Check if client name and secret are acceptable. pub fn name_and_secret_acceptable(client: &str, secret: Option<&str>) -> bool { !(client.chars().any(|c| !c.is_ascii_alphanumeric()) || secret .unwrap_or("") .chars() .any(|c| !c.is_ascii_alphanumeric())) }