fastly_api/models/iam_v1_role_list_response.rs
1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5 *
6 */
7
8/// IamV1RoleListResponse : Paginated list of IAM roles.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct IamV1RoleListResponse {
14 /// Maximum number of results returned.
15 #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
16 pub limit: Option<i32>,
17 /// Cursor for the next page.
18 #[serde(rename = "next_cursor", skip_serializing_if = "Option::is_none")]
19 pub next_cursor: Option<String>,
20 /// Page of IAM roles (length ≤ limit).
21 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
22 pub data: Option<Vec<crate::models::IamV1RoleResponse>>,
23}
24
25impl IamV1RoleListResponse {
26 /// Paginated list of IAM roles.
27 pub fn new() -> IamV1RoleListResponse {
28 IamV1RoleListResponse {
29 limit: None,
30 next_cursor: None,
31 data: None,
32 }
33 }
34}
35
36