langfuse_client/models/
scim_create_user_request.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 ScimCreateUserRequest {
16    /// User's email address (required)
17    #[serde(rename = "userName")]
18    pub user_name: String,
19    #[serde(rename = "name")]
20    pub name: models::ScimName,
21    /// User's email addresses
22    #[serde(rename = "emails", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub emails: Option<Option<Vec<models::ScimEmail>>>,
24    /// Whether the user is active
25    #[serde(rename = "active", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub active: Option<Option<bool>>,
27    /// Initial password for the user
28    #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub password: Option<Option<String>>,
30}
31
32impl ScimCreateUserRequest {
33    pub fn new(user_name: String, name: models::ScimName) -> ScimCreateUserRequest {
34        ScimCreateUserRequest {
35            user_name,
36            name,
37            emails: None,
38            active: None,
39            password: None,
40        }
41    }
42}
43