Function wicrs_server::api::join_hub [−][src]
pub async fn join_hub(user_id: String, hub_id: ID) -> Result
Expand description
Adds the given user to a hub.
Arguments
user_id
- ID of the user to add to the hub.hub_id
- ID of the hub the user is to be added to.
Errors
- The user could not be added to the hub for any of the reasons outlined by [
User::join_hub
]. - The hub could not be saved for any of the reasons outlined by
Hub::save
.