nautobot_openapi/models/
bulk_writable_config_context_schema_request.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkWritableConfigContextSchemaRequest {
15 #[serde(rename = "id")]
16 pub id: uuid::Uuid,
17 #[serde(
18 rename = "owner_content_type",
19 default,
20 with = "::serde_with::rust::double_option",
21 skip_serializing_if = "Option::is_none"
22 )]
23 pub owner_content_type: Option<Option<String>>,
24 #[serde(rename = "name")]
25 pub name: String,
26 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
27 pub description: Option<String>,
28 #[serde(rename = "data_schema", deserialize_with = "Option::deserialize")]
30 pub data_schema: Option<serde_json::Value>,
31 #[serde(
32 rename = "owner_object_id",
33 default,
34 with = "::serde_with::rust::double_option",
35 skip_serializing_if = "Option::is_none"
36 )]
37 pub owner_object_id: Option<Option<uuid::Uuid>>,
38 #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
39 pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
40 #[serde(rename = "relationships", skip_serializing_if = "Option::is_none")]
41 pub relationships: Option<
42 ::std::collections::HashMap<
43 String,
44 crate::models::ApprovalWorkflowDefinitionRequestRelationshipsValue,
45 >,
46 >,
47}
48
49impl BulkWritableConfigContextSchemaRequest {
50 pub fn new(
52 id: uuid::Uuid,
53 name: String,
54 data_schema: Option<serde_json::Value>,
55 ) -> BulkWritableConfigContextSchemaRequest {
56 BulkWritableConfigContextSchemaRequest {
57 id,
58 owner_content_type: None,
59 name,
60 description: None,
61 data_schema,
62 owner_object_id: None,
63 custom_fields: None,
64 relationships: None,
65 }
66 }
67}