Module twitch_api_rs::resource::users::get_users[][src]

Request to the Get Users endpoint

Example

let response = match GetUsersRequest::builder()
    .set_auth(client_auth_token)
    .add_login("TheHoodlum12")
    .make_request(&client)
    .await {
        Ok(resp) => resp,
        Err(RequestError::MalformedRequest(msg)) => unreachable!("We provided an auth token and at least one request, but it failed with {}", msg),
        // ...
    };

for user in response.users.iter() {
    eprintln!("Found user with display name: {}", user.display_name);
}

Structs

GetUsersRequest

Request to the Get Users endpoint

GetUsersResponse

A Collection of response items returned by GetUsersRequest

UserDescription

A single user datum returned by GetUsersRequest