harbor_api/models/
string_config_item.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 StringConfigItem {
16    /// The string value of current config item
17    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
18    pub value: Option<String>,
19    /// The configure item can be updated or not
20    #[serde(rename = "editable", skip_serializing_if = "Option::is_none")]
21    pub editable: Option<bool>,
22}
23
24impl StringConfigItem {
25    pub fn new() -> StringConfigItem {
26        StringConfigItem {
27            value: None,
28            editable: None,
29        }
30    }
31}
32