/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 6.5.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// HumanTaskClaimRequest : Which park a claim or release is about (#1123). Optional in full: an element that holds exactly one parked token needs no body at all.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HumanTaskClaimRequest {
/// The parked token, from `PendingUserTask.token_id`. Required only when the element holds more than one park -- there is no honest default for a multi-instance task, so ambiguity is an error rather than a guess.
#[serde(rename = "token_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub token_id: Option<Option<uuid::Uuid>>,
}
impl HumanTaskClaimRequest {
/// Which park a claim or release is about (#1123). Optional in full: an element that holds exactly one parked token needs no body at all.
pub fn new() -> HumanTaskClaimRequest {
HumanTaskClaimRequest {
token_id: None,
}
}
}