harbor_api/models/
robot_sec.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/// RobotSec : The response for refresh/update robot account secret.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RobotSec {
17    /// The secret of the robot
18    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
19    pub secret: Option<String>,
20}
21
22impl RobotSec {
23    /// The response for refresh/update robot account secret.
24    pub fn new() -> RobotSec {
25        RobotSec {
26            secret: None,
27        }
28    }
29}
30