1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* NetBox REST API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 4.6.2 (4.6)
*
* Generated by: https://openapi-generator.tech
*/
/// BriefIpAddressRequest : Base serializer class for models inheriting from PrimaryModel.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BriefIpAddressRequest {
#[serde(rename = "address")]
pub address: String,
#[serde(
rename = "nat_inside",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub nat_inside: Option<Option<Box<crate::models::NestedIpAddressRequest>>>,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
}
impl BriefIpAddressRequest {
/// Base serializer class for models inheriting from PrimaryModel.
pub fn new(address: String) -> BriefIpAddressRequest {
BriefIpAddressRequest {
address,
nat_inside: None,
description: None,
}
}
}