/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PeerSelectorSchema {
    #[serde(rename = "all", skip_serializing_if = "Option::is_none")]
    pub all: Option<bool>,
    #[serde(rename = "match_labels", skip_serializing_if = "Option::is_none")]
    pub match_labels: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "match_peers", skip_serializing_if = "Option::is_none")]
    pub match_peers: Option<Vec<uuid::Uuid>>,
    #[serde(rename = "match_region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub match_region: Option<Option<String>>,
}

impl PeerSelectorSchema {
    pub fn new() -> PeerSelectorSchema {
        PeerSelectorSchema {
            all: None,
            match_labels: None,
            match_peers: None,
            match_region: None,
        }
    }
}

