harbor_api/models/
addition_link.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 AdditionLink {
16    /// The link of the addition
17    #[serde(rename = "href", skip_serializing_if = "Option::is_none")]
18    pub href: Option<String>,
19    /// Determine whether the link is an absolute URL or not
20    #[serde(rename = "absolute", skip_serializing_if = "Option::is_none")]
21    pub absolute: Option<bool>,
22}
23
24impl AdditionLink {
25    pub fn new() -> AdditionLink {
26        AdditionLink {
27            href: None,
28            absolute: None,
29        }
30    }
31}
32