langfuse_client/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)]
15#[cfg_attr(feature="bon", derive(bon::Builder))]
16pub struct ScimUsersListResponse {
17    #[serde(rename = "schemas")]
18    pub schemas: Vec<String>,
19    #[serde(rename = "totalResults")]
20    pub total_results: i32,
21    #[serde(rename = "startIndex")]
22    pub start_index: i32,
23    #[serde(rename = "itemsPerPage")]
24    pub items_per_page: i32,
25    #[serde(rename = "Resources")]
26    pub resources: Vec<models::ScimUser>,
27}
28
29impl ScimUsersListResponse {
30    pub fn new(schemas: Vec<String>, total_results: i32, start_index: i32, items_per_page: i32, resources: Vec<models::ScimUser>) -> ScimUsersListResponse {
31        ScimUsersListResponse {
32            schemas,
33            total_results,
34            start_index,
35            items_per_page,
36            resources,
37        }
38    }
39}
40