ruma::user_id

Function localpart_is_fully_conforming

Source
pub fn localpart_is_fully_conforming(localpart: &str) -> Result<bool, Error>
Expand description

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.