langfuse_client_base/models/
scim_users_list_response.rs

1/*
2 * langfuse
3 *
4 * ## Authentication  Authenticate with the API using [Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), get API keys in the project settings:  - username: Langfuse Public Key - password: Langfuse Secret Key  ## Exports  - OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml - Postman collection: https://cloud.langfuse.com/generated/postman/collection.json
5 *
6 * The version of the OpenAPI document:
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ScimUsersListResponse {
16    #[serde(rename = "schemas")]
17    pub schemas: Vec<String>,
18    #[serde(rename = "totalResults")]
19    pub total_results: i32,
20    #[serde(rename = "startIndex")]
21    pub start_index: i32,
22    #[serde(rename = "itemsPerPage")]
23    pub items_per_page: i32,
24    #[serde(rename = "Resources")]
25    pub resources: Vec<models::ScimUser>,
26}
27
28impl ScimUsersListResponse {
29    pub fn new(
30        schemas: Vec<String>,
31        total_results: i32,
32        start_index: i32,
33        items_per_page: i32,
34        resources: Vec<models::ScimUser>,
35    ) -> ScimUsersListResponse {
36        ScimUsersListResponse {
37            schemas,
38            total_results,
39            start_index,
40            items_per_page,
41            resources,
42        }
43    }
44}