Skip to main content

tapis_authenticator/models/
profile.rs

1/*
2 * Authenticator
3 *
4 * REST API and web server providing authentication for a Tapis v3 instance.
5 *
6 * The version of the OpenAPI document: 1
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Profile : The profile associated with a Tapis identity. NOTE -the fields in the Profile object are populated on a best-effort basis and should not be relied upon. Only the username field is guaranteed to be populated.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Profile {
17    /// The username associated with the profile.
18    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
19    pub username: Option<String>,
20    /// The email address associated with the profile.
21    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
22    pub email: Option<String>,
23    /// The full name of the user.
24    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25    pub name: Option<String>,
26}
27
28impl Profile {
29    /// The profile associated with a Tapis identity. NOTE -the fields in the Profile object are populated on a best-effort basis and should not be relied upon. Only the username field is guaranteed to be populated.
30    pub fn new() -> Profile {
31        Profile {
32            username: None,
33            email: None,
34            name: None,
35        }
36    }
37}