harbor_api/models/
retention_metadata.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/// RetentionMetadata : the tag retention metadata
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RetentionMetadata {
17    /// templates
18    #[serde(rename = "templates", skip_serializing_if = "Option::is_none")]
19    pub templates: Option<Vec<models::RetentionRuleMetadata>>,
20    /// supported scope selectors
21    #[serde(rename = "scope_selectors", skip_serializing_if = "Option::is_none")]
22    pub scope_selectors: Option<Vec<models::RetentionSelectorMetadata>>,
23    /// supported tag selectors
24    #[serde(rename = "tag_selectors", skip_serializing_if = "Option::is_none")]
25    pub tag_selectors: Option<Vec<models::RetentionSelectorMetadata>>,
26}
27
28impl RetentionMetadata {
29    /// the tag retention metadata
30    pub fn new() -> RetentionMetadata {
31        RetentionMetadata {
32            templates: None,
33            scope_selectors: None,
34            tag_selectors: None,
35        }
36    }
37}
38