Function wicrs_server::api::get_hub [−][src]
pub async fn get_hub(user_id: &str, hub_id: ID) -> Result<Hub>
Expand description
Gets a hub stripped of data the given user should not be able to see.
Arguments
user_id
- ID of the user to check the visiblity of objects for.hub_id
- ID of the hub to get.
Errors
This function may return an error for any of the following reasons:
- The user is not in the hub.
- The hub failed to load for any of the reasons outlined in
Hub::load
.