Skip to main content

harbor_api/models/
registry_endpoint.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/// RegistryEndpoint : The style of the resource filter
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RegistryEndpoint {
17    /// The endpoint key
18    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
19    pub key: Option<String>,
20    /// The endpoint value
21    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22    pub value: Option<String>,
23}
24
25impl RegistryEndpoint {
26    /// The style of the resource filter
27    pub fn new() -> RegistryEndpoint {
28        RegistryEndpoint {
29            key: None,
30            value: None,
31        }
32    }
33}
34