Skip to main content

harbor_api/models/
oidc_user_info.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
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 OidcUserInfo {
16    /// the ID of the OIDC info record
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    /// the ID of the user
20    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
21    pub user_id: Option<i32>,
22    /// the concatenation of sub and issuer in the ID token
23    #[serde(rename = "subiss", skip_serializing_if = "Option::is_none")]
24    pub subiss: Option<String>,
25    /// the secret of the OIDC user that can be used for CLI to push/pull artifacts
26    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
27    pub secret: Option<String>,
28    /// The creation time of the OIDC user info record.
29    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
30    pub creation_time: Option<String>,
31    /// The update time of the OIDC user info record.
32    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
33    pub update_time: Option<String>,
34}
35
36impl OidcUserInfo {
37    pub fn new() -> OidcUserInfo {
38        OidcUserInfo {
39            id: None,
40            user_id: None,
41            subiss: None,
42            secret: None,
43            creation_time: None,
44            update_time: None,
45        }
46    }
47}
48