Function wicrs_server::api::change_user_description [−][src]
pub async fn change_user_description<S: Into<String> + Clone>(
user_id: &ID,
new_description: S
) -> Result<String>
Changes a user’s description. Returns the user’s previous description if successful.
Arguments
user
- User whose name is to be changed.new_description
- New description for the user.
Errors
This function may return an error for any of the following reasons.
- The modified user data could not be saved for any of the reasons outlined in
User::save
. - The new status was bigger than
crate::MAX_DESCRIPTION_SIZE
.