Function ruma_identifiers::user_id::localpart_is_fully_comforming[][src]

pub fn localpart_is_fully_comforming(localpart: &str) -> Result<bool, Error>

Check whether the given user id localpart is valid and fully conforming

Returns an Err for invalid user ID localparts, Ok(false) for historical user ID localparts and Ok(true) for fully conforming user ID localparts.