/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.5.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListUsers200ResponseUsersInner {
#[serde(rename = "_id", skip_serializing_if = "Option::is_none")]
pub _id: Option<String>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
#[serde(rename = "role", skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
#[serde(rename = "isRoot", skip_serializing_if = "Option::is_none")]
pub is_root: Option<bool>,
#[serde(rename = "profileAccess", skip_serializing_if = "Option::is_none")]
pub profile_access: Option<Vec<String>>,
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
/// Last sign-in, stamped at most once an hour, so it is accurate to within an hour rather than to the exact session. Omitted for members with no recorded sign-in since the field shipped, which does not mean they never signed in.
#[serde(rename = "lastLoginAt", skip_serializing_if = "Option::is_none")]
pub last_login_at: Option<String>,
}
impl ListUsers200ResponseUsersInner {
pub fn new() -> ListUsers200ResponseUsersInner {
ListUsers200ResponseUsersInner {
_id: None,
name: None,
email: None,
role: None,
is_root: None,
profile_access: None,
created_at: None,
last_login_at: None,
}
}
}