pub async fn toggle_username_is_active(
username: String,
is_active: bool,
client_id: i32,
) -> Result<(), Error>Expand description
Changes active state for a username of the current user. The editable username can’t be disabled. May return an error with a message “USERNAMES_ACTIVE_TOO_MUCH” if the maximum number of active usernames has been reached
§Arguments
username- The username to changeis_active- Pass true to activate the username; pass false to disable itclient_id- The client id to send the request to