nautobot_openapi/models/
bulk_writable_power_panel_request.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkWritablePowerPanelRequest {
15 #[serde(rename = "id")]
16 pub id: uuid::Uuid,
17 #[serde(rename = "panel_type", skip_serializing_if = "Option::is_none")]
18 pub panel_type: Option<crate::models::PanelTypeEnum>,
19 #[serde(rename = "power_path", skip_serializing_if = "Option::is_none")]
20 pub power_path: Option<crate::models::PowerPathEnum>,
21 #[serde(rename = "name")]
22 pub name: String,
23 #[serde(
25 rename = "breaker_position_count",
26 default,
27 with = "::serde_with::rust::double_option",
28 skip_serializing_if = "Option::is_none"
29 )]
30 pub breaker_position_count: Option<Option<i32>>,
31 #[serde(rename = "location")]
32 pub location: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
33 #[serde(
34 rename = "rack_group",
35 default,
36 with = "::serde_with::rust::double_option",
37 skip_serializing_if = "Option::is_none"
38 )]
39 pub rack_group: Option<Option<Box<crate::models::ApprovalWorkflowUser>>>,
40 #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
41 pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
42 #[serde(rename = "relationships", skip_serializing_if = "Option::is_none")]
43 pub relationships: Option<
44 ::std::collections::HashMap<
45 String,
46 crate::models::ApprovalWorkflowDefinitionRequestRelationshipsValue,
47 >,
48 >,
49 #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
50 pub tags: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
51}
52
53impl BulkWritablePowerPanelRequest {
54 pub fn new(
56 id: uuid::Uuid,
57 name: String,
58 location: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
59 ) -> BulkWritablePowerPanelRequest {
60 BulkWritablePowerPanelRequest {
61 id,
62 panel_type: None,
63 power_path: None,
64 name,
65 breaker_position_count: None,
66 location: Box::new(location),
67 rack_group: None,
68 custom_fields: None,
69 relationships: None,
70 tags: None,
71 }
72 }
73}