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