rusty_box/rest_api/users/models/users.rs
1/*
2 * Box Platform API
3 *
4 * [Box Platform](https://box.dev) provides functionality to provide access to content stored within [Box](https://box.com). It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention policies.
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: devrel@box.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::rest_api::collaborations::models::collaborations_all_of_order::CollaborationsAllOfOrder;
12
13use super::user::User;
14
15/// Users : A list of users.
16
17#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
18pub struct Users {
19 /// One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than `total_count`. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
20 #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
21 pub total_count: Option<i64>,
22 /// The limit that was used for these entries. This will be the same as the `limit` query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
23 #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
24 pub limit: Option<i64>,
25 /// The 0-based offset of the first entry in this set. This will be the same as the `offset` query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
26 #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
27 pub offset: Option<i64>,
28 /// The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
29 #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
30 pub order: Option<Vec<CollaborationsAllOfOrder>>,
31 #[serde(rename = "entries", skip_serializing_if = "Option::is_none")]
32 pub entries: Option<Vec<User>>,
33}
34
35impl Users {
36 /// A list of users.
37 pub fn new() -> Users {
38 Users {
39 total_count: None,
40 limit: None,
41 offset: None,
42 order: None,
43 entries: None,
44 }
45 }
46}