orvanta-api 3.1.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 3.1.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// BpmnUserTaskFormFieldValue : one option of an enumerated form field (`<flowable:value>` / `<camunda:value>`)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnUserTaskFormFieldValue {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
}

impl BpmnUserTaskFormFieldValue {
    /// one option of an enumerated form field (`<flowable:value>` / `<camunda:value>`)
    pub fn new(id: String) -> BpmnUserTaskFormFieldValue {
        BpmnUserTaskFormFieldValue {
            id,
            name: None,
        }
    }
}