harbor_api/models/
robot_created.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/// RobotCreated : The response for robot account creation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RobotCreated {
17    /// The ID of the robot
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The name of the robot
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The secret of the robot
24    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
25    pub secret: Option<String>,
26    /// The creation time of the robot.
27    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
28    pub creation_time: Option<String>,
29    /// The expiration date of the robot
30    #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
31    pub expires_at: Option<i64>,
32}
33
34impl RobotCreated {
35    /// The response for robot account creation.
36    pub fn new() -> RobotCreated {
37        RobotCreated {
38            id: None,
39            name: None,
40            secret: None,
41            creation_time: None,
42            expires_at: None,
43        }
44    }
45}
46