MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_member

Function get_member

atomic-teams/src/member.rs:59–71  ·  view source on GitHub ↗

Get details for a single organization member. # Arguments `client` — Authenticated storage client. `org_slug` — URL-safe slug of the organization. `identity_id` — Identity of the member to retrieve.

(
    client: &StorageClient,
    org_slug: &str,
    identity_id: Uuid,
)

Source from the content-addressed store, hash-verified

57/// * `org_slug` — URL-safe slug of the organization.
58/// * `identity_id` — Identity of the member to retrieve.
59pub async fn get_member(
60 client: &StorageClient,
61 org_slug: &str,
62 identity_id: Uuid,
63) -> TeamsResult<OrgMemberInfo> {
64 let path = format!("/orgs/{org_slug}/members/{identity_id}");
65 client.get(&path).await.map_err(|e| {
66 map_remote_error(
67 e,
68 format!("member identity {identity_id} in org {org_slug}"),
69 )
70 })
71}
72
73/// Update the role of an existing organization member.
74///

Callers

nothing calls this directly

Calls 2

map_remote_errorFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected