rusty_box/rest_api/users/models/post_users_terminate_sessions_request.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).
5 * It provides endpoints for basic manipulation of files and folders,
6 * management of users within an enterprise,
7 * as well as more complex topics such as legal holds and retention policies.
8 *
9 * The version of the OpenAPI document: 2.0.0
10 * Contact: devrel@box.com
11 * Generated by: https://openapi-generator.tech
12 */
13
14//TODO: DEPRECATED - This will be removed in a future version
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct PostUsersTerminateSessionsRequest {
17 /// A list of user IDs
18 #[serde(rename = "user_ids")]
19 pub user_ids: Vec<String>,
20 /// A list of user logins
21 #[serde(rename = "user_logins")]
22 pub user_logins: Vec<String>,
23}
24
25impl PostUsersTerminateSessionsRequest {
26 pub fn new(
27 user_ids: Vec<String>,
28 user_logins: Vec<String>,
29 ) -> PostUsersTerminateSessionsRequest {
30 PostUsersTerminateSessionsRequest {
31 user_ids,
32 user_logins,
33 }
34 }
35}