Skip to main content

harbor_api/models/
robot_permission.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 RobotPermission {
16    /// The kind of the permission
17    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
18    pub kind: Option<String>,
19    /// The namespace of the permission
20    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
21    pub namespace: Option<String>,
22    #[serde(rename = "access", skip_serializing_if = "Option::is_none")]
23    pub access: Option<Vec<models::Access>>,
24}
25
26impl RobotPermission {
27    pub fn new() -> RobotPermission {
28        RobotPermission {
29            kind: None,
30            namespace: None,
31            access: None,
32        }
33    }
34}
35