Function wicrs_server::api::leave_hub [−][src]
pub async fn leave_hub(user_id: &str, hub_id: ID) -> Result
Expand description
Removes the given user from a hub.
Arguments
user_id
- ID of the user to remove from the hub.hub_id
- ID of the hub the user is to be removed from.
Errors
- The user could not be removed from the hub for any of the reasons outlined by [
User::leave_hub
]. - The hub could not be saved for any of the reasons outlined by
Hub::save
.