/*
 * Pescheck API
 *
 * Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
 *
 * The version of the OpenAPI document: 2.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// PatchedV2ProfilePartialUpdate : PATCH body. Only name and description are editable. Sending `checks` is explicitly rejected - use PUT to replace the full check list.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchedV2ProfilePartialUpdate {
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
}

impl PatchedV2ProfilePartialUpdate {
    /// PATCH body. Only name and description are editable. Sending `checks` is explicitly rejected - use PUT to replace the full check list.
    pub fn new() -> PatchedV2ProfilePartialUpdate {
        PatchedV2ProfilePartialUpdate {
            name: None,
            description: None,
        }
    }
}

