clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConfigNotificationsGetMatchersResponseDataInner {

    /// Comment.
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,

    /// Disable this matcher.
    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
    pub disable: Option<bool>,

    /// Invert match of the whole filter.
    #[serde(rename = "invert-match", skip_serializing_if = "Option::is_none")]
    pub invert_match: Option<bool>,

    /// List of matched severity levels.
    #[serde(rename = "match-calendar", skip_serializing_if = "Option::is_none")]
    pub match_calendar: Option<Vec<String>>,

    /// List of matched metadata fields.
    #[serde(rename = "match-field", skip_serializing_if = "Option::is_none")]
    pub match_field: Option<Vec<String>>,

    /// List of matched severity levels.
    #[serde(rename = "match-severity", skip_serializing_if = "Option::is_none")]
    pub match_severity: Option<Vec<String>>,

    /// The mode in which the results of matches are combined.
    #[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
    pub mode: Option<models::PbsModeModeEnum>,

    /// Name schema for targets and matchers
    #[serde(rename = "name")]
    pub name: String,

    /// The origin of a notification configuration entry.
    #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
    pub origin: Option<models::PbsOriginEnum>,

    /// Targets to notify.
    #[serde(rename = "target", skip_serializing_if = "Option::is_none")]
    pub target: Option<Vec<String>>,


}

impl ConfigNotificationsGetMatchersResponseDataInner {
    pub fn new(name: String) -> ConfigNotificationsGetMatchersResponseDataInner {
        ConfigNotificationsGetMatchersResponseDataInner {
            
            comment: None,
            
            disable: None,
            
            invert_match: None,
            
            match_calendar: None,
            
            match_field: None,
            
            match_severity: None,
            
            mode: None,
            
            name,
            
            origin: None,
            
            target: None,
            
        }
    }
}