netbox_openapi/models/
patched_bulk_power_panel_request.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct PatchedBulkPowerPanelRequest {
15 #[serde(rename = "id")]
16 pub id: i32,
17 #[serde(rename = "site", skip_serializing_if = "Option::is_none")]
18 pub site: Option<Box<crate::models::BulkDeviceWithConfigContextRequestSite>>,
19 #[serde(
20 rename = "location",
21 default,
22 with = "::serde_with::rust::double_option",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub location: Option<Option<Box<crate::models::BulkDeviceWithConfigContextRequestLocation>>>,
26 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27 pub name: Option<String>,
28 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
29 pub description: Option<String>,
30 #[serde(
31 rename = "owner",
32 default,
33 with = "::serde_with::rust::double_option",
34 skip_serializing_if = "Option::is_none"
35 )]
36 pub owner: Option<Option<Box<crate::models::AsnRangeRequestOwner>>>,
37 #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
38 pub comments: Option<String>,
39 #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
40 pub tags: Option<Vec<crate::models::NestedTagRequest>>,
41 #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
42 pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
43}
44
45impl PatchedBulkPowerPanelRequest {
46 pub fn new(id: i32) -> PatchedBulkPowerPanelRequest {
48 PatchedBulkPowerPanelRequest {
49 id,
50 site: None,
51 location: None,
52 name: None,
53 description: None,
54 owner: None,
55 comments: None,
56 tags: None,
57 custom_fields: None,
58 }
59 }
60}