#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BulkWritableApprovalWorkflowDefinitionRequest {
#[serde(rename = "id")]
pub id: uuid::Uuid,
#[serde(rename = "model_content_type")]
pub model_content_type: String,
#[serde(rename = "name")]
pub name: String,
#[serde(
rename = "model_constraints",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub model_constraints: Option<Option<serde_json::Value>>,
#[serde(rename = "weight", skip_serializing_if = "Option::is_none")]
pub weight: Option<i32>,
#[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
#[serde(rename = "relationships", skip_serializing_if = "Option::is_none")]
pub relationships: Option<
::std::collections::HashMap<
String,
crate::models::ApprovalWorkflowDefinitionRequestRelationshipsValue,
>,
>,
}
impl BulkWritableApprovalWorkflowDefinitionRequest {
pub fn new(
id: uuid::Uuid,
model_content_type: String,
name: String,
) -> BulkWritableApprovalWorkflowDefinitionRequest {
BulkWritableApprovalWorkflowDefinitionRequest {
id,
model_content_type,
name,
model_constraints: None,
weight: None,
custom_fields: None,
relationships: None,
}
}
}