Function wicrs_server::api::get_hub_member[][src]

pub async fn get_hub_member(
    actor_id: &str,
    hub_id: ID,
    user_id: &str
) -> Result<HubMember>
Expand description

Gets the information on a member of a hub.

Arguments

  • actor_id - ID of the user who is requesting the information.
  • hub_id - Hub from which to get the information.
  • user_id - ID of the user whose information is being requested.

Errors

This function may return an error for any of the following reasons:

  • The requesting user is not in the hub.
  • The user whose information is being requested is not in the hub.
  • The hub could not be loaded for any of the reasons outlined by Hub::load.