AkurAI Build
Menu

Public repository / ca4cd9d60ba82d8f52d17e9e2877c17df711cf00

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())
}