nautobot-openapi 0.2.0

low level nautobot bindings (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 2.4.20 (2.4)
 *
 * Generated by: https://openapi-generator.tech
 */

/// PatchedBulkWritableInterfaceRedundancyGroupAssociationRequest : InterfaceRedundancyGroupAssociation Serializer.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PatchedBulkWritableInterfaceRedundancyGroupAssociationRequest {
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
    pub priority: Option<i32>,
    #[serde(
        rename = "interface_redundancy_group",
        skip_serializing_if = "Option::is_none"
    )]
    pub interface_redundancy_group: Option<Box<crate::models::BulkWritableCableRequestStatus>>,
    #[serde(rename = "interface", skip_serializing_if = "Option::is_none")]
    pub interface: Option<Box<crate::models::BulkWritableCableRequestStatus>>,
}

impl PatchedBulkWritableInterfaceRedundancyGroupAssociationRequest {
    /// InterfaceRedundancyGroupAssociation Serializer.
    pub fn new(id: uuid::Uuid) -> PatchedBulkWritableInterfaceRedundancyGroupAssociationRequest {
        PatchedBulkWritableInterfaceRedundancyGroupAssociationRequest {
            id,
            priority: None,
            interface_redundancy_group: None,
            interface: None,
        }
    }
}