netbox_openapi/models/
available_prefix.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/// AvailablePrefix : Representation of a prefix which does not exist in the database.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct AvailablePrefix {
15    #[serde(rename = "family", skip_serializing_if = "Option::is_none")]
16    pub family: Option<i32>,
17    #[serde(rename = "prefix", skip_serializing_if = "Option::is_none")]
18    pub prefix: Option<String>,
19    #[serde(
20        rename = "vrf",
21        default,
22        with = "::serde_with::rust::double_option",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub vrf: Option<Option<Box<crate::models::BriefVrf>>>,
26}
27
28impl AvailablePrefix {
29    /// Representation of a prefix which does not exist in the database.
30    pub fn new() -> AvailablePrefix {
31        AvailablePrefix {
32            family: None,
33            prefix: None,
34            vrf: None,
35        }
36    }
37}