/*
* NetHSM
*
* All endpoints expect exactly the specified JSON. Additional properties will cause a Bad Request Error (400). All HTTP errors contain a JSON structure with an explanation of type string. All [base64](https://tools.ietf.org/html/rfc4648#section-4) encoded values are Big Endian.
*
* The version of the OpenAPI document: v1
* Contact: Nitrokey <info@nitrokey.com>
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UserPostData {
#[serde(rename = "realName")]
pub real_name: String,
#[serde(rename = "role")]
pub role: crate::models::UserRole,
#[serde(rename = "passphrase")]
pub passphrase: String,
}
impl UserPostData {
pub fn new(
real_name: String,
role: crate::models::UserRole,
passphrase: String,
) -> UserPostData {
UserPostData {
real_name,
role,
passphrase,
}
}
}