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