netbox_openapi/models/
brief_interface_request_device.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct BriefInterfaceRequestDevice {
13    #[serde(
14        rename = "name",
15        default,
16        with = "::serde_with::rust::double_option",
17        skip_serializing_if = "Option::is_none"
18    )]
19    pub name: Option<Option<String>>,
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22}
23
24impl BriefInterfaceRequestDevice {
25    pub fn new() -> BriefInterfaceRequestDevice {
26        BriefInterfaceRequestDevice {
27            name: None,
28            description: None,
29        }
30    }
31}