github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/user_creation.rs (about) 1 /* 2 * lakeFS API 3 * 4 * lakeFS HTTP API 5 * 6 * The version of the OpenAPI document: 1.0.0 7 * Contact: services@treeverse.io 8 * Generated by: https://openapi-generator.tech 9 */ 10 11 use crate::models; 12 13 #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 14 pub struct UserCreation { 15 /// a unique identifier for the user. 16 #[serde(rename = "id")] 17 pub id: String, 18 #[serde(rename = "invite_user", skip_serializing_if = "Option::is_none")] 19 pub invite_user: Option<bool>, 20 } 21 22 impl UserCreation { 23 pub fn new(id: String) -> UserCreation { 24 UserCreation { 25 id, 26 invite_user: None, 27 } 28 } 29 } 30