/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// AvailablePrefix : Representation of a prefix which does not exist in the database.  Response serializer for a GET to /api/ipam/prefixes/{id}/available-prefixes/.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AvailablePrefix {
    #[serde(rename = "ip_version", skip_serializing_if = "Option::is_none")]
    pub ip_version: Option<i32>,
    #[serde(rename = "prefix", skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
}

impl AvailablePrefix {
    /// Representation of a prefix which does not exist in the database.  Response serializer for a GET to /api/ipam/prefixes/{id}/available-prefixes/.
    pub fn new() -> AvailablePrefix {
        AvailablePrefix {
            ip_version: None,
            prefix: None,
        }
    }
}
