Menu
Public repository / e7cf68926f4b35dcf3de6288ab6880ec73dd1e06
AkurAI-IDP / src/lib/mod.rs
Latest change e1794828e5fae9a8545a66e77b2e8200cf8c090b - feat: add organization lifecycle telemetry by Ólafur Búi Ólafsson
pub mod audit;
pub mod crypto;
pub mod html;
pub mod jwt;
pub mod organizations;
pub mod password;
pub mod pkce;
pub mod telemetry;
pub mod totp;
/// Parse a DB column that may be a JSON array `["a","b"]` or space-separated `"a b"`.
pub fn parse_json_or_space_separated(s: &str) -> Vec<String> {
serde_json::from_str::<Vec<String>>(s)
.unwrap_or_else(|_| s.split_whitespace().map(String::from).collect())
}